byond - Modules - TypesVar Details - Proc Details

mech_limb

Vars

colors2 or 3 entry list of primary, secondary, visor color to use
def_zonesfor part_health, if the targetted zone is in this list will make this limb take damage
disabledwhether this has taken full damage and become disabled
display_nameThe name for this limb to display when examined
greyscale_typetypepath for greyscale icon generation
has_boosting_statewhether the greyscale config supports boosting sprites
has_damage_overlayswhether the icon file for the greyscale config ALSO includes some damage overlays
has_destroyed_iconstatewhether the greyscale config supports destroyed sprites
health_modwhen attached the mechs health is modified by this amount
icon_stateicon state name for the part we are using
overlay_iconoverlay icon to generate
ownerReference to the mech we are attached too. Remember, this will clean us up ind estroy already
part_healthIf set, instead of relaying damage to the owning mech will instead relay damage to this limb and will call [/proc/on_disable]
slowdown_modwhen attached the mechs slowdown is modified by this amount
soft_armor_modwhen attached the mechs armor is modified by this amount
weightThe weight that we contribute to the max limit, if this is equipped to a greyscale mech

Procs

attachproc to call to add this limb to the mech object Args:
detachproc to call to remove this limb to the mech object Args:
disablemakes this limb "destroyed"
do_repairsdoes the actual repair of this limb
get_overlaysReturns an overlay or list of overlays to use on the mech
intercept_damageintercepts damage intended for the mech and applies it to this limb when needed
intercept_repairintercepts repair intended for the mech and applies it to this limb when needed
reenablemakes this limb un-"destroyed"
take_damagehandles actually dealing damage to the mech

Var Details

colors

2 or 3 entry list of primary, secondary, visor color to use

def_zones

for part_health, if the targetted zone is in this list will make this limb take damage

disabled

whether this has taken full damage and become disabled

display_name

The name for this limb to display when examined

greyscale_type

typepath for greyscale icon generation

has_boosting_state

whether the greyscale config supports boosting sprites

has_damage_overlays

whether the icon file for the greyscale config ALSO includes some damage overlays

has_destroyed_iconstate

whether the greyscale config supports destroyed sprites

health_mod

when attached the mechs health is modified by this amount

icon_state

icon state name for the part we are using

overlay_icon

overlay icon to generate

owner

Reference to the mech we are attached too. Remember, this will clean us up ind estroy already

part_health

If set, instead of relaying damage to the owning mech will instead relay damage to this limb and will call [/proc/on_disable]

slowdown_mod

when attached the mechs slowdown is modified by this amount

soft_armor_mod

when attached the mechs armor is modified by this amount

weight

The weight that we contribute to the max limit, if this is equipped to a greyscale mech

Proc Details

attach

proc to call to add this limb to the mech object Args:

detach

proc to call to remove this limb to the mech object Args:

disable

makes this limb "destroyed"

do_repairs

does the actual repair of this limb

get_overlays

Returns an overlay or list of overlays to use on the mech

intercept_damage

intercepts damage intended for the mech and applies it to this limb when needed

intercept_repair

intercepts repair intended for the mech and applies it to this limb when needed

reenable

makes this limb un-"destroyed"

take_damage

handles actually dealing damage to the mech