From: MirceaKitsune Date: Mon, 2 May 2011 01:04:14 +0000 (+0300) Subject: Set the view offset according to the payer size. Due to the bboxes being unmodified... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=7a0f9c4d2ddee07c8ed37e78ff88f2f3eb30fd0e Set the view offset according to the payer size. Due to the bboxes being unmodified, this will cause the camera to go into walls when you become a macro :/ --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 569769df..675c757d 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2257,10 +2257,16 @@ void ApplyHealthSize() // 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); + if(self.crouch) + { + //setsize (self, PL_CROUCH_MIN * self.scale, PL_CROUCH_MAX * self.scale); + self.view_ofs = PL_CROUCH_VIEW_OFS * self.scale; + } else - setsize (self, PL_MIN * self.scale, PL_MAX * self.scale);*/ + { + //setsize (self, PL_MIN * self.scale, PL_MAX * self.scale); + self.view_ofs = PL_VIEW_OFS * self.scale; + } } void ObserverThink()