From: MirceaKitsune Date: Mon, 2 May 2011 00:34:21 +0000 (+0300) Subject: Don't resize the bounding box any more, due to the issues with cl_movement. Players... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=917e08f22227c250041efb267de9a64342b17e5d Don't resize the bounding box any more, due to the issues with cl_movement. Players will still grow / shrink, but collisions will stay the same. This is pretty ugly, but all that can be done right now to allow this feature to work. --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 2fec6c13..4f08c225 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2262,10 +2262,14 @@ void ApplyHealthSize() else self.scale = self.current_scale; - if(self.crouch) + // The following code sets the bounding box to match the player's size. + // It is currently disabled because of issues with engine movement prediction (cl_movement). + // The engine expects the bounding box to be default size, and changing it will cause glitches. + // This code may be enabled once the engine has the ability to use different bbox sizes for movement prediction. + /*if(self.crouch) setsize (self, PL_CROUCH_MIN * self.scale, PL_CROUCH_MAX * self.scale); else - setsize (self, PL_MIN * self.scale, PL_MAX * self.scale); + setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);*/ } void ObserverThink()