]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix player brightness
authorMario <zacjardine@y7mail.com>
Sun, 19 Apr 2015 04:46:24 +0000 (14:46 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 19 Apr 2015 04:46:24 +0000 (14:46 +1000)
qcsrc/server/cl_client.qc

index f8bd8d05026d842f3d2a42f7f58938f999dfe28f..913967c55f7dda12f08528a16930d75a7341eb29 100644 (file)
@@ -424,7 +424,11 @@ void FixPlayermodel()
                if(checkinlist(self.crypto_idfp, autocvar_sv_allow_customplayermodels_idlist) || IS_BOT_CLIENT(self))
                {
                        if(self.cvar_cl_thestars == 1)
+                       {
+                               if(autocvar_g_fullbrightplayers && autocvar_g_player_brightness)
+                                       self.colormod = '0.7 0.7 0.7'; // regular brightness is way too bright here
                                defaultmodel = "models/player/rosalina.dpm";
+                       }
                        if(self.cvar_cl_damnfurries == 1)
                                defaultmodel = "models/player/renamon.iqm";
                        if(self.cvar_cl_robot == 2)