From: Mario Date: Sun, 31 May 2020 20:04:42 +0000 (+1000) Subject: Don't apply glowmod or colormap to respawn ghosts X-Git-Tag: xonotic-v0.8.5~979 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b2bca7f35c49f933f4eab72432907ac4972b27a;p=xonotic%2Fxonotic-data.pk3dir.git Don't apply glowmod or colormap to respawn ghosts --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 624d997fe..3580a503a 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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) {