diff options
author | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-05-30 05:01:33 +0200 |
---|---|---|
committer | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-05-30 05:01:33 +0200 |
commit | c4a807ce87c9be6f6a453d1e8deb4876630531bf (patch) | |
tree | 4e9d6a864f5cd90b2f41f4d8b989c218f16c59b6 /Northstar.CustomServers/mod/scripts/vscripts/mp | |
parent | 217f476f7aeeb0bb4a18a534075a979d8e95115b (diff) | |
download | NorthstarMods-c4a807ce87c9be6f6a453d1e8deb4876630531bf.tar.gz NorthstarMods-c4a807ce87c9be6f6a453d1e8deb4876630531bf.zip |
Split FD into multiple files
-added dummy wave creation function for all "vanilla" FD maps
-reworked event handling to support multiple event threads
-tracking more variables for end medals
-added debugging function to stationary firing positions
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
21 files changed, 347 insertions, 74 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 8b2a4060..4ff36dbf 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 @@ -25,6 +25,12 @@ void function CodeCallback_MapInit() // there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns ) AddSpawnCallback( "sky_camera", FixSkycamFog ) + + + // Load Frontier Defense Data + if(GameRules_GetGameMode()=="fd") + initFrontierDefenseData() + } void function FixBatterySpawns( entity spawn ) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ No newline at end of file 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 2e35417f..0c12ad18 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 @@ -4,6 +4,11 @@ void function CodeCallback_MapInit() { // there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns ) + + // Load Frontier Defense Data + if(GameRules_GetGameMode()=="fd") + initFrontierDefenseData() + } void function TrimBadTitanStartSpawns( entity spawn ) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_black_water_canal_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ No newline at end of file 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 40cf942e..83338c8e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02.nut @@ -11,4 +11,10 @@ void function CodeCallback_MapInit() 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_colony02_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_colony02_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ 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 37b89169..5c6a18ed 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock.nut @@ -1 +1,6 @@ -//fuck
\ No newline at end of file +void function CodeCallback_MapInit() +{ + // 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_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_drydock_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ No newline at end of file diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai_fd.nut index 19f7c0e6..b8c0740d 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_forwardbase_kodai_fd.nut @@ -12,68 +12,69 @@ void function initFrontierDefenseData() array<WaveEvent> wave4 //wave0.append(createSuperSpectreEvent(< -64, 964, 1456>, <0,0,0 >, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose")) - - wave0.append(createSmokeEvent(< -12, 1720, 1456>,30)) - wave0.append(createSmokeEvent(< -64, 964, 1456>,30)) - - wave0.append(createWaitForTimeEvent(7)) - wave0.append(createWaitUntilAliveEvent(1)) - - wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose")) - wave0.append(createDroppodStalkerEvent( < 2193, 434, 955>, "hillRouteClose")) - wave0.append(createDroppodStalkerEvent( < 909, 3094, 968>, "hillRouteClose")) - - wave0.append(createWaitForTimeEvent(7)) - wave0.append(createWaitUntilAliveEvent(1)) - - wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose")) - - wave0.append(createWaitForTimeEvent(7)) - wave0.append(createWaitUntilAliveEvent(1)) - - wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose")) - wave0.append(createDroppodStalkerEvent( < 2193, 434, 955>, "hillRouteClose")) - wave0.append(createDroppodStalkerEvent( < 909, 3094, 968>, "hillRouteClose")) - - wave0.append(createWaitForTimeEvent(7)) - wave0.append(createWaitUntilAliveEvent(1)) - - wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose")) - - wave0.append(createWaitForTimeEvent(7)) - wave0.append(createWaitUntilAliveEvent(1)) - - wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose")) - wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose")) - wave0.append(CreateToneSniperTitanEvent( < 1373, 1219, 1314>, <0,0,0>)) + + wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose",1)) + wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose",2)) + wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose",3)) + wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose",4)) + wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose",5)) + + wave0.append(createSmokeEvent(< -12, 1720, 1456>,30,6)) + wave0.append(createSmokeEvent(< -64, 964, 1456>,30,7)) + + wave0.append(createWaitForTimeEvent(7,8)) + wave0.append(createWaitUntilAliveEvent(1,9)) + + wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose",10)) + wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose",11)) + wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose",12)) + wave0.append(createDroppodStalkerEvent( < 2193, 434, 955>, "hillRouteClose",13)) + wave0.append(createDroppodStalkerEvent( < 909, 3094, 968>, "hillRouteClose",14)) + + wave0.append(createWaitForTimeEvent(7,15)) + wave0.append(createWaitUntilAliveEvent(1,16)) + + wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose",17)) + wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose",18)) + wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose",19)) + wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose",20)) + wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose",21)) + + wave0.append(createWaitForTimeEvent(7,22)) + wave0.append(createWaitUntilAliveEvent(1,23)) + + wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose",24)) + wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose",25)) + wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose",26)) + wave0.append(createDroppodStalkerEvent( < 2193, 434, 955>, "hillRouteClose",27)) + wave0.append(createDroppodStalkerEvent( < 909, 3094, 968>, "hillRouteClose",28)) + + wave0.append(createWaitForTimeEvent(7,29)) + wave0.append(createWaitUntilAliveEvent(1,30)) + + wave0.append(createDroppodGruntEvent( < 865, 694, 1380>, "hillRouteClose",31)) + wave0.append(createDroppodGruntEvent( < 885, 1722, 1377>, "hillRouteClose",32)) + wave0.append(createDroppodGruntEvent( < 1226, 1391, 1355>, "hillRouteClose",33)) + wave0.append(createDroppodGruntEvent( < 1258, 922, 1331>, "hillRouteClose",34)) + wave0.append(createDroppodGruntEvent( < 1117, 330, 1372>, "hillRouteClose",35)) + + wave0.append(createWaitForTimeEvent(7,36)) + wave0.append(createWaitUntilAliveEvent(1,37)) + + //wave0.append(createDroppodGruntEvent( < 1309, 2122, 1324>, "hillRouteClose")) + //wave0.append(createDroppodGruntEvent( < 985, -110, 1369>, "hillRouteClose")) + //wave0.append(createDroppodGruntEvent( < 264, 2840, 968>, "hillRouteClose")) + wave0.append(CreateToneSniperTitanEvent( < 1373, 1219, 1314>, <0,0,0>,0)) // wave0.append(CreateTickEvent( < -64, 964, 1458>, <0,0,0>, 4, "hillRouteClose" )) - wave0.append(createWaitForTimeEvent(10)) + // wave0.append(CreateTickEvent( < -64, 964, 1458>, <0,0,0>, 56, "hillRouteClose" )) //wave0.append(createMortarTitanEvent(< 1632, 4720, 944>,<0,0,0>)) - wave0.append(createWaitUntilAliveEvent(0)) - wave1.append(createArcTitanEvent(< -12, 1720, 1456>,<0,0,0>, "hillRouteClose")) - wave1.append(createNukeTitanEvent( < -64, 964, 1456>,<0,0,0>, "hillRouteClose")) - wave1.append(createCloakDroneEvent(< 1632, 4720, 1200>,<0,0,0>)) - wave1.append(createWaitUntilAliveEvent(0)) + + //wave1.append(createArcTitanEvent(< -12, 1720, 1456>,<0,0,0>, "hillRouteClose")) + //wave1.append(createNukeTitanEvent( < -64, 964, 1456>,<0,0,0>, "hillRouteClose")) + //wave1.append(createCloakDroneEvent(< 1632, 4720, 1200>,<0,0,0>)) + //wave1.append(createWaitUntilAliveEvent(0)) // wave0.append(createArcTitanEvent(< -12, 1720, 1456>,<0,0,0>,"hillRouteClose")) //wave0.append(createArcTitanEvent(< -12, 1720, 1456>,<0,0,0>,"hillRouteClose")) @@ -82,7 +83,7 @@ void function initFrontierDefenseData() waveEvents.append(wave0) //waveEvents.append(wave0) - waveEvents.append(wave1) + //waveEvents.append(wave1) //waveEvents.append(wave2) //waveEvents.append(wave3) //waveEvents.append(wave4) 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 37b89169..5c6a18ed 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch.nut @@ -1 +1,6 @@ -//fuck
\ No newline at end of file +void function CodeCallback_MapInit() +{ + // 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_glitch_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_glitch_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ 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 f4b48f6d..73059b9e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave.nut @@ -4,6 +4,11 @@ void function CodeCallback_MapInit() { // there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns ) + + // Load Frontier Defense Data + if(GameRules_GetGameMode()=="fd") + initFrontierDefenseData() + } void function TrimBadTitanStartSpawns( entity spawn ) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_grave_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ No newline at end of file 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 37b89169..5c6a18ed 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead.nut @@ -1 +1,6 @@ -//fuck
\ No newline at end of file +void function CodeCallback_MapInit() +{ + // 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_homestead_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_homestead_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ 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 37b89169..5c6a18ed 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02.nut @@ -1 +1,6 @@ -//fuck
\ No newline at end of file +void function CodeCallback_MapInit() +{ + // 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_relic02_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_relic02_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ 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 37b89169..5c6a18ed 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw.nut @@ -1 +1,6 @@ -//fuck
\ No newline at end of file +void function CodeCallback_MapInit() +{ + // 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_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_thaw_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ 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 5af01346..c1290bb0 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut @@ -29,6 +29,11 @@ void function CodeCallback_MapInit() // currently disabled until finished: intro if ( !IsFFAGame() ) ClassicMP_SetLevelIntro( WargamesIntroSetup, 20.0 ) + + // Load Frontier Defense Data + if(GameRules_GetGameMode()=="fd") + initFrontierDefenseData() +} } void function AddEvacNodes() diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames_fd.nut index 37b89169..dcdd2c9a 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames_fd.nut @@ -1 +1,23 @@ -//fuck
\ No newline at end of file +global function initFrontiereDefenseData +void function initFrontierDefenseData() +{ + shopPosition = <0,0,0> + + + array<WaveEvent> wave0 + array<WaveEvent> wave1 + array<WaveEvent> wave2 + array<WaveEvent> wave3 + array<WaveEvent> wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}
\ No newline at end of file |