]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make map weapons glow the color of their waypoint instead of white
authorMario <mario@smbclan.net>
Sun, 7 May 2017 17:24:43 +0000 (03:24 +1000)
committerMario <mario@smbclan.net>
Sun, 7 May 2017 17:24:43 +0000 (03:24 +1000)
qcsrc/server/weapons/spawning.qc

index 00bc0e5d12397c2e608cae53f245a1593d2d3e3c..b493409b0296ebc8f122b473cecf8044b56b9d0a 100644 (file)
@@ -133,6 +133,9 @@ void weapon_defaultspawnfunc(entity this, Weapon e)
        if (g_pickup_weapons_anyway)
                this.pickup_anyway = true;
 
+       if(!this.owner)
+               this.glowmod = wpn.wpcolor;
+
        GameItem def = wpn.m_pickup;
        _StartItem(
                this,