From 828170ec8937158f40dd2d4f62f3936c01b66962 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 4 Oct 2010 01:41:45 +0300 Subject: [PATCH] Implement stomach kick force (predators get pushed in the direction their prey is facing when it kicks). --- data/balance.cfg | 5 +++-- data/qcsrc/server/vore.qc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/balance.cfg b/data/balance.cfg index 29503598..826ef16b 100644 --- a/data/balance.cfg +++ b/data/balance.cfg @@ -185,8 +185,8 @@ set g_balance_vore_swallow_delay 0.8 "how many seconds must pass before you can set g_balance_vore_swallow_stealprey 0.5 "probability of stealing someone's prey when eating them (when true their prey joins your stomach rather than popping out). 0 = never, 1 = always" set g_balance_vore_swallow_dropweapon 0.75 "probability of dropping your weapon when swallowed. 0 = never and 1 = always, does not apply to team mates" set g_balance_vore_regurgitate_speedcap 1200 "when a predator is going faster than this, their prey is squeezed out of them" -set g_balance_vore_regurgitate_force 500 "regurgitated players rocket out at this speed when released" -set g_balance_vore_regurgitate_predatorforce 250 "players are pushed back by this amount when regurgitating someone" +set g_balance_vore_regurgitate_force 500 "regurgitated players rocket out at this speed, in the direction the predator is facing" +set g_balance_vore_regurgitate_predatorforce 250 "players are pushed back by this amount when regurgitating someone, opposite of the direction they are facing" set g_balance_vore_regurgitate_delay 0.135 "regurgitation delay" set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion" set g_balance_vore_digestion_vampire 1 "amount of health you gain from digestion" @@ -198,5 +198,6 @@ 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 with a stomach kick" set g_balance_vore_kick_damage_max 20 "maximum amount of damage you can do with a stomach kick" set g_balance_vore_kick_delay 0.6 "how many seconds must pass before you can perform another stomach kick" +set g_balance_vore_kick_force 150 "predators are pushed by this amount when stomach kicked, in the direction their prey is facing" set g_balance_vore_kick_escapeprobability 0.125 "probability of getting regurgitated while performing stomach kicks (0 = never, 1 = always)" // }}} diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 3c48f439..176d69c2 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -293,7 +293,7 @@ void Vore_StomachKick() { float damage; damage = ceil(random() * (cvar("g_balance_vore_kick_damage_max") - cvar("g_balance_vore_kick_damage_min")) + cvar("g_balance_vore_kick_damage_min")); - Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, '0 0 0'); + Damage(self.predator, self, self, damage, DEATH_STOMACHKICK, self.predator.origin, v_forward * cvar("g_balance_vore_kick_force")); sound(self.predator, CHAN_PROJECTILE, "weapons/stomachkick.ogg", VOL_BASE, ATTN_NORM); if(random() < cvar("g_balance_vore_kick_escapeprobability")) -- 2.39.2