Shiptest 13 - Modules - TypesVar Details - Proc Details

mecha

Vars

capacitorKeeps track of the mech's scanning module
construction_stateKeeps track of the mech's capacitor
scanmodKeeps track of the mech's cell

Procs

GrantActionsAction Buttons
TopicTopic
add_airtankUpdates the values given by scanning module and capacitor tier, called when a part is removed or inserted.
add_capacitorAdds a capacitor, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.
add_cellAdds a cell, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.
add_scanmodAdds a scanning module, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.
ammo_resupplyAmmo stuff
attack_aiAI piloting
check_for_internal_damageInternal damage
click_actionAction processing
examinesilicon_pilot implied
get_actionsReturns HTML for mech actions. Ideally, this proc would be empty for the base mecha. Segmented for easy refactoring.
get_commandsHTML for commands.
get_equipment_listHTML for list of equipment.
get_stats_htmlRendering stats window
get_stats_partReturns the status of the mech.
has_chargePower stuff
occupant_messageMessages and Log
operation_allowedAccess stuff
play_stepsound///// Movement procs ////////
remove_airAtmospheric stuff
report_internal_damageHTML for internal damage.
stationary_repairRepairs internal damage if the mech hasn't moved.

Var Details

capacitor

Keeps track of the mech's scanning module

construction_state

Keeps track of the mech's capacitor

scanmod

Keeps track of the mech's cell

Proc Details

GrantActions

Action Buttons

Topic

Topic

add_airtank

Updates the values given by scanning module and capacitor tier, called when a part is removed or inserted.

/// Helpers /////////

add_capacitor

Adds a capacitor, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.

add_cell

Adds a cell, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.

add_scanmod

Adds a scanning module, for use in Map-spawned mechs, Nuke Ops mechs, and admin-spawned mechs. Mechs built by hand will replace this.

ammo_resupply

Ammo stuff

attack_ai

AI piloting

check_for_internal_damage

Internal damage

click_action

Action processing

examine

silicon_pilot implied

get_actions

Returns HTML for mech actions. Ideally, this proc would be empty for the base mecha. Segmented for easy refactoring.

get_commands

HTML for commands.

get_equipment_list

HTML for list of equipment.

get_stats_html

Rendering stats window

get_stats_part

Returns the status of the mech.

has_charge

Power stuff

occupant_message

Messages and Log

operation_allowed

Access stuff

play_stepsound

///// Movement procs ////////

Plays the mech step sound effect. Split from movement procs so that other mechs (HONK) can override this one specific part.

remove_air

Atmospheric stuff

report_internal_damage

HTML for internal damage.

stationary_repair

Repairs internal damage if the mech hasn't moved.