From: MirceaKitsune Date: Mon, 18 Jul 2011 13:31:44 +0000 (+0300) Subject: Adapt walking speed based on stomach load to the new system X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2dea3909e491d00a9e0df657c3e160eed88c1697;p=voretournament%2Fvoretournament.git Adapt walking speed based on stomach load to the new system --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index f929e83a..e3ea3576 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -186,8 +186,8 @@ set g_balance_grabber_reload_time 2 // {{{ stomach set g_balance_vore_load_pred_capacity 100 "capacity percent a player's stomach has, influenced by player size" -set g_balance_vore_load_pred_weight 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier" -set g_balance_vore_load_pred_speed 0.0015 "you get this slower the more you eat, at 0.5 each meal makes you two times slower" +set g_balance_vore_load_pred_weight 1 "you get this heavier the more you eat, at 1 a full belly makes you two times heavier" +set g_balance_vore_load_pred_speed 1 "you get this slower the more you eat, at 1 a full belly makes you two times slower" set g_balance_vore_load_pred_speedcap 800 "when a predator is going faster than this (at full stomach capacity), their prey is squeezed out of them" set g_balance_vore_load_prey_mass 30 "prey mass, influenced by player size" set g_balance_vore_swallow_range 140 "distance below which you can swallow another player when facing them" diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index ba186cbb..df1c3a45 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -508,7 +508,7 @@ void PM_Accelerate(vector wishdir, float wishspeed, float wishspeed0, float acce accelqw = -accelqw; if(cvar("g_balance_vore_load_pred_weight") > 0) // apply stomach weight - wishspeed *= 1 - bound(0, self.stomach_load / self.stomach_maxload * cvar("g_balance_vore_load_pred_speed"), 1); + wishspeed /= 1 + (self.stomach_load / self.stomach_maxload) * cvar("g_balance_vore_load_pred_speed"); if(cvar("g_healthsize")) // if we are smaller or larger, 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 for prey