item_custom
Jump to navigation
Jump to search

item_custom is a point entity available in
No More Room in Hell.
Entity Description
The item_custom is a special entity that can be picked up by Survivors, often modified by mutators, vscripts and mappers in order to achieve a new effect or mechanic without requiring the developers to officially add it. Some examples of this would be Body Armour capable of reducing damage taken, or Adrenaline which improves your stamina recovery and move speed.
KeyValues
- Name (targetname) <string>
- The name that other entities refer to this entity by.
- Entity Scripts (vscripts) <string>
- Name(s) of script files that are executed after all entities have spawned.
- Script think function (thinkfunction) <string>
- Name of a function in this entity's script scope which will be called automatically.
- Pitch Yaw Roll (Y Z X) (angles) <angles>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Model (model) <model path>
- Sets a model for this item.
- Skin (skin) <integer>
- Sets the skin for the model you selected.
- Label (label) <string>
- Sets visible name for inventory, accepts localization strings.
- Inventory Icon (icon) <texture>
- Material name for VGUI inventory icon.
- Weight (weight) <integer>
- Item physical weight (in player's inventory).
- Is Highlighted? (highlight) <boolean>
- Highlight entry? (in player's inventory).
- Apply by Mouse Hover? (hoverselect) <boolean>
- Can this item be applied by hovering over its entry and closing the radial wheel? When 'No', user must click to apply.
Flags
- Disable Motion : [1]
- Disables the physics system from acting upon on this item.
- Remove on Apply : [2]
- Removes the custom item from the inventory on use.
Inputs
- Kill
- Kills the entity. Can cause issues if killed while in a player's inventory.
Outputs
- OnPlayerApply
- Fires when a player uses this item.
- OnPlayerDrop
- Fires when a player drops this item.
- OnPlayerPickup
- Fires when a player picks up this item.
- OnUser1 to OnUser4
- Fired in response to the FireUser inputs.