From 8aaeee64de4f5a355f916c97dec5a6bd1bb7709a Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 2 Sep 2010 17:27:25 +0300 Subject: [PATCH] Also push players when they regurgitate --- data/balance.cfg | 1 + data/qcsrc/server/vore.qc | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/balance.cfg b/data/balance.cfg index 3909ed57..7de70ecf 100644 --- a/data/balance.cfg +++ b/data/balance.cfg @@ -185,6 +185,7 @@ set g_balance_vore_swallow_delay 0.5 "how many seconds must pass before you can set g_balance_vore_regurgitate_delay 0.135 "regurgitation delay" set g_balance_vore_regurgitate_velocitylimit 1200 "when a predator is going faster than this, the prey is squeezed out of them" set g_balance_vore_regurgitate_force 500 "regurgitated players rocket out at this speed when released (randomized)" +set g_balance_vore_regurgitate_eaterforce 500 "players are pushed by this amount when regurgitating someone (randomized)" 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 each enemy during digestion" set g_balance_vore_digestion_vampire_stable 150 "you stop gaining health past this point (best to keep equal or lower than g_balance_health_rotstable)" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 96f432f2..d6398650 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -104,9 +104,14 @@ void Vore_Regurgitate(entity e) e.solid = e.vore_oldsolid; e.alpha = 0; // best way of hiding / showing the eaten player e.view_ofs_z *= 2; // best positioning for the stomach model - e.velocity = (randomvec() - randomvec()) * cvar("g_balance_vore_regurgitate_force"); e.stat_eaten = FALSE; + // velocities + vector rand; + rand = (randomvec() - randomvec()); + e.velocity = rand * cvar("g_balance_vore_regurgitate_force"); + e.eater.velocity += rand * cvar("g_balance_vore_regurgitate_eaterforce"); + PlayerSound(e.eater, playersound_regurgitate, CHAN_PAIN, VOICETYPE_PLAYERSOUND); setanim(e.eater, e.eater.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing \ regurgitating pointparticles(particleeffectnum("regurgitate"), e.eater.origin, '0 0 0', 1); -- 2.39.2