robotic_cradle

Vars | |
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. |
Procs | |
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 |
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