From: MirceaKitsune Date: Fri, 3 Sep 2010 13:58:27 +0000 (+0300) Subject: Stomach kick escape probability. While stomach kicking, there's a small chance you... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da21344c56d558a7fdef4103b39102097134fc72;p=voretournament%2Fvoretournament.git Stomach kick escape probability. While stomach kicking, there's a small chance you might get regurgitated by your predator. --- diff --git a/data/balance.cfg b/data/balance.cfg index b760239c..ce227e24 100644 --- a/data/balance.cfg +++ b/data/balance.cfg @@ -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" set g_balance_vore_kick_damage_max 30 "maximum amount of damage you can do during a stomach kick" set g_balance_vore_kick_delay 1 "how many seconds must pass before you can perform another stomach kick" +set g_balance_vore_kick_escapeprobability 0.125 "probability to get regurgitated while performing scomach kicks (0 = never, 1 = always)" // }}} diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 8462b55b..c8149aeb 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -203,6 +203,10 @@ void Vore_StomachKick() Damage(self.eater, self, self, damage, DEATH_STOMACHKICK, self.eater.origin, '0 0 0'); sound(self.eater, CHAN_PROJECTILE, "weapons/stomachkick.ogg", VOL_BASE, ATTN_NORM); + + if(cvar("g_balance_vore_kick_escapeprobability") >= random()) + Vore_Regurgitate(self); + self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay"); }