From cfdee009ffc1a6379c6e5982b80d28694436ac35 Mon Sep 17 00:00:00 2001 From: Barichello Date: Sat, 29 Jan 2022 20:02:25 -0300 Subject: Fix missing minimap icons for ctf flags --- .../mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut index e28063a1..c8ff7e9f 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut @@ -179,6 +179,13 @@ void function OnPlayerKilled( entity victim, entity attacker, var damageInfo ) } } +void function SetupFlagMinimapIcon( entity flag ) +{ + flag.Minimap_AlwaysShow( TEAM_IMC, null ) + flag.Minimap_AlwaysShow( TEAM_MILITIA, null ) + flag.Minimap_SetAlignUpright( true ) +} + void function CreateFlags() { if ( IsValid( file.imcFlagSpawn ) ) @@ -245,6 +252,7 @@ void function CreateFlags() { file.imcFlagSpawn = base file.imcFlag = flag + SetupFlagMinimapIcon( file.imcFlag ) file.imcFlagReturnTrigger = returnTrigger SetGlobalNetEnt( "imcFlag", file.imcFlag ) @@ -254,6 +262,7 @@ void function CreateFlags() { file.militiaFlagSpawn = base file.militiaFlag = flag + SetupFlagMinimapIcon( file.militiaFlag ) file.militiaFlagReturnTrigger = returnTrigger SetGlobalNetEnt( "milFlag", file.militiaFlag ) -- cgit v1.2.3