Xonotic
sv_random_items.qh
Go to the documentation of this file.
1 #pragma once
2 
7 
10 
11 enum
12 {
19 };
20 
26 string RandomItems_GetRandomItemClassName(string prefix);
27 
34 string RandomItems_GetRandomVanillaItemClassName(string prefix, int types);
35 
37 #define EV_RandomItems_GetRandomItemClassName(i, o) \
38  i(string, MUTATOR_ARGV_0_string) \
39  o(string, MUTATOR_ARGV_1_string) \
40 
43 
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)).
Definition: bits.qh:8
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)
#define BITS(n)
Definition: bits.qh:9