]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix something in my last commit
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 20:59:28 +0000 (22:59 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 20:59:28 +0000 (22:59 +0200)
data/qcsrc/server/vore.qc

index 9d3079f266bcb67a623119ecc0e385dc6611d03f..57d78ac2d4709be96ddde83889eb2c5f1c054b11 100644 (file)
@@ -131,7 +131,7 @@ void Vore_SetPreyPositions(entity pred)
                {\r
                        origin_apply_x = PL_PREY_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance");\r
                        origin_apply_y = PL_PREY_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance");\r
-                       origin_apply_z = PL_PREY_VIEW_OFS_z * pred.scale;\r
+                       origin_apply_z = PL_PREY_VIEW_OFS_z;\r
 \r
                        // since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset\r
                        head.view_ofs = origin_apply;\r
@@ -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\r
        // (at round start), which is pretty ugly and wrong. So attempt to drop keys each frame for prey\r
        kh_Key_DropAll(self, FALSE);\r
+\r
+       // always position camera at the center of the stomach, to reduce probability of the view poking out\r
+       self.view_ofs_z = PL_PREY_VIEW_OFS_z * self.predator.scale;\r
 }
\ No newline at end of file