Account crouching for the bbox. Still need to fix issue with cl_movement 1 however...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 1 May 2011 21:53:34 +0000 (00:53 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 1 May 2011 21:53:34 +0000 (00:53 +0300)
data/qcsrc/server/cl_client.qc

index 1cc7a460574b6fdc410e7c154b2b3f2091c9315e..2fec6c131e0c2bd8ed771b8a9408f963bbb2c60f 100644 (file)
@@ -2262,9 +2262,10 @@ void ApplyHealthSize()
        else\r
                self.scale = self.current_scale;\r
 \r
-       self.mins = PL_MIN * self.scale;\r
-       self.maxs = PL_MAX * self.scale;\r
-       setsize (self, self.mins, self.maxs);\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
 }\r
 \r
 void ObserverThink()\r
@@ -2379,9 +2380,6 @@ void PlayerPreThink (void)
        // core code for the vore system\r
        Vore();\r
 \r
-       // health based player size\r
-       ApplyHealthSize();\r
-\r
        // version nagging\r
        if(self.version_nagtime)\r
                if(self.cvar_g_voretournamentversion)\r
@@ -2592,6 +2590,9 @@ void PlayerPreThink (void)
                        }\r
                }\r
 \r
+               // health based player size\r
+               ApplyHealthSize();\r
+\r
                FixPlayermodel();\r
 \r
                GrabberFrame();\r