]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qh
legacy networking: bring glowmod back, accidentally it
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qh
index 4819f2c255d379144cd32f44031d9bfa496a50a4..6429ff899325e504aa99aeb398e9bc5da19a634c 100644 (file)
@@ -325,7 +325,12 @@ STATIC_INIT(register_weapons_done)
 
 .entity weaponchild;
 .entity exteriorweaponentity;
-.vector weaponentity_glowmod;
+vector weaponentity_glowmod(Weapon wep, int c)
+{
+    vector g;
+    if (!(g = wep.wr_glow(wep))) g = colormapPaletteColor(c & 0x0F, true) * 2;
+    return g;
+}
 
 //.int weapon; // current weapon
 .string weaponname; // name of .weapon