aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-10-21 19:44:43 +0100
committerGitHub <noreply@github.com>2022-10-21 19:44:43 +0100
commit66d6613e679647e6395b21e8b6fe5f64312a8dd2 (patch)
treedaf965c2aefa2ef0a5c21396ab53d3727491a28b /Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut
parent1dc1986a7ab58a212be42ce557f5407029723f01 (diff)
downloadNorthstarMods-66d6613e679647e6395b21e8b6fe5f64312a8dd2.tar.gz
NorthstarMods-66d6613e679647e6395b21e8b6fe5f64312a8dd2.zip
allow server scripts to compile with -dev or developer 1 (#492)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut18
1 files changed, 18 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut
index fbaf9e02..85f5aa05 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 ) )