From 6bfd52bd3e246d07a8219e065e2f7b4071973e41 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 18 Sep 2023 22:17:22 +0100 Subject: Fix script compile error for progression in SP (#714) --- .../mod/scripts/vscripts/sh_progression.nut | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut index 00bdff60..22354349 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut @@ -6,6 +6,18 @@ global function Progression_GetPreference global function UpdateCachedLoadouts_Delayed #endif +#if SP // literally just stub the global functions and call it a day + +void function Progression_Init() {} +bool function ProgressionEnabledForPlayer( entity player ) { return false } +#if CLIENT || UI +void function Progression_SetPreference( bool enabled ) {} +bool function Progression_GetPreference() { return false } +void function UpdateCachedLoadouts_Delayed() {} +#endif // CLIENT || UI + +#else // MP || UI basically + // SO FOR SOME GOD DAMN REASON, PUTTING THESE INTO ONE STRUCT // AND PUTTING THE #if STUFF AROUND THE VARS CAUSES A COMPILE // ERROR, SO I HAVE TO DO THIS AWFULNESS @@ -1088,4 +1100,6 @@ string function GetWeaponWarpaintRefByIndex( int skinIndex, string parentRef ) return INVALID_REF } -#endif \ No newline at end of file +#endif // SERVER + +#endif // MP -- cgit v1.2.3