]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Swallow progress fill rate is influenced by the prey's stomach load
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 16:52:48 +0000 (19:52 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 16:52:48 +0000 (19:52 +0300)
data/balanceVT.cfg
data/qcsrc/server/vore.qc

index 57edb3be3bc3b78e018aa27be05b8a33fbac55ba..a81ad7e93412ed70b787dd68cdf7a9ab7e2f090d 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 3 "how long it takes to swallow a player, 0 is instant"\r
 set g_balance_vore_swallow_speed_fill_scalediff 1 "fill rate depends on predator size compared to prey size"\r
+set g_balance_vore_swallow_speed_fill_stomachload 1 "fill rate is influenced by the prey's stomach load"\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
index e3cef54eb806dd7a4299fa881a304e8bbbc2a8c5..3017a39b1e1ac09c46020cb2c4373be8e1421117 100644 (file)
@@ -262,6 +262,8 @@ void Vore_SwallowStep(entity e)
                fill = cvar("g_balance_vore_swallow_speed_fill") * frametime;\r
                if(cvar("g_balance_vore_swallow_speed_fill_scalediff")) // fill rate depends on predator size compared to prey size\r
                        fill *= (self.scale / e.scale);\r
+               if(cvar("g_balance_vore_swallow_speed_fill_stomachload") && e.stomach_load) // fill rate is influenced by the prey's stomach load\r
+                       fill /= e.stomach_load;\r
 \r
                e.swallow_progress_prey += fill;\r
        }\r