]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
also support bouncefactor for MOVETYPE_BOUNCEMISSILE
[xonotic/darkplaces.git] / quakedef.h
index efd7bf395ea963be330fbfe97cfda7c473ac2e90..f2353785045dd3a7c075cb2f4a478b506eadeac6 100644 (file)
@@ -104,6 +104,7 @@ extern char engineversion[128];
 //#define STAT_TIME                    17 ///< FTE
 //#define STAT_VIEW2           20 ///< FTE
 #define STAT_VIEWZOOM          21 ///< DP
+#define STAT_MOVEFLAGS                              225 ///< DP
 #define STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL      226 ///< DP
 #define STAT_MOVEVARS_WARSOWBUNNY_ACCEL                                227 ///< DP
 #define STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED                     228 ///< DP
@@ -135,6 +136,10 @@ extern char engineversion[128];
 #define STAT_MOVEVARS_AIRACCEL_QW                                      254 ///< DP
 #define STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION       255 ///< DP
 
+// moveflags values
+#define MOVEFLAG_VALID 0x80000000
+#define MOVEFLAG_Q2AIRACCELERATE 0x00000001
+
 // stock defines
 
 #define        IT_SHOTGUN                              1
@@ -371,5 +376,8 @@ void Sys_Shared_Init(void);
 // This also includes extended characters, and ALL control chars
 #define ISWHITESPACEORCONTROL(ch) ((signed char) (ch) <= (signed char) ' ')
 
+
+#define FLOAT_IS_TRUE_FOR_INT(x) ((x) & 0x7FFFFFFF) // also match "negative zero" floats of value 0x80000000
+
 #endif