aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-09-18 22:17:22 +0100
committerGitHub <noreply@github.com>2023-09-18 23:17:22 +0200
commit6bfd52bd3e246d07a8219e065e2f7b4071973e41 (patch)
treec615422d4cb49b3a69d8433350187b6d9867c1a9
parenta2c0d6c0d4a666b60fabfcb3672953bbd6c73b3b (diff)
downloadNorthstarMods-6bfd52bd3e246d07a8219e065e2f7b4071973e41.tar.gz
NorthstarMods-6bfd52bd3e246d07a8219e065e2f7b4071973e41.zip
Fix script compile error for progression in SP (#714)v1.19.1-rc1v1.19.1
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut16
1 files changed, 15 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut
index 00bdff60c..22354349a 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