From: MirceaKitsune Date: Sun, 1 May 2011 20:55:49 +0000 (+0300) Subject: Set bounding box to the size of the player model. This brakes players and causes... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9381f977e0fc58268c4e44ee7def6420421594dd;p=voretournament%2Fvoretournament.git Set bounding box to the size of the player model. This brakes players and causes them to go through the floor in some circumstances! Need to figure the reason for this. --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 8ef9663f..1cc7a460 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2261,6 +2261,10 @@ void ApplyHealthSize() self.scale -= cvar("g_healthsize_speed") * sys_frametime; else self.scale = self.current_scale; + + self.mins = PL_MIN * self.scale; + self.maxs = PL_MAX * self.scale; + setsize (self, self.mins, self.maxs); } void ObserverThink()