CItem
Jump to navigation
Jump to search
Code classes:
CItem
(items)CBaseAnimating
(models)CBaseEntity
(all ents)
CItem
is a code class that pickup entities (health kits, ammo supplies, etc) inherit.
Bug: Outputs fire on round start, and not when they're supposed to.
Note: Neither output fires when the entity is Used. Firing is also inconsistent depending on the entity.
Note: Neither output fires unless the entity is scripted_item_drop
.
Flags[edit | edit source]
- 1: Start Constrained - Item does not move. Note: In , use the Stay in air on startup keyvalue instead.
Outputs[edit | edit source]
- OnPlayerTouch
- Fires when the player touches this item.
- OnCacheInteraction
- Fires when the player somehow proves they have found the item. Methods include entering the pickup radius, and punting with the gravity gun.