Misc functions for handling inventories across classes
Type: Reference type
Declaration | Description |
---|---|
bool IsValidInventoryHolder(CBaseEntity@ pOther) | Returns whether the given entity is a valid inventory holder |
bool CheckTokenStringRule(const string& in szRule, const string& in szValue) | Returns whether the given value is in the given rule |
int Count(CBaseMonster@ pHolder) | Counts the number of inventory items held by the given holder |
float GetWeight(CBaseMonster@ pHolder) | Gets the total weight of all inventory items held by the given holder |
int ExistsInGroup(const string& in szGroup) | Counts all the existing items in a group |
int HaveNumFromGroup(CBaseMonster@ pHolder, const string& in szGroup) | Returns count of how many items someone holds of a group |
bool HasAllInGroup(CBaseMonster@ pHolder, const string& in szGroup) | Returns true if is holding all items of a group |
void RemoveAllFromHolder(CBaseMonster@ pHolder, const bool fDrop = false, const bool fBlockingWeaponsOnly = false, const bool fKeepOnRespawn = false) | Clears all held inventory |