Space Station 13 - Modules - TypesVar Details - Proc Details

defib

Vars

actual_unit_uiduid to an item that should be making noise and handling things that our direct parent shouldn't be concerned with.
busyIf the defib is actively performing a defib cycle
charge_soundSound for defib windup.
combatIf it should penetrate space suits
cooldownCooldown length for this defib in deciseconds
emag_proofIf true, this cannot be emagged.
emp_proofIf true, EMPs will have no effect.
fail_soundSound when the defib fails.
heart_attack_chanceIf combat is true, this determines whether or not it should always cause a heart attack.
on_cooldownWhether or not we're currently on cooldown
roboticIf this is being used by a borg or not, with necessary safeties applied if so.
safetyWhether the safeties are enabled or not
safety_off_soundSound when the defib's safety is disabled.
safety_on_soundSound when the defib's safety is enabled.
speed_multiplierHow fast the defib should work.
success_soundSound when the defib is successful.
zap_soundSound when the defib shocks the patient.

Procs

InitializeCreate a new defibrillation component.
defibrillatePerform a defibrillation.
fibrillateInflict stamina loss (and possibly inflict cardiac arrest) on someone.
get_effect_targetGet the "parent" that effects (emags, EMPs) should be applied onto.
trigger_defibStart the defibrillation process when triggered by a signal.

Var Details

actual_unit_uid

uid to an item that should be making noise and handling things that our direct parent shouldn't be concerned with.

busy

If the defib is actively performing a defib cycle

charge_sound

Sound for defib windup.

combat

If it should penetrate space suits

cooldown

Cooldown length for this defib in deciseconds

emag_proof

If true, this cannot be emagged.

emp_proof

If true, EMPs will have no effect.

fail_sound

Sound when the defib fails.

heart_attack_chance

If combat is true, this determines whether or not it should always cause a heart attack.

on_cooldown

Whether or not we're currently on cooldown

robotic

If this is being used by a borg or not, with necessary safeties applied if so.

safety

Whether the safeties are enabled or not

safety_off_sound

Sound when the defib's safety is disabled.

safety_on_sound

Sound when the defib's safety is enabled.

speed_multiplier

How fast the defib should work.

success_sound

Sound when the defib is successful.

zap_sound

Sound when the defib shocks the patient.

Proc Details

Initialize

Create a new defibrillation component.

Arguments:

defibrillate

Perform a defibrillation.

fibrillate

Inflict stamina loss (and possibly inflict cardiac arrest) on someone.

Arguments:

get_effect_target

Get the "parent" that effects (emags, EMPs) should be applied onto.

trigger_defib

Start the defibrillation process when triggered by a signal.