CItem

From Source Entities
Jump to navigation Jump to search

Code classes:

CItem is a code class that pickup entities (health kits, ammo supplies, etc) inherit.

Bug: Css.pngOutputs fire on round start, and not when they're supposed to.

Note: Csgo-small.pngNeither output fires when the entity is Used. Firing is also inconsistent depending on the entity.

Note: L4d2-small.pngNeither output fires unless the entity is scripted_item_drop.

Flags[edit | edit source]

  • 1: Start Constrained - Item does not move. Note: In Asw.png, 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 gunHl2.png.