From 2b2bca7f35c49f933f4eab72432907ac4972b27a Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 1 Jun 2020 06:04:42 +1000 Subject: [PATCH] Don't apply glowmod or colormap to respawn ghosts --- qcsrc/client/csqcmodel_hooks.qc | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- 2.39.2