]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/csqcmodel_hooks.qc
Add cl_respawn_ghosts_keepcolors (disabled by default)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / csqcmodel_hooks.qc
index adf5496835774f60b3e734438e148d06bbf2682d..99456bd3ed03d129d2fb2ffc741e380e612f66ec 100644 (file)
@@ -282,9 +282,8 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
 
        LABEL(skipforcemodels)
 
-       if(this.csqcmodel_effects & CSQCMODEL_EF_RESPAWNGHOST)
+       if((this.csqcmodel_effects & CSQCMODEL_EF_RESPAWNGHOST) && !autocvar_cl_respawn_ghosts_keepcolors)
        {
-               // no glowmod or team colors for ghosts
                this.glowmod = '0 0 0';
                this.colormap = 0;
                return;