]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
pmove: Stub more fields in the header.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12998 d7cf8633-e32d-0410-b094-e92efae38249

pmove.h

diff --git a/pmove.h b/pmove.h
index cd709d35c91de217ed6a457a72d7ba6208a37e43..3f2dad1157ee005005d99d580ecd842e30e17c7b 100644 (file)
--- 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