Xonotic
spawning.qh
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
13 entity Item_FindDefinition(string class_name);
14 
19 entity Item_DefinitionFromInternalName(string item_name);
20 
26 bool Item_IsAllowed(string class_name);
27 
33 bool Item_IsDefinitionAllowed(entity definition);
34 
41 entity Item_Create(string class_name, vector position, bool no_align);
42 
49 void Item_Initialize(entity item, string class_name);
50 
57 entity Item_CreateLoot(string class_name, vector position, vector vel,
58  float time_to_live);
59 
68 bool Item_InitializeLoot(entity item, string class_name, vector position,
69  vector vel, float time_to_live);
70 
74 bool Item_IsLoot(entity item);
75 
80 void Item_SetLoot(entity item, bool loot);
81 
88 
93 bool Item_IsExpiring(entity item);
94 
100 void Item_SetExpiring(entity item, bool expiring);
entity Item_CreateLoot(string class_name, vector position, vector vel, float time_to_live)
Creates a loot item.
Definition: spawning.qc:90
void Item_Initialize(entity item, string class_name)
Initializes the item according to class name.
Definition: spawning.qc:75
bool Item_IsExpiring(entity item)
Returns whether the item is expiring (i.e.
Definition: spawning.qc:136
entity() spawn
entity Item_Create(string class_name, vector position, bool no_align)
Creates a new item.
Definition: spawning.qc:60
bool Item_IsLoot(entity item)
Returns whether the item is loot.
Definition: spawning.qc:121
bool Item_InitializeLoot(entity item, string class_name, vector position, vector vel, float time_to_live)
Initializes the loot item.
Definition: spawning.qc:101
bool Item_ShouldKeepPosition(entity item)
Returns whether item should keep its position or be dropped to the ground.
Definition: spawning.qc:131
void Item_SetLoot(entity item, bool loot)
Sets the item loot status.
Definition: spawning.qc:126
entity Item_FindDefinition(string class_name)
Returns the item definition corresponding to the given class name.
Definition: spawning.qc:19
bool Item_IsDefinitionAllowed(entity definition)
Checks whether the items with the specified definition are allowed to spawn.
Definition: spawning.qc:55
vector(float skel, float bonenum) _skel_get_boneabs_hidden
bool startitem_failed
Definition: spawning.qh:7
entity Item_DefinitionFromInternalName(string item_name)
Returns the item definition corresponding to the given internal name.
Definition: spawning.qc:32
void Item_SetExpiring(entity item, bool expiring)
Sets the item expiring status (i.e.
Definition: spawning.qc:141
bool Item_IsAllowed(string class_name)
Checks whether the items with the specified class name are allowed to spawn.
Definition: spawning.qc:45