Use player glow color as leader waypoint color
authorterencehill <piuntn@gmail.com>
Sat, 16 May 2020 16:25:45 +0000 (18:25 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 16 May 2020 16:25:45 +0000 (18:25 +0200)
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index ae9af3e7dcfc738101622065fdf6edbb5dc62a47..ff04b86a1c7d823c427696272b8f68a1c68d16ad 100644 (file)
@@ -402,6 +402,8 @@ void lms_UpdateWaypoints()
                                        WaypointSprite_AttachCarrier(WP_LmsLeader, it, RADARICON_FLAGCARRIER);
                                        it.waypointsprite_attachedforcarrier.waypointsprite_visible_for_player = lms_waypointsprite_visible_for_player;
                                        WaypointSprite_UpdateRule(it.waypointsprite_attachedforcarrier, 0, SPRITERULE_DEFAULT);
+                                       vector pl_color = colormapPaletteColor(it.clientcolors & 0x0F, false);
+                                       WaypointSprite_UpdateTeamRadar(it.waypointsprite_attachedforcarrier, RADARICON_FLAGCARRIER, pl_color);
                                        WaypointSprite_Ping(it.waypointsprite_attachedforcarrier);
                                }
                                if (!it.lms_wp_time)