From 0306b4034a56d9e01f5c6c3de1ee68c3895b6bee Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 17 Nov 2011 22:59:28 +0200 Subject: [PATCH] Fix something in my last commit --- data/qcsrc/server/vore.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2