aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorMaya <malte.hoermeyer@web.de>2022-07-24 19:53:10 +0200
committerGitHub <noreply@github.com>2022-07-24 19:53:10 +0200
commitd420367d429e6a4f21d4b7661ac4a19ac1c3420b (patch)
treed9a9ab73ed736b5276932d87276fbe735a9864c7 /Northstar.CustomServers/mod/scripts/vscripts/mp
parent14ee2ce0a4fcee0e9f2afce87936016cd8b72568 (diff)
downloadNorthstarMods-d420367d429e6a4f21d4b7661ac4a19ac1c3420b.tar.gz
NorthstarMods-d420367d429e6a4f21d4b7661ac4a19ac1c3420b.zip
[FD]Formatting Frontier Defense Gamemode Files (#439)
* Formatting Frontier Defense Gamemode Files Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Co-authored-by: x3Karma <juliuslimck@gmail.com>
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut10
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai.nut5
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut2
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut6
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_rise.nut5
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut4
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut4
12 files changed, 27 insertions, 29 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
index 4ff36dbf..1781a21f 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
@@ -28,8 +28,8 @@ void function CodeCallback_MapInit()
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
}
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal.nut
index 0c12ad18..46525cea 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal.nut
@@ -6,8 +6,8 @@ void function CodeCallback_MapInit()
AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns )
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
}
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut
index 02b11010..f0c17dcf 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut
@@ -3,6 +3,10 @@ global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
AddCallback_EntitiesDidLoad( CreateEvacNodes )
+
+ // Load Frontier Defense Data
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
}
void function CreateEvacNodes()
@@ -16,10 +20,4 @@ void function CreateEvacNodes()
AddEvacNode( CreateScriptRef( < -1035.991211, -671.114380, 824.180908 >, < 16.220453, -24.511070, 0 > ) )
SetEvacSpaceNode( GetEnt( "intro_spacenode" ) )
-
-
-
- // Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut
index 4bd40ff1..e6eb493d 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut
@@ -3,6 +3,6 @@ global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai.nut
index 81d11795..99965a1b 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai.nut
@@ -15,9 +15,10 @@ void function CodeCallback_MapInit()
{
// Battery spawns (in LTS/Free Agents) are in old locations, so we move them to the proper locations
AddSpawnCallbackEditorClass( "script_ref", "script_power_up_other", FixBatterySpawns )
+
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
}
void function FixBatterySpawns( entity spawn )
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut
index 4bd40ff1..e6eb493d 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut
@@ -3,6 +3,6 @@ global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut
index 73059b9e..9b5d3080 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut
@@ -6,7 +6,7 @@ void function CodeCallback_MapInit()
AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns )
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
+ if( GameRules_GetGameMode() == "fd" )
initFrontierDefenseData()
}
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut
index 03701458..e6eb493d 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut
@@ -3,8 +3,6 @@ global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
// Load Frontier Defense Data
-
- print(GameRules_GetGameMode())
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut
index 5c6a18ed..3441fc60 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut
@@ -1,6 +1,6 @@
void function CodeCallback_MapInit()
{
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_rise.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_rise.nut
index 94dce470..e6eb493d 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_rise.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_rise.nut
@@ -2,6 +2,7 @@ global function CodeCallback_MapInit
void function CodeCallback_MapInit()
{
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ // Load Frontier Defense Data
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut
index 5c6a18ed..3441fc60 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut
@@ -1,6 +1,6 @@
void function CodeCallback_MapInit()
{
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
} \ No newline at end of file
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
index d19d88ee..bb03f1f5 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
@@ -31,8 +31,8 @@ void function CodeCallback_MapInit()
ClassicMP_SetLevelIntro( WargamesIntroSetup, 20.0 )
// Load Frontier Defense Data
- if(GameRules_GetGameMode()=="fd")
- initFrontierDefenseData()
+ if( GameRules_GetGameMode() == "fd" )
+ initFrontierDefenseData()
}