X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=pmove.h;h=3f2dad1157ee005005d99d580ecd842e30e17c7b;hb=57073ad18687c89fad109bb6293bdb75546d78bd;hp=cd709d35c91de217ed6a457a72d7ba6208a37e43;hpb=ffcdab9ee79bdffd5166e96dc3ff00f788fe43ea;p=xonotic%2Fdarkplaces.git diff --git a/pmove.h b/pmove.h index cd709d35..3f2dad11 100644 --- a/pmove.h +++ b/pmove.h @@ -1,6 +1,18 @@ #ifndef PMOVE_H #define PMOVE_H +#include "qtypes.h" +#include "protocol.h" + +typedef enum waterlevel_e +{ + WATERLEVEL_NONE, + WATERLEVEL_WETFEET, + WATERLEVEL_SWIMMING, + WATERLEVEL_SUBMERGED +} +waterlevel_t; + typedef struct playermove_s { // entity to be ignored for movement @@ -8,6 +20,8 @@ typedef struct playermove_s // position vec3_t origin; vec3_t velocity; + vec3_t angles; + vec3_t movedir; // current bounding box (different if crouched vs standing) vec3_t mins; vec3_t maxs; @@ -23,6 +37,8 @@ typedef struct playermove_s // (this is in seconds and counts down to 0) float waterjumptime; + int movetype; + // user command usercmd_t cmd; } @@ -66,5 +82,4 @@ typedef struct movevars_s float airspeedlimit_nonqw; } movevars_t; - #endif