bayonet_attachable
Component which allows you to attach a bayonet to an item, be it a piece of clothing or a tool.
Vars | |
allow_sawnoff | If this component allows sawing off the parent gun/should be deleted when the parent gun is sawn off |
---|---|
bayonet | Currently attached bayonet |
bayonet_icon_state | If passed, we wil simply update our item's icon_state when a bayonet is attached. Formatted as parent_base_state-[bayonet_icon_state-state] |
bayonet_overlay | If passed, we will use a specific overlay instead of using the knife itself The state to take from the bayonet overlay icon if supplied. |
bayonet_overlay_icon | This is the icon file it grabs the overlay from. |
offset_x | Offsets for the bayonet overlay |
removable | Whenever we can remove the bayonet with a screwdriver |
valid_bayonets | Static typecache of all knives that can become bayonets |
Var Details
allow_sawnoff
If this component allows sawing off the parent gun/should be deleted when the parent gun is sawn off
bayonet
Currently attached bayonet
bayonet_icon_state
If passed, we wil simply update our item's icon_state when a bayonet is attached. Formatted as parent_base_state-[bayonet_icon_state-state]
bayonet_overlay
If passed, we will use a specific overlay instead of using the knife itself The state to take from the bayonet overlay icon if supplied.
bayonet_overlay_icon
This is the icon file it grabs the overlay from.
offset_x
Offsets for the bayonet overlay
removable
Whenever we can remove the bayonet with a screwdriver
valid_bayonets
Static typecache of all knives that can become bayonets