From e79a58640e1ef1ea1c3c954aefccd36c3cb55286 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:11:43 +0100 Subject: automatic mod enable/disable, refactors and item registration callbacks --- .../mod/scripts/vscripts/_promode.gnut | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 Northstar.Custom/mod/scripts/vscripts/_promode.gnut (limited to 'Northstar.Custom/mod/scripts/vscripts/_promode.gnut') diff --git a/Northstar.Custom/mod/scripts/vscripts/_promode.gnut b/Northstar.Custom/mod/scripts/vscripts/_promode.gnut deleted file mode 100644 index f390fed60..000000000 --- a/Northstar.Custom/mod/scripts/vscripts/_promode.gnut +++ /dev/null @@ -1,25 +0,0 @@ -untyped -global function Promode_Init -global function PromodeEnabled - -void function Promode_Init() -{ - AddPrivateMatchModeSettingEnum( "#MODE_SETTING_CATEGORY_PROMODE", "promode_enable", [ "Disabled", "Enabled" ], "0" ) - - #if SERVER - AddCallback_OnPlayerRespawned( GivePromodeWeaponMod ) - #endif -} - -bool function PromodeEnabled() -{ - return GetCurrentPlaylistVarInt( "promode_enable", 0 ) == 1 -} - -#if SERVER -void function GivePromodeWeaponMod( entity player ) -{ - if ( PromodeEnabled() ) - player.GiveExtraWeaponMod( "promode" ) -} -#endif \ No newline at end of file -- cgit v1.2.3