From 4771c2e4ade4b86f2bc63cbe0add5d1a8df1dfea Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 9 Jul 2011 19:52:48 +0300 Subject: [PATCH] Swallow progress fill rate is influenced by the prey's stomach load --- data/balanceVT.cfg | 1 + data/qcsrc/server/vore.qc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 57edb3be..a81ad7e9 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 3 "how long it takes to swallow a player, 0 is instant" set g_balance_vore_swallow_speed_fill_scalediff 1 "fill rate depends on predator size compared to prey size" +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_decrease 0.2 "how fast the swallow progress decreases, when the predator is no longer swallowing" set g_balance_vore_swallow_speed_cutspd 0.5 "prey movement slows down by this amount the closer they are to being swallowed" set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index e3cef54e..3017a39b 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -262,6 +262,8 @@ void Vore_SwallowStep(entity e) fill = cvar("g_balance_vore_swallow_speed_fill") * frametime; if(cvar("g_balance_vore_swallow_speed_fill_scalediff")) // fill rate depends on predator size compared to prey size fill *= (self.scale / e.scale); + 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; e.swallow_progress_prey += fill; } -- 2.39.2