set g_balance_vore_swallow_range 100 "distance below which you can swallow another player when facing them"\r
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 3 "how long it takes to swallow a player, 0 is instant"\r
+set g_balance_vore_swallow_speed_fill_healthsize 1 "fill rate depends on predator size"\r
set g_balance_vore_swallow_speed_decrease 0.2 "how fast the swallow progress decreases, when the predator is no longer swallowing"\r
set g_balance_vore_swallow_speed_cutspd 0.5 "prey movement slows down by this amount the closer they are to being swallowed"\r
set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player"\r
\r
// increase the progress value until it reaches 1, then swallow the player\r
if(e.swallow_progress_prey < 1)\r
- e.swallow_progress_prey += cvar("g_balance_vore_swallow_speed_fill") * frametime;\r
+ {\r
+ float fill;\r
+ fill = cvar("g_balance_vore_swallow_speed_fill") * frametime;\r
+ if(cvar("g_balance_vore_swallow_speed_fill_healthsize")) // fill rate depends on predator size\r
+ fill *= self.scale;\r
+\r
+ e.swallow_progress_prey += fill;\r
+ }\r
else\r
{\r
Vore_Swallow(e);\r