From 4416ca79c0ccf5fb0acd3f24d9b4ba099e0c1659 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Fri, 17 Feb 2006 04:57:31 +0000 Subject: [PATCH] use self.crouch instead of self.button5 in physics, otherwise you can crouch to go into the quad room of nexdm11 (Ruins of Slaughter), and then let go of crouch and move full speed while still crouched git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1070 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/gamec/cl_physics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/gamec/cl_physics.c b/data/qcsrc/server/gamec/cl_physics.c index 07c333dfc..243cc9210 100644 --- a/data/qcsrc/server/gamec/cl_physics.c +++ b/data/qcsrc/server/gamec/cl_physics.c @@ -226,7 +226,7 @@ void SV_PlayerPhysics() wishspeed = vlen(wishvel); if (wishspeed > sv_maxspeed*maxspd_mod) wishspeed = sv_maxspeed*maxspd_mod; - if (self.button5) // crouch + if (self.crouch) wishspeed = wishspeed * 0.5; if (time >= self.teleport_time) { @@ -255,7 +255,7 @@ void SV_PlayerPhysics() wishspeed = vlen(wishvel); if (wishspeed > maxairspd) wishspeed = maxairspd; - if (self.button5) // crouch + if (self.crouch) wishspeed = wishspeed * 0.5; if (time >= self.teleport_time) { -- 2.39.2