From: MirceaKitsune Date: Mon, 2 May 2011 20:19:36 +0000 (+0300) Subject: Some tiny tweaks X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=47161f5b6114fd2230cb1b351d2c0122dd102627;p=voretournament%2Fvoretournament.git Some tiny tweaks --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index ac99fae9..25c9eb6e 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2248,12 +2248,12 @@ float vercmp(string v1, string v2) void ApplyHealthSize() { + // change player scale based on the amount of health we have + if not(cvar("g_healthsize")) return; - if(self.predator.classname == "player" || self.fakeprey) - self.scale = 0; - else + if not(self.predator.classname == "player" || self.fakeprey) { self.scale = bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")) / cvar("g_healthsize"); @@ -2596,7 +2596,6 @@ void PlayerPreThink (void) } } - // health based player size ApplyHealthSize(); FixPlayermodel();