From: Samual Date: Sun, 21 Aug 2011 03:49:04 +0000 (-0400) Subject: Quick update with mand1nga's suggestion: Remove magical numbers for spectator size... X-Git-Tag: xonotic-v0.5.0~108^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ffd3614a391b3e371dff7188bbd7ef244db980ff;p=xonotic%2Fxonotic-data.pk3dir.git Quick update with mand1nga's suggestion: Remove magical numbers for spectator size, instead use PL_CROUCH_* settings as that is roughly what I was going for anyway --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 34534b74c..055982f33 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -694,9 +694,9 @@ void PutObserverInServer (void) self.fixangle = TRUE; self.crouch = FALSE; - self.view_ofs = '0 0 0'; // so that you can't go inside walls with MOVETYPE_FLY, previously "PL_VIEW_OFS" - for some reason this is diff from normal players + self.view_ofs = '0 0 0'; // so that your view doesn't go into the ceiling with MOVETYPE_FLY_WORLDONLY, previously "PL_VIEW_OFS" setorigin (self, spot.origin); - setsize (self, '-16 -16 -24', '16 16 24'); // so that you can't go inside walls with MOVETYPE_FLY + setsize (self, PL_CROUCH_MIN, PL_CROUCH_MAX); // give the spectator some space between walls for MOVETYPE_FLY_WORLDONLY self.prevorigin = self.origin; self.items = 0; self.weapons = 0;