Use a different method of applying the predator's scale to the prey's view offset...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 17:13:37 +0000 (20:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 17:13:37 +0000 (20:13 +0300)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/vore.qc

index c26a5530cbeb73f436dee938ef2fc799e28accef..ac99fae91890c1d5b30e14f804635c1e1e802d5b 100644 (file)
@@ -2252,10 +2252,7 @@ void ApplyHealthSize()
                return;\r
 \r
        if(self.predator.classname == "player" || self.fakeprey)\r
-       {\r
-               self.view_ofs = PL_CROUCH_VIEW_OFS * self.predator.scale;\r
                self.scale = 0;\r
-       }\r
        else\r
        {\r
                self.scale = bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")) / cvar("g_healthsize");\r
index 2429326b16f27201a30e3b64501e923cbb51bfd4..d38f7338e06bc7bbfffb4e028e660a2b1d56fa87 100644 (file)
@@ -147,6 +147,8 @@ void Vore_CameraEffect_Apply()
                self.cameraeffect_current = self.cameraeffect_target;\r
 \r
        self.view_ofs_z = PL_PREY_VIEW_OFS_z / self.cameraeffect_current;\r
+       if(self.predator.scale)\r
+               self.view_ofs_z *= self.predator.scale;\r
 }\r
 \r
 .float gurgle_oldstomachload;\r