]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Quick update with mand1nga's suggestion: Remove magical numbers for spectator size...
authorSamual <samual@xonotic.org>
Sun, 21 Aug 2011 03:49:04 +0000 (23:49 -0400)
committerSamual <samual@xonotic.org>
Sun, 21 Aug 2011 03:49:04 +0000 (23:49 -0400)
qcsrc/server/cl_client.qc

index 34534b74cd96334b3f5c0297edc09788896f8799..055982f33b1fedb8d63f154fb303cd9afe7514a6 100644 (file)
@@ -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;