diff --git a/src/g_game.cpp b/src/g_game.cpp index 2758b3c17..ffc5b40b5 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -2986,6 +2986,7 @@ DEFINE_GLOBAL(playeringame) DEFINE_GLOBAL(PlayerClasses) DEFINE_GLOBAL_NAMED(Skins, PlayerSkins) DEFINE_GLOBAL(consoleplayer) +DEFINE_GLOBAL_NAMED(PClass::AllClasses, AllClasses) DEFINE_GLOBAL_NAMED(PClassActor::AllActorClasses, AllActorClasses) DEFINE_GLOBAL(validcount) DEFINE_GLOBAL(multiplayer) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 9ae1452e5..314b59b3a 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -1,5 +1,6 @@ struct _ native // These are the global variables, the struct is only here to avoid extending the parser for this. { + native readonly Array AllClasses; native readonly Array > AllActorClasses; native readonly Array<@PlayerClass> PlayerClasses; native readonly Array<@PlayerSkin> PlayerSkins;