]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable jumping while player is blocked, they can't move so jumping is weird and...
authorMario <mario.mario@y7mail.com>
Fri, 30 May 2014 16:14:47 +0000 (02:14 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 30 May 2014 16:14:47 +0000 (02:14 +1000)
qcsrc/server/cl_physics.qc

index 0d0dd3138aa9600e06e0aef3fb152d6410d30987..43c7be517958e718b864f25bbf46e699b741c90d 100644 (file)
@@ -19,6 +19,9 @@ When you press the jump key
 */
 void PlayerJump (void)
 {
+       if(self.player_blocked)
+               return; // no jumping while blocked
+
        float doublejump = FALSE;
 
        player_multijump = doublejump;