]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/spawning.qc
Apply player glow color instead of weapon charge color to dropped vortex and oknex
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / spawning.qc
index 30a2869f399f42b1887a4d7e626364a3f7b81b4e..6a2d65db2075b19a02a74cbba26adf4f47c8d17b 100644 (file)
@@ -152,6 +152,8 @@ void weapon_defaultspawnfunc(entity this, Weapon wpn)
 
        if(!this.owner)
                this.glowmod = wpn.wpcolor;
+       else
+               this.glowmod = colormapPaletteColor(this.owner.clientcolors & 0x0F, true) * 2;
 
        GameItem def = wpn.m_pickup;
        _StartItem(