]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pmove.h
sys: Rename Sys_Print(f)ToTerminal to Sys_Print(f) for consistency
[xonotic/darkplaces.git] / 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