Enumerations available globally (within the defined realm). There are additional enumerations used internally for configuration and event reporting that are not included here. If you need them, for whatever reason, you will need to find them or ask one of the developers in Discord.
Message destination constants used in the player message queueing system.
Realm: Client and Server
Added in: 1.0.11
Values:
Every role that is added has its role number available as a global enum value. In addition, ROLE_MAX
is defined as the highest role number assigned, ROLE_NONE
is the role number a player is given before another role is assigned, and ROLE_EXTERNAL_START
is the first role number assigned to roles defined outside of the code Custom Roles for TTT addon.
Realm: Client and Server
Added in: Whenever each role is added
What type the convar for an external role is. Used by the ULX plugin to dynamically generate the configuration UI.
Realm: Client and Server
Added in: 1.0.11
Values:
Which role team an external role is registered to. A "role team" is a way of grouping roles by common functionality and mostly maps to the logical team with the exception of the detective role team. The detective role team is part of the innocent logical team.
Realm: Client and Server
Added in: 1.0.9
Values:
What mode to use when synchronizing shop weapons and equipment between the traitor and/or detective shop and a target role.
Realm: Client and Server
Added in: 1.0.0
Values: