From 587e8c5e8cab2ffbd3d76bc5095a81ded088db58 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Fri, 8 Jul 2011 20:13:50 +0300 Subject: [PATCH] 75% probability that receiving a stomach kick will cause you to abort regurgitation --- data/balanceVT.cfg | 1 + data/qcsrc/server/vore.qc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 92745824..8cac88b2 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -212,5 +212,6 @@ set g_balance_vore_kick_force 420 "predators are pushed by this amount when stom set g_balance_vore_kick_playerscale 1 "if enabled, the damage / force of stomach kicks is affected by the size of the player" set g_balance_vore_kick_predator_punchangle 6 "your view gets tilted by this amount when receiving stomach kicks" set g_balance_vore_kick_prey_punchangle 6 "your view gets tilted by this amount when dealing stomach kicks" +set g_balance_vore_kick_cutregurgitate 0.75 "probability that a stomach kick will cause the predator to lose a scheduled regurgitation" set g_balance_vore_escapeprobability 0.002 "probability of getting regurgitated when the predator takes damage, based on the amount of damage dealt (0 = never, 1 = always)" // }}} diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index e5157453..18dddf8b 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -445,6 +445,10 @@ void Vore_StomachKick() self.predator.punchangle_x -= cvar("g_balance_vore_kick_predator_punchangle"); self.punchangle_x += cvar("g_balance_vore_kick_prey_punchangle"); + // abort the predator's scheduled regurgitation + if(random() < cvar("g_balance_vore_kick_cutregurgitate")) + self.predator.regurgitate_prepare = 0; + self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay"); } } -- 2.39.2