tac_reload_storage

Vars | |
reloading_storage | The storage item that we are attempting to use to tactical reload on. Use this over checking the item directly, for edge cases such as indirect storage (e.g: storage armor module). |
---|---|
Procs | |
do_tac_reload | Performs the tactical reload |
on_examine | Hook into the examine of the parent to show the player that they can tac reload from this |
on_parent_attackby_alternate | When attacked by a gun, will attempt to tactical reload it from our set reloading storage. Args: |
on_suit_attach | Called when parent (a storage armor module) is attached to any suit Sent by attachment_handler component. Args: source - The storage armor module that's being attached. new_shot - The clothing that the module is being attached to. attacher - The person attaching the armor module to the suit. |
on_suit_detach | Called when parent (a storage armor module) is detached from any suit Sent by attachment_handler component. Args: source - The storage armor module that's being detached. old_host - The clothing that the module is being detached from. attacher - The person detaching the armor module from the suit. |
Var Details
reloading_storage

The storage item that we are attempting to use to tactical reload on. Use this over checking the item directly, for edge cases such as indirect storage (e.g: storage armor module).
Proc Details
do_tac_reload
Performs the tactical reload
on_examine
Hook into the examine of the parent to show the player that they can tac reload from this
on_parent_attackby_alternate
When attacked by a gun, will attempt to tactical reload it from our set reloading storage. Args:
- source: The storage item source or armor suit. Use reloading_storage instead as it takes into account remote storage.
- reloading_gun: The gun item that's attacking parent, that we want to reload.
- user: The person attempting to reload the gun
- params: The params (distance, etc.)
on_suit_attach
Called when parent (a storage armor module) is attached to any suit Sent by attachment_handler component. Args: source - The storage armor module that's being attached. new_shot - The clothing that the module is being attached to. attacher - The person attaching the armor module to the suit.
on_suit_detach
Called when parent (a storage armor module) is detached from any suit Sent by attachment_handler component. Args: source - The storage armor module that's being detached. old_host - The clothing that the module is being detached from. attacher - The person detaching the armor module from the suit.