]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't apply glowmod or colormap to respawn ghosts
authorMario <mario.mario@y7mail.com>
Sun, 31 May 2020 20:04:42 +0000 (06:04 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 31 May 2020 20:04:42 +0000 (06:04 +1000)
qcsrc/client/csqcmodel_hooks.qc

index 624d997fecd7cc5bb5b51cc83fb106c72755a079..3580a503aebd8311b1bc5dcc1e41a85ca4fe51ec 100644 (file)
@@ -227,6 +227,14 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
                this.skin = this.forceplayermodels_saveskin;
        }
 
+       if(this.csqcmodel_effects & CSQCMODEL_EF_RESPAWNGHOST)
+       {
+               // no glowmod or team colors for ghosts
+               this.glowmod = '0 0 0';
+               this.colormap = 0;
+               return;
+       }
+
        // forceplayercolors too
        if(teamplay)
        {