Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
spawning.qh
Go to the documentation of this file.
1#pragma once
2
6
8.float lifetime;
13
19bool Item_IsDefinitionAllowed(entity definition);
20
28bool Item_Initialise(entity item);
29
32entity Item_RandomFromList(string itemlist);
33
37#define ITEM_IS_LOOT(item) (item.m_isloot || item.classname == "droppedweapon")
38
43#define ITEM_SET_LOOT(item, loot) (item.m_isloot = loot)
44
50#define ITEM_SHOULD_KEEP_POSITION(item) (item.noalign || (item.spawnflags & 1))
51
56#define ITEM_IS_EXPIRING(item) (item.m_isexpiring)
57
63#define ITEM_SET_EXPIRING(item, expiring) (item.m_isexpiring = expiring)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float lifetime
Definition powerups.qc:23
bool m_isloot
Holds whether item is loot.
Definition spawning.qh:10
bool m_isexpiring
Holds whether strength, shield or superweapon timers expire while this item is on the ground.
Definition spawning.qh:12
entity Item_RandomFromList(string itemlist)
Takes a space-separated list of netnames, returns the itemdef of one of them (or NULL if none are ava...
Definition spawning.qc:68
bool Item_Initialise(entity item)
An optimised and generic way to initialise items (loot or permanent).
Definition spawning.qc:27
bool Item_IsDefinitionAllowed(entity definition)
Checks whether the items with the specified definition are allowed to spawn.
Definition spawning.qc:17