From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Wed, 4 May 2011 00:17:33 +0000 (+0300)
Subject: Don't attempt to rotate positions based on predator angles. It didn't work right... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=82f89b63169bbd094307fd074b74f33ca65e5d37;p=voretournament%2Fvoretournament.git

Don't attempt to rotate positions based on predator angles. It didn't work right and IMO there's no real need to do this.
---

diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc
index 39c64b9b..fff85c53 100644
--- a/data/qcsrc/server/vore.qc
+++ b/data/qcsrc/server/vore.qc
@@ -101,15 +101,9 @@ void Vore_SetPreyPositions()
 	// self is the predator and head is the prey
 
 	local entity head;
-	local vector oldforward, oldright, oldup;
 	local vector origin_apply;
 	local float position_counter;
 
-	oldforward = v_forward;
-	oldright = v_right;
-	oldup = v_up;
-	makevectors(self.v_angle);
-
 	// In order to allow prey to see each other in the stomach, we must position each occupant differently,
 	// else all players overlap in the center. To do this, we run a loop on all players in the same stomach.
 	// For each player, the origin is updated, then a new origin is used for the next player.
@@ -152,8 +146,6 @@ void Vore_SetPreyPositions()
 			}
 
 			// since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset
-			origin_apply_x *= v_forward_x; // position depends on the predator's rotation
-			origin_apply_y *= v_forward_y; // position depends on the predator's rotation
 			head.view_ofs = PL_PREY_VIEW_OFS + origin_apply * cvar("g_vore_neighborprey_distance");
 			head.view_ofs_z *= self.scale; // stomach center depends on predator scale
 
@@ -165,10 +157,6 @@ void Vore_SetPreyPositions()
 			position_counter += 1;
 		}
 	}
-
-	v_forward = oldforward;
-	v_right = oldright;
-	v_up = oldup;
 }
 
 .float gurgle_oldstomachload;