Skip to content

Commit

Permalink
Fix script compile error for progression in SP (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames authored Sep 18, 2023
1 parent a2c0d6c commit 6bfd52b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1088,4 +1100,6 @@ string function GetWeaponWarpaintRefByIndex( int skinIndex, string parentRef )

return INVALID_REF
}
#endif
#endif // SERVER

#endif // MP

0 comments on commit 6bfd52b

Please sign in to comment.