37 #define EV_RandomItems_GetRandomItemClassName(i, o) \ 38 i(string, MUTATOR_ARGV_0_string) \ 39 o(string, MUTATOR_ARGV_1_string) \
bool autocvar_g_random_items
Whether to enable random items.
#define EV_RandomItems_GetRandomItemClassName(i, o)
Called when random item classname is requested.
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
REGISTER_MUTATOR(random_items,(autocvar_g_random_items||autocvar_g_random_loot))
string RandomItems_GetRandomVanillaItemClassName(string prefix, int types)
Returns a random classname of the vanilla item.
bool autocvar_g_random_loot
Whether to enable random loot.
string RandomItems_GetRandomItemClassName(string prefix)
Returns a random classname of the item.
MUTATOR_HOOKABLE(RandomItems_GetRandomItemClassName, EV_RandomItems_GetRandomItemClassName)