Determine stomach center by the predator's scale also
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 00:11:52 +0000 (03:11 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 00:11:52 +0000 (03:11 +0300)
data/qcsrc/server/vore.qc

index 94b8d185a052bdac339cab45725d582267dfddc6..39c64b9b5afeaa261c795a6e4c641f045e4db98d 100644 (file)
@@ -155,6 +155,7 @@ void Vore_SetPreyPositions()
                        origin_apply_x *= v_forward_x; // position depends on the predator's rotation\r
                        origin_apply_y *= v_forward_y; // position depends on the predator's rotation\r
                        head.view_ofs = PL_PREY_VIEW_OFS + origin_apply * cvar("g_vore_neighborprey_distance");\r
+                       head.view_ofs_z *= self.scale; // stomach center depends on predator scale\r
 \r
                        // change prey height based on scale\r
                        float prey_height;\r