From: MirceaKitsune Date: Sat, 19 Nov 2011 16:50:46 +0000 (+0200) Subject: Change how stomach load influences swallow progress X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ddf7640777b1bfb86a14141f3977e950efbf620;p=voretournament%2Fvoretournament.git Change how stomach load influences swallow progress --- diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 5e395475..dca867b8 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -199,7 +199,7 @@ 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" set g_balance_vore_swallow_speed_fill 2.5 "how long it takes to swallow a player, 0 is instant" set g_balance_vore_swallow_speed_fill_scalediff 0.5 "fill rate depends on predator size compared to prey size by this amount" -set g_balance_vore_swallow_speed_fill_stomachload 1 "fill rate is influenced by the prey's stomach load" +set g_balance_vore_swallow_speed_fill_stomachload 0.5 "fill rate is influenced by the prey's stomach load by this amount" 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_prey 1 "prey movement slows down by this amount the closer they are to being swallowed" set g_balance_vore_swallow_speed_cutspd_pred 0.5 "predator movement slows down by this amount the closer they are to finishing swallowing" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index accf701d..b0903602 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -340,7 +340,7 @@ void Vore_SwallowStep(entity e) if(cvar("g_healthsize") && cvar("g_balance_vore_swallow_speed_fill_scalediff")) // fill rate depends on predator size compared to prey size fill *= pow(self.scale / e.scale, cvar("g_balance_vore_swallow_speed_fill_scalediff")); if(cvar("g_balance_vore_swallow_speed_fill_stomachload") && e.stomach_load) // fill rate is influenced by the prey's stomach load - fill /= e.stomach_load; + fill *= (1 - ((e.stomach_load / e.stomach_maxload) * bound(0, cvar("g_balance_vore_swallow_speed_fill_stomachload"), 1))); e.swallow_progress_prey += fill; }