OpenMoHAA ..
Loading...
Searching...
No Matches
bg_local.h
1/*
2===========================================================================
3Copyright (C) 1999-2005 Id Software, Inc.
4
5This file is part of Quake III Arena source code.
6
7Quake III Arena source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12Quake III Arena source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with Quake III Arena source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22//
23// bg_local.h -- local definitions for the bg (both games) files
24
25#pragma once
26
27#define MIN_WALK_NORMAL 0.7f // can't walk on very steep slopes
28
29#define JUMP_VELOCITY 270
30
31#define TIMER_LAND 130
32#define TIMER_GESTURE (34 * 66 + 50)
33
34#define OVERCLIP 1.001f
35
36#define HEAD_TAG 0
37#define TORSO_TAG 1
38#define ARMS_TAG 2
39#define PELVIS_TAG 3
40#define MOUTH_TAG 4
41
42// all of the locals will be zeroed before each
43// pmove, just to make damn sure we don't have
44// any differences when running on client or server
45typedef struct {
46 vec3_t forward, left, up;
47 vec3_t flat_forward, flat_left, flat_up;
48 float frametime;
49
50 int msec;
51
52 qboolean walking;
53 qboolean groundPlane;
54 trace_t groundTrace;
55
56 float impactSpeed;
57
58 vec3_t previous_origin;
59 vec3_t previous_velocity;
60 int previous_waterlevel;
61} pml_t;
62
63extern pmove_t *pm;
64extern pml_t pml;
65
66// movement parameters
67extern float pm_stopspeed;
68extern float pm_duckScale;
69extern float pm_swimScale;
70extern float pm_wadeScale;
71
72extern float pm_accelerate;
73extern float pm_airaccelerate;
74extern float pm_wateraccelerate;
75extern float pm_flyaccelerate;
76
77extern float pm_friction;
78extern float pm_waterfriction;
79extern float pm_flightfriction;
80
81extern const vec3_t MINS;
82extern const vec3_t MAXS;
83
84extern int c_pmove;
85
86void PM_ClipVelocity(vec3_t in, vec3_t normal, vec3_t out, float overbounce);
87void PM_AddTouchEnt(int entityNum);
88void PM_AddEvent(int newEvent);
89
90qboolean PM_SlideMove(qboolean gravity);
91void PM_StepSlideMove(qboolean gravity);
Definition bg_local.h:45
Definition bg_public.h:287
Definition q_shared.h:1453