Some tiny tweaks
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 20:19:36 +0000 (23:19 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 20:19:36 +0000 (23:19 +0300)
data/qcsrc/server/cl_client.qc

index ac99fae91890c1d5b30e14f804635c1e1e802d5b..25c9eb6ecdf4c42103f3c7a4e932e0ccc48bee00 100644 (file)
@@ -2248,12 +2248,12 @@ float vercmp(string v1, string v2)
 \r
 void ApplyHealthSize()\r
 {\r
+       // change player scale based on the amount of health we have\r
+\r
        if not(cvar("g_healthsize"))\r
                return;\r
 \r
-       if(self.predator.classname == "player" || self.fakeprey)\r
-               self.scale = 0;\r
-       else\r
+       if not(self.predator.classname == "player" || self.fakeprey)\r
        {\r
                self.scale = bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")) / cvar("g_healthsize");\r
 \r
@@ -2596,7 +2596,6 @@ void PlayerPreThink (void)
                        }\r
                }\r
 \r
-               // health based player size\r
                ApplyHealthSize();\r
 \r
                FixPlayermodel();\r