mech_limb

Vars | |
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 |
Procs | |
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 |
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:
- attached: mech we are attaching to
- slot: slot we are being attached to mostly relevant for r/l arm
detach
proc to call to remove this limb to the mech object Args:
- attached: mech we are attaching to
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