suit_autodoc

Autodoc component
The autodoc is an item component that can be eqiupped to inject the wearer with chemicals.
Parameters
- chem_cooldown {time} default time between injections of chemicals
- list/burn_chems {list/datum/reagent/medicine} chemicals available to be injected to treat burn injuries
- list/oxy_chems {list/datum/reagent/medicine} chemicals available to be injected to treat oxygen injuries
- list/brute_chems {list/datum/reagent/medicine} chemicals available to be injected to treat brute injuries
- list/tox_chems {list/datum/reagent/medicine} chemicals available to be injected to treat toxin injuries
- list/pain_chems {list/datum/reagent/medicine} chemicals available to be injected to treat pain injuries
- overdose_threshold_mod {float} how close to overdosing will drugs inject to
Procs | |
Destroy | Cleans up any actions, and internal items used by the autodoc component |
---|---|
Initialize | Setup the default cooldown, chemicals and supported limbs |
RegisterWithParent | Registers signals to enable/disable the autodoc when equipped/dropper/etc |
Topic | Handles the topic interactions with the suit when updating configurations |
UnregisterFromParent | Remove signals |
action_toggle | Toggle the suit |
can_interact | If the user is able to interact with the suit |
configure | Proc to show the suit configuration page |
damage_taken | Proc for the damange taken signal, calls treat_injuries |
disable | Disables to stop processing and calls to the signals from the user. |
dropped | Disables the autodoc and removes actions when dropped |
enable | Enable processing and calls out to register signals from the user. |
equipped | Enable the autodoc and give appropriate actions |
examine | Hook into the examine of the parent to show additional information about the suit_autodoc |
give_actions | Add the actions to the user |
inject_chems | Handles actually injecting specific checmicals for specific damage types. |
interact | Shows the suit configuration |
nextuse_ready | Plays a sound and message to the user informing the user chemicals are ready again |
process | Process proc called periodically, calls treat_injuries |
remove_actions | Remove the actions from the user |
scan_user | Proc to handle the internal analyzer scanning the user |
treat_injuries | Trys to inject each chmical into the user. |
Proc Details
Destroy
Cleans up any actions, and internal items used by the autodoc component
Initialize
Setup the default cooldown, chemicals and supported limbs
RegisterWithParent
Registers signals to enable/disable the autodoc when equipped/dropper/etc
Topic
Handles the topic interactions with the suit when updating configurations
UnregisterFromParent
Remove signals
action_toggle
Toggle the suit
This will enable or disable the suit
can_interact
If the user is able to interact with the suit
Always TRUE
configure
Proc to show the suit configuration page
damage_taken
Proc for the damange taken signal, calls treat_injuries
disable
Disables to stop processing and calls to the signals from the user.
Additionally removes limb support if applicable
dropped
Disables the autodoc and removes actions when dropped
enable
Enable processing and calls out to register signals from the user.
Additionally adds limb support if applicable
equipped
Enable the autodoc and give appropriate actions
examine
Hook into the examine of the parent to show additional information about the suit_autodoc
give_actions
Add the actions to the user
Actions include
- Enable and disable the suit
- Manually do a health scan
- Open suit settings
inject_chems
Handles actually injecting specific checmicals for specific damage types.
This proc checks the damage is over the appropraite threshold, the cooldowns and if succesful injects chemicals into the user and sets the cooldown again
interact
Shows the suit configuration
nextuse_ready
Plays a sound and message to the user informing the user chemicals are ready again
process
Process proc called periodically, calls treat_injuries
remove_actions
Remove the actions from the user
Actions include
- Enable and disable the suit
- Manually do a health scan
- Open suit settings
scan_user
Proc to handle the internal analyzer scanning the user
treat_injuries
Trys to inject each chmical into the user.
Calls each proc and then reports the results if any to the user. additionally trys to support any limbs if required