From 66d6613e679647e6395b21e8b6fe5f64312a8dd2 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 21 Oct 2022 19:44:43 +0100 Subject: allow server scripts to compile with -dev or developer 1 (#492) --- .../mod/scripts/vscripts/sh_loadouts.nut | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut index fbaf9e026..85f5aa05e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut @@ -3263,6 +3263,24 @@ string function Loadouts_GetSetFileForRequestedClass( entity player ) return loadout.race } + #if DEV + // these are #if DEV'd until they work as their function names describe they should + // atm these only exist to allow the #if DEV'd calls to them for bot code in this file to compile on retail + // bots don't work in retail at all, so this doesn't matter for us really, but these should be unDEV'd and api'd properly once they are functional + + PilotLoadoutDef function GetRandomPilotLoadout() + { + PilotLoadoutDef loadout + return loadout + } + + TitanLoadoutDef function GetRandomTitanLoadout( string setFile ) + { + TitanLoadoutDef loadout + return loadout + } + #endif + bool function Loadouts_TryGivePilotLoadout( entity player ) { if ( !Loadouts_CanGivePilotLoadout( player ) ) -- cgit v1.2.3