From: Mircea Kitsune Date: Thu, 31 Mar 2011 15:11:54 +0000 (+0300) Subject: Add a comment about the usage of chase_active X-Git-Tag: xonotic-v0.5.0~268^2^2~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28e3196c902c748597820d6b3f20bfc2140711a6;p=xonotic%2Fxonotic-data.pk3dir.git Add a comment about the usage of chase_active --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 540c07787..842013918 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -409,6 +409,9 @@ void CSQC_UpdateView(float w, float h) { if((autocvar_cl_chase_death && getstati(STAT_HEALTH) <= 0 && !intermission) || (autocvar_cl_chase_intermission && intermission) && intermission <= 1) // not during the map voting screen { + // We must set chase_active in order to get a third person view (1st person weapon model hidden and own player model showing). + // Ideally, there should be another way to enable third person mode, such as an R_SetView() function specifically for this purpose. + if(!autocvar_chase_active) cvar_set("chase_active", "-1"); // -1 enables chase_active as well as marking it as set by this code, and not by the user (which would be 1)