|
|
@ -38,41 +38,8 @@ static int pm_shared_initialized = 0; |
|
|
|
|
|
|
|
|
|
|
|
#pragma warning( disable : 4305 ) |
|
|
|
#pragma warning( disable : 4305 ) |
|
|
|
|
|
|
|
|
|
|
|
typedef enum |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mod_brush, |
|
|
|
|
|
|
|
mod_sprite, |
|
|
|
|
|
|
|
mod_alias, |
|
|
|
|
|
|
|
mod_studio |
|
|
|
|
|
|
|
}modtype_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
playermove_t *pmove = NULL; |
|
|
|
playermove_t *pmove = NULL; |
|
|
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int planenum; |
|
|
|
|
|
|
|
short children[2]; // negative numbers are contents
|
|
|
|
|
|
|
|
}dclipnode_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct mplane_s |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
vec3_t normal; // surface normal
|
|
|
|
|
|
|
|
float dist; // closest appoach to origin
|
|
|
|
|
|
|
|
byte type; // for texture axis selection and fast side tests
|
|
|
|
|
|
|
|
byte signbits; // signx + signy<<1 + signz<<1
|
|
|
|
|
|
|
|
byte pad[2]; |
|
|
|
|
|
|
|
}mplane_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct hull_s |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dclipnode_t *clipnodes; |
|
|
|
|
|
|
|
mplane_t *planes; |
|
|
|
|
|
|
|
int firstclipnode; |
|
|
|
|
|
|
|
int lastclipnode; |
|
|
|
|
|
|
|
vec3_t clip_mins; |
|
|
|
|
|
|
|
vec3_t clip_maxs; |
|
|
|
|
|
|
|
} hull_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Ducking time
|
|
|
|
// Ducking time
|
|
|
|
#define TIME_TO_DUCK 0.4 |
|
|
|
#define TIME_TO_DUCK 0.4 |
|
|
|
#define VEC_DUCK_HULL_MIN -18 |
|
|
|
#define VEC_DUCK_HULL_MIN -18 |
|
|
|