From: terencehill Date: Sun, 14 Dec 2014 17:17:31 +0000 (+0100) Subject: Active eventchase_nexball only when playing or spectating somebody X-Git-Tag: xonotic-v0.8.0~81^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c637eb516648b51ef055d53244194805f53c3190;p=xonotic%2Fxonotic-data.pk3dir.git Active eventchase_nexball only when playing or spectating somebody --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index b7583b75d..e4deda034 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -496,7 +496,7 @@ void CSQC_UpdateView(float w, float h) if(autocvar_chase_active <= 0) // greater than 0 means it's enabled manually, and this code is skipped { WepSet weapons_stat = WepSet_GetFromStat(); - if(((spectatee_status >= 0 && (autocvar_cl_eventchase_death && is_dead)) || intermission) && !autocvar_cl_orthoview || (autocvar_cl_eventchase_nexball && gametype == MAPINFO_TYPE_NEXBALL && !(weapons_stat & WepSet_FromWeapon(WEP_PORTO)))) + if(((spectatee_status >= 0 && (autocvar_cl_eventchase_death && is_dead)) || intermission) && !autocvar_cl_orthoview || (autocvar_cl_eventchase_nexball && spectatee_status >= 0 && gametype == MAPINFO_TYPE_NEXBALL && !(weapons_stat & WepSet_FromWeapon(WEP_PORTO)))) { // make special vector since we can't use view_origin (It is one frame old as of this code, it gets set later with the results this code makes.) vector current_view_origin = (csqcplayer ? csqcplayer.origin : pmove_org);