/tg/ Station 13 - Modules - TypesVar Details - Proc Details

life_link

A mob with this component passes all damage (and healing) it takes to another mob, passed as a parameter Essentially we use another mob's health bar as our health bar

Vars

hostMob we pass all of our damage to
on_linked_deathOptional callback invoked when the linked mob dies
on_passed_damageOptional callback invoked when damage gets transferred

Procs

on_damage_adjustedCalled when your damage goes up or down
on_health_updatedCalled when either the host or parent's health tries to update, update our displayed health
on_host_deletedCalled when
on_host_diedCalled when our host dies, we should die too
on_host_revivedCalled when our host undies, we should undie too
on_limb_damageCalled when someone hurts one of our limbs, bypassing normal damage adjustment
on_status_tab_updatedWhen our status tab updates, draw how much HP our host has in there
register_hostSet someone up as our new host
unregister_hostDrop someone from being our host
update_health_hudUpdate our parent's health display based on how harmed our host is
update_med_hud_healthUpdate our health on the medical hud
update_med_hud_statusUpdate our vital status on the medical hud

Var Details

host

Mob we pass all of our damage to

on_linked_death

Optional callback invoked when the linked mob dies

on_passed_damage

Optional callback invoked when damage gets transferred

Proc Details

on_damage_adjusted

Called when your damage goes up or down

on_health_updated

Called when either the host or parent's health tries to update, update our displayed health

on_host_deleted

Called when

on_host_died

Called when our host dies, we should die too

on_host_revived

Called when our host undies, we should undie too

on_limb_damage

Called when someone hurts one of our limbs, bypassing normal damage adjustment

on_status_tab_updated

When our status tab updates, draw how much HP our host has in there

register_host

Set someone up as our new host

unregister_host

Drop someone from being our host

update_health_hud

Update our parent's health display based on how harmed our host is

update_med_hud_health

Update our health on the medical hud

update_med_hud_status

Update our vital status on the medical hud