From 295420f935c7387ec559f3ecd1e26af9bf39b7f6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 20 Jul 2010 19:37:42 +0200 Subject: [PATCH] airstopaccelerate: use a smooth transition curve --- qcsrc/server/cl_physics.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 8f3a9aa17..3c830e6d2 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -1205,8 +1205,7 @@ void SV_PlayerPhysics() // CPM if(sv_airstopaccelerate) - if(self.velocity * wishdir < 0) - airaccel = sv_airstopaccelerate*maxspd_mod; + airaccel = airaccel + (sv_airstopaccelerate*maxspd_mod - airaccel) * max(0, -(self.velocity * wishdir)); // note that for straight forward jumping: // step = accel * frametime * wishspeed0; // accel = bound(0, wishspeed - vel_xy_current, step) * accelqw + step * (1 - accelqw); -- 2.39.2