byond - Modules - TypesVar Details - Proc Details

mecha_equipment

Mecha Equipment All mech equippables are currently childs of this

Vars

activatedused for equipment that can be turned on/off, boolean
chassisReference to mecha that this equipment is currently attached to
cooldown_keythe key will will use for weapon cooldowns, usually the type, but can be a string
destroy_soundSound file: Sound to play when this equipment is destroyed while still attached to the mech
detachableboolean: FALSE if this equipment can not be removed/salvaged
energy_drainChassis power cell quantity used on activation
equip_cooldownCooldown in ticks required between activations of the equipment
equipment_slotDetermines what "slot" this attachment will try to attach to on a mech
harmfulBoolean: whether a pacifist can use this equipment
mech_flagsBitflag. Used by exosuit fabricator to assign sub-categories based on which exosuits can equip this.
rangeBitflag. Determines the range of the equipment.
weightThe weight that we contribute to the max limit, if this is equipped to a greyscale mech

Procs

action_checksChecks whether this mecha equipment can be activated Returns a bool Arguments:
attachtgmc start tgmc end
attempt_rearmTries to rearm the module
detachcalled to detach this equipment Args:
do_after_checksdo after checks for the mecha equipment do afters
do_after_cooldownCooldown proc variant for using do_afters between activations instead of timers Example of usage is mech drills, rcds arguments:
do_after_mechaDo after wrapper for mecha equipment
get_snowflake_data
log_messageLogging for equipment installed in a mecha
needs_rearmChecks if the module actually need rearming
rearmRearms the module

Var Details

activated

used for equipment that can be turned on/off, boolean

chassis

Reference to mecha that this equipment is currently attached to

cooldown_key

the key will will use for weapon cooldowns, usually the type, but can be a string

destroy_sound

Sound file: Sound to play when this equipment is destroyed while still attached to the mech

detachable

boolean: FALSE if this equipment can not be removed/salvaged

energy_drain

Chassis power cell quantity used on activation

equip_cooldown

Cooldown in ticks required between activations of the equipment

equipment_slot

Determines what "slot" this attachment will try to attach to on a mech

harmful

Boolean: whether a pacifist can use this equipment

mech_flags

Bitflag. Used by exosuit fabricator to assign sub-categories based on which exosuits can equip this.

range

Bitflag. Determines the range of the equipment.

weight

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

Proc Details

action_checks

Checks whether this mecha equipment can be activated Returns a bool Arguments:

attach

tgmc start tgmc end

attempt_rearm

Tries to rearm the module

detach

called to detach this equipment Args:

do_after_checks

do after checks for the mecha equipment do afters

do_after_cooldown

Cooldown proc variant for using do_afters between activations instead of timers Example of usage is mech drills, rcds arguments:

do_after_mecha

Do after wrapper for mecha equipment

get_snowflake_data

get_snowflake_data

handles the returning of snowflake data required by the UI of the mecha not the prettiest of procs honeslty returns:

log_message

Logging for equipment installed in a mecha

needs_rearm

Checks if the module actually need rearming

rearm

Rearms the module