From: cloudwalk Date: Mon, 5 Oct 2020 18:03:46 +0000 (+0000) Subject: pmove: Stub more fields in the header. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fa540b2a5845e220a4e5d01e173a1134fe6d5ef7;p=xonotic%2Fdarkplaces.git pmove: Stub more fields in the header. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12998 d7cf8633-e32d-0410-b094-e92efae38249 --- 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