aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-03 14:25:13 -0300
committerGitHub <noreply@github.com>2022-01-03 14:25:13 -0300
commit2e34d7e7d16815fd648d3ff5c4d1f9f64d10cf9b (patch)
treed14337ae6d17ea8d166de099b30db6a6b1f0cd6a /Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut
parent4e011f61d4c0350705f914891b69b49de5b8fffc (diff)
parent8f3f0cfc089f0388862865e4758a130201aca1ce (diff)
downloadNorthstarMods-2e34d7e7d16815fd648d3ff5c4d1f9f64d10cf9b.tar.gz
NorthstarMods-2e34d7e7d16815fd648d3ff5c4d1f9f64d10cf9b.zip
Merge pull request #56 from x3Karma/main
Add One in the Chamber and The Hidden to available playlists
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut41
1 files changed, 41 insertions, 0 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut
new file mode 100644
index 00000000..e78a020b
--- /dev/null
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut
@@ -0,0 +1,41 @@
+global function Sh_GamemodeChamber_Init
+
+global const string GAMEMODE_CHAMBER = "chamber"
+
+void function Sh_GamemodeChamber_Init()
+{
+ // create custom gamemode
+ AddCallback_OnCustomGamemodesInit( CreateGamemodeChamber )
+}
+
+void function CreateGamemodeChamber()
+{
+ GameMode_Create( GAMEMODE_CHAMBER )
+ GameMode_SetName( GAMEMODE_CHAMBER, "#GAMEMODE_CHAMBER" )
+ GameMode_SetDesc( GAMEMODE_CHAMBER, "#PL_chamber_desc" )
+ GameMode_SetGameModeAnnouncement( GAMEMODE_CHAMBER, "ffa_modeDesc" )
+ GameMode_SetDefaultTimeLimits( GAMEMODE_CHAMBER, 10, 0.0 )
+ GameMode_AddScoreboardColumnData( GAMEMODE_CHAMBER, "#SCOREBOARD_SCORE", PGS_ASSAULT_SCORE, 2 )
+ GameMode_AddScoreboardColumnData( GAMEMODE_CHAMBER, "#SCOREBOARD_PILOT_KILLS", PGS_PILOT_KILLS, 2 )
+ GameMode_SetColor( GAMEMODE_CHAMBER, [147, 204, 57, 255] )
+
+ AddPrivateMatchMode( GAMEMODE_CHAMBER ) // add to private lobby modes
+
+ // set this to 25 score limit default
+ GameMode_SetDefaultScoreLimits( GAMEMODE_CHAMBER, 25, 0 )
+
+ #if SERVER
+ GameMode_AddServerInit( GAMEMODE_CHAMBER, GamemodeChamber_Init )
+ GameMode_AddServerInit( GAMEMODE_CHAMBER, GamemodeFFAShared_Init )
+ GameMode_SetPilotSpawnpointsRatingFunc( GAMEMODE_CHAMBER, RateSpawnpoints_Generic )
+ GameMode_SetTitanSpawnpointsRatingFunc( GAMEMODE_CHAMBER, RateSpawnpoints_Generic )
+ #elseif CLIENT
+ GameMode_AddClientInit( GAMEMODE_CHAMBER, ClGamemodeChamber_Init )
+ GameMode_AddClientInit( GAMEMODE_CHAMBER, GamemodeFFAShared_Init )
+ GameMode_AddClientInit( GAMEMODE_CHAMBER, ClGamemodeFFA_Init )
+ #endif
+ #if !UI
+ GameMode_SetScoreCompareFunc( GAMEMODE_CHAMBER, CompareAssaultScore )
+ GameMode_AddSharedInit( GAMEMODE_CHAMBER, GamemodeFFA_Dialogue_Init )
+ #endif
+}