]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Stomach kick escape probability. While stomach kicking, there's a small chance you...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 13:58:27 +0000 (16:58 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 3 Sep 2010 13:58:27 +0000 (16:58 +0300)
data/balance.cfg
data/qcsrc/server/vore.qc

index b760239c27961b68874fbacf94ae5379f12b6228..ce227e2441c0c61cdb32486fb595b315c762fead 100644 (file)
@@ -196,4 +196,5 @@ set g_balance_vore_weight_speed 0.15 "you get this slower the more you eat, at 0
 set g_balance_vore_kick_damage_min 10 "minimum amount of damage you can do during a stomach kick"\r
 set g_balance_vore_kick_damage_max 30 "maximum amount of damage you can do during a stomach kick"\r
 set g_balance_vore_kick_delay 1 "how many seconds must pass before you can perform another stomach kick"\r
+set g_balance_vore_kick_escapeprobability 0.125 "probability to get regurgitated while performing scomach kicks (0 = never, 1 = always)"\r
 // }}}\r
index 8462b55bb8286cf466556c9077780b6fe6cec232..c8149aeb26ca9f6a7870c2648c24ca85445825df 100644 (file)
@@ -203,6 +203,10 @@ void Vore_StomachKick()
 \r
                Damage(self.eater, self, self, damage, DEATH_STOMACHKICK, self.eater.origin, '0 0 0');\r
                sound(self.eater, CHAN_PROJECTILE, "weapons/stomachkick.ogg", VOL_BASE, ATTN_NORM);\r
+\r
+               if(cvar("g_balance_vore_kick_escapeprobability") >= random())\r
+                       Vore_Regurgitate(self);\r
+\r
                self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay");\r
        }\r
 \r