From: Mario Date: Tue, 27 Jun 2017 00:57:26 +0000 (+1000) Subject: Add an option to show 3rd person when player becomes frozen (off by default) X-Git-Tag: xonotic-v0.8.5~2685 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9acc62fb027e865111b156133a60d0c04f0185be;p=xonotic%2Fxonotic-data.pk3dir.git Add an option to show 3rd person when player becomes frozen (off by default) --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 625c5736b..f2a6a2012 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -229,6 +229,7 @@ seta cl_hitsound_max_pitch 1.5 "maximum pitch of hit sound" seta cl_hitsound_nom_damage 25 "damage amount at which hitsound bases pitch off" seta cl_eventchase_death 1 "camera goes into 3rd person mode when the player is dead; set to 2 to active the effect only when the corpse doesn't move anymore" +seta cl_eventchase_frozen 0 "camera goes into 3rd person mode when the player is frozen" seta cl_eventchase_nexball 1 "camera goes into 3rd person mode when in nexball game-mode" seta cl_eventchase_distance 140 "final camera distance" seta cl_eventchase_generator_distance 400 "final camera distance while viewing generator explosion" diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 193b7ef7c..d95958392 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -413,6 +413,7 @@ float autocvar_cl_hitsound_nom_damage = 25; float autocvar_cl_hitsound_antispam_time; int autocvar_cl_eventchase_death = 1; float autocvar_cl_eventchase_distance = 140; +bool autocvar_cl_eventchase_frozen = false; float autocvar_cl_eventchase_speed = 1.3; vector autocvar_cl_eventchase_maxs = '12 12 8'; vector autocvar_cl_eventchase_mins = '-12 -12 -8'; diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index d624b4eef..ffa5b420a 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -770,6 +770,8 @@ bool WantEventchase(entity this) return true; if(MUTATOR_CALLHOOK(WantEventchase, this)) return true; + if(autocvar_cl_eventchase_frozen && STAT(FROZEN)) + return true; if(autocvar_cl_eventchase_death && (STAT(HEALTH) <= 0)) { if(autocvar_cl_eventchase_death == 2)