]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't resize the bounding box any more, due to the issues with cl_movement. Players...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 00:34:21 +0000 (03:34 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 00:34:21 +0000 (03:34 +0300)
data/qcsrc/server/cl_client.qc

index 2fec6c131e0c2bd8ed771b8a9408f963bbb2c60f..4f08c2253c48b60bfad9c49eeced08ac9531d834 100644 (file)
@@ -2262,10 +2262,14 @@ void ApplyHealthSize()
        else\r
                self.scale = self.current_scale;\r
 \r
-       if(self.crouch)\r
+       // The following code sets the bounding box to match the player's size.\r
+       // 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
        else\r
-               setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);\r
+               setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);*/\r
 }\r
 \r
 void ObserverThink()\r