]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix the view offset issues by handling the view offset properly. You won't have your...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 11 Sep 2010 11:14:18 +0000 (14:14 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 11 Sep 2010 11:14:18 +0000 (14:14 +0300)
data/qcsrc/server/vore.qc

index 607b66504bfcb955e625b7430202e62ff9d6655d..e0ef601fabf9daeda805402991c43d3428d41b8e 100644 (file)
@@ -1,7 +1,7 @@
 .float regurgitate_prepare;\r
 .float system_delay, swallow_delay, digest_button_delay_time, regurgitate_button_delay_time;\r
 .float complain_vore;\r
-.float vore_oldmovetype, vore_oldsolid, vore_oldstomachload, vore_oldview_ofs_z;\r
+.float vore_oldmovetype, vore_oldsolid, vore_oldstomachload;\r
 \r
 const float system_delay_time = 0.1;\r
 const float complain_delay_time = 1;\r
@@ -110,7 +110,7 @@ void Vore_CameraEffect_Apply()
        else\r
                self.cameraeffect_current = self.cameraeffect_target;\r
 \r
-       self.view_ofs_z = self.vore_oldview_ofs_z / self.cameraeffect_current;\r
+       self.view_ofs_z = PL_VIEW_OFS_z / self.cameraeffect_current;\r
 }\r
 \r
 .float gurgle_oldstomachload;\r
@@ -145,7 +145,6 @@ void Vore_Swallow(entity e)
 \r
        e.vore_oldmovetype = e.movetype;\r
        e.vore_oldsolid = e.solid;\r
-       e.vore_oldview_ofs_z = e.view_ofs_z;\r
 \r
        e.predator = self;\r
        setorigin(e, e.predator.origin);\r
@@ -191,7 +190,7 @@ void Vore_Regurgitate(entity e)
        e.movetype = e.vore_oldmovetype;\r
        if(e.health > 0) // leave SOLID_NOT for dead bodies\r
                e.solid = e.vore_oldsolid;\r
-       e.view_ofs_z = e.vore_oldview_ofs_z;\r
+       e.view_ofs_z = PL_VIEW_OFS_z;\r
        e.alpha = default_player_alpha;\r
 \r
        // apply velocities\r