]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add an option to show 3rd person when player becomes frozen (off by default)
authorMario <mario@smbclan.net>
Tue, 27 Jun 2017 00:57:26 +0000 (10:57 +1000)
committerMario <mario@smbclan.net>
Tue, 27 Jun 2017 00:57:48 +0000 (10:57 +1000)
defaultXonotic.cfg
qcsrc/client/autocvars.qh
qcsrc/client/view.qc

index 625c5736b17a43cb2ad85e53f8565a90d240fd27..f2a6a201237ff547f7c6b245444c8d5a7cd8f4e8 100644 (file)
@@ -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"
index 193b7ef7cae691955478d714797e2b41206e9dd9..d95958392bb9626e2cadba13cd6edf88394bdb98 100644 (file)
@@ -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';
index d624b4eef432e673a20bac9a7912dbb042dfdef7..ffa5b420ae7c7482b0291216f370b75742d880c5 100644 (file)
@@ -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)