byond - Modules - TypesProc Details

suit_autodoc

Autodoc component

The autodoc is an item component that can be eqiupped to inject the wearer with chemicals.

Parameters

Procs

DestroyCleans up any actions, and internal items used by the autodoc component
InitializeSetup the default cooldown, chemicals and supported limbs
RegisterWithParentRegisters signals to enable/disable the autodoc when equipped/dropper/etc
TopicHandles the topic interactions with the suit when updating configurations
UnregisterFromParentRemove signals
action_toggleToggle the suit
can_interactIf the user is able to interact with the suit
configureProc to show the suit configuration page
damage_takenProc for the damange taken signal, calls treat_injuries
disableDisables to stop processing and calls to the signals from the user.
droppedDisables the autodoc and removes actions when dropped
enableEnable processing and calls out to register signals from the user.
equippedEnable the autodoc and give appropriate actions
examineHook into the examine of the parent to show additional information about the suit_autodoc
give_actionsAdd the actions to the user
inject_chemsHandles actually injecting specific checmicals for specific damage types.
interactShows the suit configuration
nextuse_readyPlays a sound and message to the user informing the user chemicals are ready again
processProcess proc called periodically, calls treat_injuries
remove_actionsRemove the actions from the user
scan_userProc to handle the internal analyzer scanning the user
treat_injuriesTrys 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

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

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