]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
prey now walks slower the closer they are to being swallowed
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 14:56:46 +0000 (17:56 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 14:56:46 +0000 (17:56 +0300)
data/balanceVT.cfg
data/qcsrc/server/cl_physics.qc

index 519a65b3047b59cda17394ee6df1d6762ddcf116..8522aeddffd007c24a0708fe6da0c19607585eff 100644 (file)
@@ -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"\r
 set g_balance_vore_swallow_speed_fill 2 "how long it takes to swallow a player, 0 is instant"\r
 set g_balance_vore_swallow_speed_decrease 0.5 "how fast the swallow progress decreases, when the predator is no longer swallowing"\r
+set g_balance_vore_swallow_speed_cutspd 1 "if enabled, prey walks slower the closer they are to being swallowed"\r
 set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player"\r
 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"\r
 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"\r
index d8a18fdac3d6627a39e77ceb15006db6bd1b2b4e..3118cdb556a3899e8fcbec2fb964f704ece45ec0 100644 (file)
@@ -824,6 +824,8 @@ void SV_PlayerPhysics()
        maxspd_mod *= swampspd_mod; // only one common speed modder please!\r
        if(cvar("g_balance_vore_weight_gravity") > 0)\r
                maxspd_mod *= 1 - bound(0, self.stomach_load * cvar("g_balance_vore_weight_speed"), 1); // apply stomach weight\r
+       if(self.swallow_progress_prey && cvar("g_balance_vore_swallow_speed_cutspd"))\r
+               maxspd_mod *= 1 - self.swallow_progress_prey; // cut speed based on swallow progress\r
        swampspd_mod = 1;\r
 \r
        // if dead, behave differently\r