]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Set the view offset according to the payer size. Due to the bboxes being unmodified...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 01:04:14 +0000 (04:04 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 01:04:14 +0000 (04:04 +0300)
data/qcsrc/server/cl_client.qc

index 569769df9d361f47cec88b0e0e3cabf834a66e10..675c757df9c0f163790bffd128f1dd2b41920ab9 100644 (file)
@@ -2257,10 +2257,16 @@ void ApplyHealthSize()
        // It is currently disabled because of issues with engine movement prediction (cl_movement).\r
        // The engine expects the bounding box to be default size, and changing it will cause glitches.\r
        // This code may be enabled once the engine has the ability to use different bbox sizes for movement prediction.\r
-       /*if(self.crouch)\r
-               setsize (self, PL_CROUCH_MIN * self.scale, PL_CROUCH_MAX * self.scale);\r
+       if(self.crouch)\r
+       {\r
+               //setsize (self, PL_CROUCH_MIN * self.scale, PL_CROUCH_MAX * self.scale);\r
+               self.view_ofs = PL_CROUCH_VIEW_OFS * self.scale;\r
+       }\r
        else\r
-               setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);*/\r
+       {\r
+               //setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);\r
+               self.view_ofs = PL_VIEW_OFS * self.scale;\r
+       }\r
 }\r
 \r
 void ObserverThink()\r