]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/player.qc
Fix crouching not being applied while in bloodloss
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / player.qc
index 5ba6e82685b3204ce2caa5da04c5862253f0c974..9f7ddab502d31764b79c546bfd40fc3b8e7b176e 100644 (file)
@@ -145,6 +145,9 @@ void PM_ClientMovement_UpdateStatus(entity this)
                do_crouch = false;
     }
 
+    MUTATOR_CALLHOOK(PlayerCanCrouch, this, do_crouch);
+    do_crouch = M_ARGV(1, bool);
+
        if (do_crouch) {
                if (!IS_DUCKED(this)) {
                        SET_DUCKED(this);