]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/dpdefs/csprogsdefs.qh
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / dpdefs / csprogsdefs.qh
index c4d8c54ce05c4b6b847a36f54d1d6672beda0379..29d797585efbe10117995db27925b739109abae6 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef CSPROGSDEFS_H
-#define CSPROGSDEFS_H
+#pragma once
 
 #pragma noref 1
 
@@ -8,6 +7,18 @@
 #define TRUE _TRUE
 #define FALSE _FALSE
 
+#define spawn _spawn
+#define particleeffectnum _particleeffectnum
+#define trailparticles __trailparticles
+#define pointparticles __pointparticles
+#define setmodel _setmodel
+
+#define STAT_FRAGLIMIT _STAT_FRAGLIMIT
+#define STAT_TIMELIMIT _STAT_TIMELIMIT
+#define STAT_MOVEVARS_TICRATE _STAT_MOVEVARS_TICRATE
+#define STAT_MOVEVARS_TIMESCALE _STAT_MOVEVARS_TIMESCALE
+#define STAT_MOVEVARS_GRAVITY _STAT_MOVEVARS_GRAVITY
+
 #include "upstream/csprogsdefs.qc"
 
 #undef true
 #undef TRUE
 #undef FALSE
 
+#undef spawn
+#undef particleeffectnum
+#undef trailparticles
+#undef pointparticles
+#undef setmodel
+
+#undef STAT_FRAGLIMIT
+#undef STAT_TIMELIMIT
+#undef STAT_MOVEVARS_TICRATE
+#undef STAT_MOVEVARS_TIMESCALE
+#undef STAT_MOVEVARS_GRAVITY
+
 #pragma noref 0
 
-#endif
+#define use use1
+.void(entity this, entity actor, entity trigger) use;
+#define touch move_touch