\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
}\r
}\r
\r
- // health based player size\r
ApplyHealthSize();\r
\r
FixPlayermodel();\r