From 68345fee2d8e799989dfa1fa07c63d902f9dbbdc Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 9 Jul 2011 22:26:27 +0300 Subject: [PATCH] Apply weighty gravity first --- data/qcsrc/server/cl_physics.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 1f3a6d65..102680c9 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -505,12 +505,12 @@ void PM_Accelerate(vector wishdir, float wishspeed, float wishspeed0, float acce if(speedclamp) accelqw = -accelqw; + if(cvar("g_balance_vore_weight_gravity") > 0) // apply stomach weight + wishspeed *= 1 - bound(0, self.stomach_load * cvar("g_balance_vore_weight_speed"), 1); if(self.scale) // we are smaller or larger, so we run slower or faster wishspeed *= (1 - cvar("g_healthsize_movementfactor")) + cvar("g_healthsize_movementfactor") * self.scale; if(self.swallow_progress_prey) // cut speed based on swallow progress wishspeed *= 1 - (self.swallow_progress_prey * cvar("g_balance_vore_swallow_speed_cutspd")); - if(cvar("g_balance_vore_weight_gravity") > 0) - wishspeed *= 1 - bound(0, self.stomach_load * cvar("g_balance_vore_weight_speed"), 1); // apply stomach weight if(cvar("sv_gameplayfix_q2airaccelerate")) wishspeed0 = wishspeed; -- 2.39.2