39#define ITEM_IS_LOOT(item) (item.m_isloot || item.classname == "droppedweapon")
45#define ITEM_SET_LOOT(item, loot) (item.m_isloot = loot)
52#define ITEM_SHOULD_KEEP_POSITION(item) (item.noalign || (item.spawnflags & 1))
58#define ITEM_IS_EXPIRING(item) (item.m_isexpiring)
65#define ITEM_SET_EXPIRING(item, expiring) (item.m_isexpiring = expiring)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
bool m_isloot
Holds whether item is loot.
bool m_isexpiring
Holds whether strength, shield or superweapon timers expire while this item is on the ground.
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...
bool Item_Initialise(entity item)
An optimised and generic way to initialise items (loot or permanent)
bool Item_IsDefinitionAllowed(entity definition)
Checks whether the items with the specified definition are allowed to spawn.