Set bounding box to the size of the player model. This brakes players and causes...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 1 May 2011 20:55:49 +0000 (23:55 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 1 May 2011 20:55:49 +0000 (23:55 +0300)
data/qcsrc/server/cl_client.qc

index 8ef9663f96942d8ca42ecfcd0964655745a95829..1cc7a460574b6fdc410e7c154b2b3f2091c9315e 100644 (file)
@@ -2261,6 +2261,10 @@ void ApplyHealthSize()
                self.scale -= cvar("g_healthsize_speed") * sys_frametime;\r
        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
 }\r
 \r
 void ObserverThink()\r