From: MirceaKitsune Date: Sat, 9 Jul 2011 14:56:46 +0000 (+0300) Subject: prey now walks slower the closer they are to being swallowed X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=609f64d5b14a0e0be55aeea913b84c41d91876f4;ds=inline prey now walks slower the closer they are to being swallowed --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 519a65b3..8522aedd 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -189,6 +189,7 @@ set g_balance_vore_swallow_range 100 "distance below which you can swallow anoth set g_balance_vore_swallow_limit 3 "how many players can fit in the stomach at a time, may range between 1 and 9" set g_balance_vore_swallow_speed_fill 2 "how long it takes to swallow a player, 0 is instant" set g_balance_vore_swallow_speed_decrease 0.5 "how fast the swallow progress decreases, when the predator is no longer swallowing" +set g_balance_vore_swallow_speed_cutspd 1 "if enabled, prey walks slower the closer they are to being swallowed" set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player" set g_balance_vore_swallow_stealprey 0.7 "probability of stealing someone's prey when eating them (when true their prey joins your stomach rather than popping out). 0 = never, 1 = always" set g_balance_vore_swallow_dropweapon 0.6 "probability of dropping your weapon when swallowed. 0 = never and 1 = always, does not apply to team mates" diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index d8a18fda..3118cdb5 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -824,6 +824,8 @@ void SV_PlayerPhysics() maxspd_mod *= swampspd_mod; // only one common speed modder please! if(cvar("g_balance_vore_weight_gravity") > 0) maxspd_mod *= 1 - bound(0, self.stomach_load * cvar("g_balance_vore_weight_speed"), 1); // apply stomach weight + if(self.swallow_progress_prey && cvar("g_balance_vore_swallow_speed_cutspd")) + maxspd_mod *= 1 - self.swallow_progress_prey; // cut speed based on swallow progress swampspd_mod = 1; // if dead, behave differently