From: MirceaKitsune Date: Tue, 3 May 2011 23:37:44 +0000 (+0300) Subject: Re-integrate prey view offset based on scale with the new prey positioning code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c455ebb433b92c92861c94999afaf176517f7b6;p=voretournament%2Fvoretournament.git Re-integrate prey view offset based on scale with the new prey positioning code --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index f9476c0b..94b8d185 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -156,6 +156,11 @@ void Vore_SetPreyPositions() 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"); + // change prey height based on scale + float prey_height; + prey_height = (head.scale - self.scale) * cvar("g_healthsize_vore_pos"); + head.view_ofs_z += prey_height; + position_counter += 1; } } @@ -163,13 +168,6 @@ void Vore_SetPreyPositions() v_forward = oldforward; v_right = oldright; v_up = oldup; - - /*float prey_height; - if(self.fakeprey) - prey_height = (self.scale - self.fakepredator.scale) * cvar("g_healthsize_vore_pos"); - else - prey_height = (self.scale - self.predator.scale) * cvar("g_healthsize_vore_pos"); - self.view_ofs_z += prey_height;*/ } .float gurgle_oldstomachload;