From 9a2778eabc7ba968968e41dda9f03525d6c5383d Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Thu, 14 Oct 2021 21:01:40 +0100 Subject: oh fuck i forgot to commit for a while --- Northstar.Coop/mod/scripts/vscripts/sh_sp_coop.gnut | 6 ++++++ .../mod/scripts/vscripts/sh_sp_coop_lobby.gnut | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Northstar.Coop/mod/scripts/vscripts/sh_sp_coop.gnut create mode 100644 Northstar.Coop/mod/scripts/vscripts/sh_sp_coop_lobby.gnut (limited to 'Northstar.Coop/mod') diff --git a/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop.gnut b/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop.gnut new file mode 100644 index 00000000..09293a70 --- /dev/null +++ b/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop.gnut @@ -0,0 +1,6 @@ +global function IsSPCoopMode + +bool function IsSPCoopMode() +{ + return GAMETYPE == "solo" && GetCurrentPlaylistName() == "sp_coop" +} \ No newline at end of file diff --git a/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop_lobby.gnut b/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop_lobby.gnut new file mode 100644 index 00000000..59a31ee8 --- /dev/null +++ b/Northstar.Coop/mod/scripts/vscripts/sh_sp_coop_lobby.gnut @@ -0,0 +1,19 @@ +global function SingleplayerCoopLobby_Init + +void function SingleplayerCoopLobby_Init() +{ + if ( !IsLobby() ) + return + + AddPrivateMatchMode( "sp_coop" ) + + AddPrivateMatchMap( "sp_training" ) + AddPrivateMatchMap( "sp_crashsite" ) + AddPrivateMatchMap( "sp_sewers1" ) + AddPrivateMatchMap( "sp_boomtown_start" ) + AddPrivateMatchMap( "sp_hub_timeshift" ) + AddPrivateMatchMap( "sp_beacon" ) + AddPrivateMatchMap( "sp_tday" ) + AddPrivateMatchMap( "sp_s2s" ) + AddPrivateMatchMap( "sp_skyway_v1" ) +} \ No newline at end of file -- cgit v1.2.3