From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Thu, 2 Sep 2010 14:57:34 +0000 (+0300)
Subject: Regurgitated players now rocket in the direction the predator is facing. The predator... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e9fe6e60fe3f74c6a8fe359510e6c19fc5d09027;p=voretournament%2Fvoretournament.git

Regurgitated players now rocket in the direction the predator is facing. The predator himself is pushed in the opposite direction.
---

diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc
index d6398650..037aca00 100644
--- a/data/qcsrc/server/vore.qc
+++ b/data/qcsrc/server/vore.qc
@@ -107,10 +107,16 @@ void Vore_Regurgitate(entity e)
 	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");
+	local vector oldforward, oldright, oldup;
+	oldforward = v_forward;
+	oldright = v_right;
+	oldup = v_up;
+	makevectors(e.eater.v_angle);
+	e.velocity = v_forward * cvar("g_balance_vore_regurgitate_force");
+	e.eater.velocity += -v_forward * cvar("g_balance_vore_regurgitate_eaterforce");
+	v_forward = oldforward;
+	v_right = oldright;
+	v_up = oldup;
 
 	PlayerSound(e.eater, playersound_regurgitate, CHAN_PAIN, VOICETYPE_PLAYERSOUND);
 	setanim(e.eater, e.eater.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing \ regurgitating