]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_dodging.qc
Hook: merge offhand and weapon behaviour
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_dodging.qc
index 130a864089c6369172e3e6e1af562b48558a8c0f..b5dc32fdfe0d924a233b099ab47f802eaceba6e3 100644 (file)
 #endif
 
 #ifdef SVQC
+#include "mutator_dodging.qh"
+#include "../_all.qh"
+
+#include "mutator.qh"
+
+#include "../../common/animdecide.qh"
 
 .float cvar_cl_dodging_timeout;
 
@@ -77,7 +83,7 @@
 #elif defined(SVQC)
 
 void dodging_UpdateStats()
-{
+{SELFPARAM();
        self.stat_dodging = PHYS_DODGING;
        self.stat_dodging_delay = PHYS_DODGING_DELAY;
        self.stat_dodging_horiz_speed_frozen = PHYS_DODGING_HORIZ_SPEED_FROZEN;
@@ -110,7 +116,7 @@ void dodging_Initialize()
 
 // returns 1 if the player is close to a wall
 bool check_close_to_wall(float threshold)
-{
+{SELFPARAM();
        if (PHYS_DODGING_WALL == 0) { return false; }
 
        #define X(OFFSET)                                                                                                                               \
@@ -127,12 +133,12 @@ bool check_close_to_wall(float threshold)
 }
 
 bool check_close_to_ground(float threshold)
-{
+{SELFPARAM();
        return IS_ONGROUND(self) ? true : false;
 }
 
 float PM_dodging_checkpressedkeys()
-{
+{SELFPARAM();
        if(!PHYS_DODGING)
                return false;
 
@@ -193,7 +199,7 @@ float PM_dodging_checkpressedkeys()
 }
 
 void PM_dodging()
-{
+{SELFPARAM();
        if (!PHYS_DODGING)
                return;