OpenMoHAA 0.82.0
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#define MIN_WALK_NORMAL 0.7f // can't walk on very steep slopes
26
27#define JUMP_VELOCITY 270
28
29#define TIMER_LAND 130
30#define TIMER_GESTURE (34 * 66 + 50)
31
32#define OVERCLIP 1.001f
33
34#define HEAD_TAG 0
35#define TORSO_TAG 1
36#define ARMS_TAG 2
37#define PELVIS_TAG 3
38#define MOUTH_TAG 4
39
40// all of the locals will be zeroed before each
41// pmove, just to make damn sure we don't have
42// any differences when running on client or server
43typedef struct {
44 vec3_t forward, left, up;
45 vec3_t flat_forward, flat_left, flat_up;
46 float frametime;
47
48 int msec;
49
50 qboolean walking;
51 qboolean groundPlane;
52 trace_t groundTrace;
53
54 float impactSpeed;
55
56 vec3_t previous_origin;
57 vec3_t previous_velocity;
58 int previous_waterlevel;
59} pml_t;
60
61extern pmove_t *pm;
62extern pml_t pml;
63
64// movement parameters
65extern float pm_stopspeed;
66extern float pm_duckScale;
67extern float pm_swimScale;
68extern float pm_wadeScale;
69
70extern float pm_accelerate;
71extern float pm_airaccelerate;
72extern float pm_wateraccelerate;
73extern float pm_flyaccelerate;
74
75extern float pm_friction;
76extern float pm_waterfriction;
77extern float pm_flightfriction;
78
79extern const vec3_t MINS;
80extern const vec3_t MAXS;
81
82extern int c_pmove;
83
84void PM_ClipVelocity(vec3_t in, vec3_t normal, vec3_t out, float overbounce);
85void PM_AddTouchEnt(int entityNum);
86void PM_AddEvent(int newEvent);
87
88qboolean PM_SlideMove(qboolean gravity);
89void PM_StepSlideMove(qboolean gravity);
Definition bg_local.h:43
Definition bg_public.h:284
Definition q_shared.h:1452