From aa01f0a17ec8ef8312ec58c9c96f6680c2cf648b Mon Sep 17 00:00:00 2001 From: x3Karma Date: Mon, 3 Jan 2022 17:31:03 +0800 Subject: adds OITC and Hidden gamemodes --- .../vscripts/gamemodes/sh_gamemode_chamber.nut | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes/sh_gamemode_chamber.nut') 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 +} -- cgit v1.2.3