byond - Modules - TypesVar Details - Proc Details

robotic_cradle

Vars

occupantThis var is the reference used for the patient
operation_timerThis var is so we can call deltimer() it if we need to abort the operation early
radioThis var is in reference to the radio the cradle uses to speak to the crew
repairingThis var is used to see if the machine is currently repairing or not.

Procs

handle_repair_operationCallback to start repair on someone entering the cradle
notify_about_ejectThis proc acts as a heads up to the doctors/engineers about the patient exiting the cradle for whatever reason. Takes CRADLE_NOTICE defines as arguments
perform_ejectFinishes ejecting the patient after the cradle is done. Takes CRADLE_NOTICE defines as arguments, used in notify_about_eject()
perform_repairThis proc handles the actual repair once the timer is up and ejects the healed robot.
place_mob_insideHandles any mob placing themselves or someone else into the cradle. target_mob is the mob being placed in, operating_mob is the person placing the mob in. Returns true if the mob got placed inside, false otherwise
remove_occupantForces the occupant out of the cradle, leaves it empty for someone else to enter.
start_emergency_ejectThis proc ejects whomever is inside the cradle while it is presumably operating. mob_ejecting is the mob triggering the eject
start_repair_operationStarts the repair operation of the cradle

Var Details

occupant

This var is the reference used for the patient

operation_timer

This var is so we can call deltimer() it if we need to abort the operation early

radio

This var is in reference to the radio the cradle uses to speak to the crew

repairing

This var is used to see if the machine is currently repairing or not.

Proc Details

handle_repair_operation

Callback to start repair on someone entering the cradle

notify_about_eject

This proc acts as a heads up to the doctors/engineers about the patient exiting the cradle for whatever reason. Takes CRADLE_NOTICE defines as arguments

perform_eject

Finishes ejecting the patient after the cradle is done. Takes CRADLE_NOTICE defines as arguments, used in notify_about_eject()

perform_repair

This proc handles the actual repair once the timer is up and ejects the healed robot.

place_mob_inside

Handles any mob placing themselves or someone else into the cradle. target_mob is the mob being placed in, operating_mob is the person placing the mob in. Returns true if the mob got placed inside, false otherwise

remove_occupant

Forces the occupant out of the cradle, leaves it empty for someone else to enter.

start_emergency_eject

This proc ejects whomever is inside the cradle while it is presumably operating. mob_ejecting is the mob triggering the eject

start_repair_operation

Starts the repair operation of the cradle