Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_random_items.qh
Go to the documentation of this file.
1#pragma once
2
7
10
11enum
12{
19};
20
26string RandomItems_GetRandomItemClassName(string prefix);
27
34string 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
#define MUTATOR_HOOKABLE(id, params)
Definition base.qh:129
#define REGISTER_MUTATOR(...)
Definition base.qh:295
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
#define BITS(n)
Definition bits.qh:9
string RandomItems_GetRandomItemClassName(string prefix)
Returns a random classname of the item.
bool autocvar_g_random_items
Whether to enable random items.
bool autocvar_g_random_loot
Whether to enable random loot.
@ RANDOM_ITEM_TYPE_RESOURCE
@ RANDOM_ITEM_TYPE_ALL
@ RANDOM_ITEM_TYPE_HEALTH
@ RANDOM_ITEM_TYPE_WEAPON
@ RANDOM_ITEM_TYPE_ARMOR
@ RANDOM_ITEM_TYPE_POWERUP
string RandomItems_GetRandomItemClassName(string prefix)
Returns a random classname of the item.
#define EV_RandomItems_GetRandomItemClassName(i, o)
Called when random item classname is requested.
string RandomItems_GetRandomVanillaItemClassName(string prefix, int types)
Returns a random classname of the vanilla item.