]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2434 "Wrong glow color of fullbright player models"
authorterencehill <piuntn@gmail.com>
Thu, 14 May 2020 13:32:35 +0000 (15:32 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 14 May 2020 13:32:35 +0000 (15:32 +0200)
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/weapons/projectile.qc
qcsrc/common/turrets/cl_turrets.qc
qcsrc/common/weapons/all.qh

index 1272758f76cee3de642322d9ce6ffb2419660e7a..95bf3c91f8d7699aada0dec777aa3a7bee08e456 100644 (file)
@@ -286,7 +286,7 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
 
        // GLOWMOD AND DEATH FADING
        if(this.colormap > 0)
-               this.glowmod = colormapPaletteColor(((this.colormap >= 1024) ? this.colormap : entcs_GetClientColors(this.colormap - 1)) & 0x0F, true) * 2;
+               this.glowmod = colormapPaletteColor(((this.colormap >= 1024) ? this.colormap : entcs_GetClientColors(this.colormap - 1)) & 0x0F, true);
        else
                this.glowmod = '1 1 1';
 
index 067c0badb7da09a184c192daf1841d47c782da81..4da48d6396345a049b292441839646d86d65a93f 100644 (file)
@@ -281,7 +281,7 @@ NET_HANDLE(ENT_CLIENT_PROJECTILE, bool isnew)
                // TODO: projectiles use glowmaps for their color, not teams
                #if 0
                if(this.colormap > 0)
-                       this.glowmod = colormapPaletteColor(this.colormap & 0x0F, true) * 2;
+                       this.glowmod = colormapPaletteColor(this.colormap & 0x0F, true);
                else
                        this.glowmod = '1 1 1';
                #endif
index df20e1ad2f2d8371638de205f191a458be3db41e..da67dd7a7ced2cf356a64772edde3cc8e3a64230 100644 (file)
@@ -9,7 +9,7 @@ void turret_remove(entity this)
 .vector glowmod;
 void turret_changeteam(entity this)
 {
-       this.glowmod = Team_ColorRGB(this.team - 1) * 2;
+       this.glowmod = Team_ColorRGB(this.team - 1);
        this.teamradar_color = Team_ColorRGB(this.team - 1);
 
        if(this.team)
index 26b40084bfe82b4013862d1d6c4fae03621c74ff..a2ea69a8ee6b367c1cb20fc773887405e2c085f3 100644 (file)
@@ -345,7 +345,7 @@ STATIC_INIT(register_weapons_done)
 vector weaponentity_glowmod(Weapon wep, entity actor, int c, entity wepent)
 {
     vector g;
-    if (!(g = wep.wr_glow(wep, actor, wepent))) g = colormapPaletteColor(c & 0x0F, true) * 2;
+    if (!(g = wep.wr_glow(wep, actor, wepent))) g = colormapPaletteColor(c & 0x0F, true);
     return g;
 }