]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Dont dodge when dead
authorJakob MG <jakob_mg@hotmail.com>
Wed, 23 May 2012 18:47:19 +0000 (20:47 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Wed, 23 May 2012 18:47:19 +0000 (20:47 +0200)
qcsrc/server/mutators/mutator_dodging.qc

index 2d2334c563e2a05480e8f27e0fb898f645fe0f61..bdd39b1283f487fe0e74ab42135b6d66f4b180c7 100644 (file)
@@ -55,6 +55,9 @@ MUTATOR_HOOKFUNCTION(dodging_PlayerPhysics) {
        float velocity_difference;
        float clean_up_and_do_nothing;
 
+    if (self.deadflag != DEAD_NO)
+        return 0;
+
        new_velocity_gain = 0;
        clean_up_and_do_nothing = 0;
 
@@ -241,8 +244,6 @@ MUTATOR_HOOKFUNCTION(dodging_GetPressedKeys) {
                }
        }
 
-
-
        if (dodge_detected == 1) {
                self.last_dodging_time = time;