From: MirceaKitsune Date: Wed, 4 May 2011 00:11:52 +0000 (+0300) Subject: Determine stomach center by the predator's scale also X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=01229477888f56581b9221178df4f4db979e073d;p=voretournament%2Fvoretournament.git Determine stomach center by the predator's scale also --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 94b8d185..39c64b9b 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -155,6 +155,7 @@ void Vore_SetPreyPositions() 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 // change prey height based on scale float prey_height;