From: MirceaKitsune Date: Thu, 17 Nov 2011 20:59:28 +0000 (+0200) Subject: Fix something in my last commit X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0306b4034a56d9e01f5c6c3de1ee68c3895b6bee;p=voretournament%2Fvoretournament.git Fix something in my last commit --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 9d3079f2..57d78ac2 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -131,7 +131,7 @@ void Vore_SetPreyPositions(entity pred) { origin_apply_x = PL_PREY_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance"); origin_apply_y = PL_PREY_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance"); - origin_apply_z = PL_PREY_VIEW_OFS_z * pred.scale; + origin_apply_z = PL_PREY_VIEW_OFS_z; // since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset head.view_ofs = origin_apply; @@ -899,4 +899,7 @@ void Vore() // Ugly workaround for a Keyhunt issue. Your team's key can still be given to you while in the stomach // (at round start), which is pretty ugly and wrong. So attempt to drop keys each frame for prey kh_Key_DropAll(self, FALSE); + + // always position camera at the center of the stomach, to reduce probability of the view poking out + self.view_ofs_z = PL_PREY_VIEW_OFS_z * self.predator.scale; } \ No newline at end of file