123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- typedef struct
- {
- vec3_t normal;
- float dist;
- } pmplane_t;
- typedef struct
- {
- qboolean allsolid;
- qboolean startsolid;
- qboolean inopen, inwater;
- float fraction;
- vec3_t endpos;
- pmplane_t plane;
- int ent;
- } pmtrace_t;
- #define MAX_PHYSENTS 32
- typedef struct
- {
- vec3_t origin;
- model_t *model;
- vec3_t mins, maxs;
- int info;
- } physent_t;
- typedef struct
- {
- int sequence;
-
- vec3_t origin;
- vec3_t angles;
- vec3_t velocity;
- int oldbuttons;
- float waterjumptime;
- qboolean dead;
- int spectator;
-
- int numphysent;
- physent_t physents[MAX_PHYSENTS];
-
- usercmd_t cmd;
-
- int numtouch;
- int touchindex[MAX_PHYSENTS];
- } playermove_t;
- typedef struct {
- float gravity;
- float stopspeed;
- float maxspeed;
- float spectatormaxspeed;
- float accelerate;
- float airaccelerate;
- float wateraccelerate;
- float friction;
- float waterfriction;
- float entgravity;
- } movevars_t;
- extern movevars_t movevars;
- extern playermove_t pmove;
- extern int onground;
- extern int waterlevel;
- extern int watertype;
- void PlayerMove (void);
- void Pmove_Init (void);
- int PM_HullPointContents (hull_t *hull, int num, vec3_t p);
- int PM_PointContents (vec3_t point);
- qboolean PM_TestPlayerPosition (vec3_t point);
- pmtrace_t PM_PlayerMove (vec3_t start, vec3_t stop);
|