From: terencehill Date: Mon, 22 Mar 2021 16:15:07 +0000 (+0100) Subject: Disable chase_front while observing, it doesn't make any sense X-Git-Tag: xonotic-v0.8.5~492 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a02872f8a59cfd3406baaad565cbb05718404ce5;p=xonotic%2Fxonotic-data.pk3dir.git Disable chase_front while observing, it doesn't make any sense --- diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 15d9d2798..69c206133 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -479,7 +479,7 @@ vector CSQCPlayer_ApplyChase(entity this, vector v) { makevectors(view_angles); forward = v_forward; - if(autocvar_chase_front) + if(autocvar_chase_front && spectatee_status != -1) forward = normalize(forward * -1); // trace a little further so it hits a surface more consistently (to avoid 'snapping' on the edge of the range) float cdist = -autocvar_chase_back - 8; @@ -491,7 +491,7 @@ vector CSQCPlayer_ApplyChase(entity this, vector v) v.y = 1 * trace_endpos.y + 8 * forward.y + 4 * trace_plane_normal.y; v.z = 1 * trace_endpos.z + 8 * forward.z + 4 * trace_plane_normal.z; - if(autocvar_chase_front) + if(autocvar_chase_front && spectatee_status != -1) { // now flip the view so the player is looking at themselves vector newang = vectoangles(forward);