aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-29 20:02:25 -0300
committerBarichello <artur@barichello.me>2022-01-29 20:02:48 -0300
commitcfdee009ffc1a6379c6e5982b80d28694436ac35 (patch)
tree2eebf43d478efce574e25abd7d383a257c520ff5 /Northstar.CustomServers/mod/scripts
parentdb5bc4e76aebe585e6fe9b4aa7c57bb80499fcbb (diff)
downloadNorthstarMods-cfdee009ffc1a6379c6e5982b80d28694436ac35.tar.gz
NorthstarMods-cfdee009ffc1a6379c6e5982b80d28694436ac35.zip
Fix missing minimap icons for ctf flags
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut9
1 files changed, 9 insertions, 0 deletions
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 )