aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/levels
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-15 17:58:33 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-15 17:58:33 +0000
commit06924c215dcf8d4dd425cbbf178509bc222c2f7d (patch)
tree36db62761142f7a3430a5be26a335168d2da8d65 /Northstar.CustomServers/mod/scripts/vscripts/mp/levels
parent1b6e5af70bf442c684b891003e516329b190c130 (diff)
downloadNorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.tar.gz
NorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.zip
more playtest fixes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/levels')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_crashsite3.nut8
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut38
2 files changed, 45 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_crashsite3.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_crashsite3.nut
index 37b89169..f169d0c7 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_crashsite3.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_crashsite3.nut
@@ -1 +1,7 @@
-//fuck \ No newline at end of file
+untyped
+global function CodeCallback_MapInit
+
+void function CodeCallback_MapInit()
+{
+ ClassicMP_SetLevelIntro( ClassicMP_DefaultNoIntro_Setup, ClassicMP_DefaultNoIntro_GetLength() )
+} \ 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 b6c8cfc2..3a46eba8 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
@@ -1,7 +1,45 @@
untyped
global function CodeCallback_MapInit
+struct {
+ bool introStartTime
+} file
+
void function CodeCallback_MapInit()
{
+ AddEvacNode( GetEnt( "evac_location1" ) )
+ AddEvacNode( GetEnt( "evac_location2" ) )
+ AddEvacNode( GetEnt( "evac_location3" ) )
+ AddEvacNode( GetEnt( "evac_location4" ) )
+
+ SetEvacSpaceNode( GetEnt( "end_spacenode" ) )
+
+ // currently disabled: intro
+ // if ( !IsFFAGame() )
+ // ClassicMP_SetLevelIntro( WargamesIntroSetup, 25.0 )
+}
+
+// intro stuff
+void function WargamesIntroSetup()
+{
+ AddCallback_OnClientConnected( WargamesIntro_OnClientConnected )
+ AddCallback_OnClientDisconnected( WargamesIntro_OnClientDisconnected )
+
+ AddCallback_GameStateEnter( eGameState.Prematch, OnPrematchStart )
+}
+
+void function WargamesIntro_OnClientConnected( entity player )
+{
+}
+
+void function WargamesIntro_OnClientDisconnected( entity player )
+{
+
+}
+
+void function OnPrematchStart()
+{
+ ClassicMP_OnIntroStarted()
+ file.introStartTime = Time()
} \ No newline at end of file