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
10.float lifetime;
15
21bool Item_IsDefinitionAllowed(entity definition);
22
30bool Item_Initialise(entity item);
31
34entity Item_RandomFromList(string itemlist);
35
39#define ITEM_IS_LOOT(item) (item.m_isloot || item.classname == "droppedweapon")
40
45#define ITEM_SET_LOOT(item, loot) (item.m_isloot = loot)
46
52#define ITEM_SHOULD_KEEP_POSITION(item) (item.noalign || (item.spawnflags & 1))
53
58#define ITEM_IS_EXPIRING(item) (item.m_isexpiring)
59
65#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:12
bool m_isexpiring
Holds whether strength, shield or superweapon timers expire while this item is on the ground.
Definition spawning.qh:14
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:71
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
bool startitem_failed
Definition spawning.qh:7