From: Mario Date: Fri, 30 May 2014 16:14:47 +0000 (+1000) Subject: Disable jumping while player is blocked, they can't move so jumping is weird and... X-Git-Tag: xonotic-v0.8.0~207^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c65ee59d29b2193d913dccd320029aa110a6620a;p=xonotic%2Fxonotic-data.pk3dir.git Disable jumping while player is blocked, they can't move so jumping is weird and unpredicted --- diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 0d0dd3138..43c7be517 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -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;