From 731549840c8db1925998d603e94e6092650d0db1 Mon Sep 17 00:00:00 2001 From: Barichello Date: Sun, 30 Jan 2022 12:08:27 -0300 Subject: Track enemies marked for death on minimap --- .../mod/scripts/vscripts/gamemodes/_gamemode_mfd.nut | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Northstar.CustomServers/mod/scripts') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_mfd.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_mfd.nut index 11cb71f6..659dbb7a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_mfd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_mfd.nut @@ -153,6 +153,8 @@ void function MarkPlayers( entity imcMark, entity militiaMark ) // clear marks level.mfdActiveMarkedPlayerEnt[ TEAM_IMC ].SetOwner( null ) level.mfdActiveMarkedPlayerEnt[ TEAM_MILITIA ].SetOwner( null ) + imcMark.Minimap_Hide( TEAM_MILITIA, null ) + militiaMark.Minimap_Hide( TEAM_IMC, null ) foreach ( entity player in GetPlayerArray() ) Remote_CallFunction_NonReplay( player, "SCB_MarkedChanged" ) @@ -165,6 +167,8 @@ void function MarkPlayers( entity imcMark, entity militiaMark ) // set marks level.mfdActiveMarkedPlayerEnt[ TEAM_IMC ].SetOwner( imcMark ) level.mfdActiveMarkedPlayerEnt[ TEAM_MILITIA ].SetOwner( militiaMark ) + imcMark.Minimap_AlwaysShow( TEAM_MILITIA, null ) + militiaMark.Minimap_AlwaysShow( TEAM_IMC, null ) foreach ( entity player in GetPlayerArray() ) Remote_CallFunction_NonReplay( player, "SCB_MarkedChanged" ) -- cgit v1.2.3