From c56e68e17c7f525a69311e36ba76a6aad3e27ee4 Mon Sep 17 00:00:00 2001 From: RoyalBlue1 Date: Mon, 21 Feb 2022 00:54:52 +0100 Subject: Added wave event logic added some first Events created method to get 9 most spawned enemies for client ui split Harvester Fx to make shield disappear when down --- .../vscripts/mp/levels/mp_forwardbase_kodai.nut | 7 +++ .../vscripts/mp/levels/mp_forwardbase_kodai_fd.nut | 59 +++++++++++++++++++++- 2 files changed, 65 insertions(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/levels') 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 345a86d9..76dbb310 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 @@ -24,4 +24,11 @@ void function FixBatterySpawns( entity spawn ) PowerUp powerupDef = GetPowerUpFromItemRef( expect string( spawn.kv.powerUpType ) ) if ( powerupDef.spawnFunc() ) spawn.SetOrigin( BATTERY_SPAWNS[file.batteryIndex++] ) +} +global function CodeCallback_MapInit + +void function CodeCallback_MapInit() +{ + if(GameRules_GetGameMode()=="fd") + initFrontierDefenseData() } \ 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 37b89169..bc68d794 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 @@ -1 +1,58 @@ -//fuck \ No newline at end of file +global function initFrontierDefenseData + + +void function initFrontierDefenseData() +{ + shopPosition = < -3862.13, 1267.69, 1060.06> + + + + array wave0 + array wave1 + array wave2 + array wave3 + array wave4 + + + + //wave0.append(createSmokeEvent(< -12, 1720, 1556>,30)) + //wave0.append(createSmokeEvent(< -64, 964, 1556>,30)) + //wave0.append(createWaitForTimeEvent(5)) + wave0.append(createSuperSpectreEvent(< -64, 964, 1556>,<0,0,0>,"")) + wave0.append(createArcTitanEvent(< -12, 1720, 1556>,<0,0,0>,"")) + wave0.append(createDroppodGruntEvent(< -12, 1720, 1556>,"")) + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +} + +/* +void function initFrontierDefenseData() +{ + shopPosition = + + SmokeEvent emptySmokeEvent + SpawnEvent emptySpawnEvent + WaitEvent emptyWaitEvent + SoundEvent emptySoundEvent + + array wave0 + array wave1 + array wave2 + array wave3 + array wave4 + + + + + + + waveEvents.append(wave0) + waveEvents.append(wave1) + waveEvents.append(wave2) + waveEvents.append(wave3) + waveEvents.append(wave4) +}*/ \ No newline at end of file -- cgit v1.2.3