Added CRandom functions

Unique RNG namespace for client-side effects and HUDs. Identifiers for these cannot clash with identifiers that affect the playsim making them completely safe to use in HUD elements. They also won't be saved.
This commit is contained in:
Boondorl 2024-05-04 20:35:44 -04:00 committed by Ricardo Luís Vaz Silva
commit 597b06ae52
47 changed files with 214 additions and 155 deletions

View file

@ -175,7 +175,7 @@ ELightMode getRealLightmode(FLevelLocals* Level, bool for3d)
CVAR(Int, sv_alwaystally, 0, CVAR_SERVERINFO)
static FRandom pr_classchoice ("RandomPlayerClassChoice");
static FRandom pr_classchoice ("RandomPlayerClassChoice", false);
extern level_info_t TheDefaultLevelInfo;
extern bool timingdemo;