cryopod ![modular_bandastation/cryosleep/code/cryopod/cryopod.dm 13](git.png)
Vars | |
control_computer_weakref | Weakref to our controller |
---|---|
despawn_timer_id | Id of the occupant despawn timer. |
respect_minimum_client_disconnect_time | Whether the cryopod respects the minimum time someone has to be disconnected before they can be put into cryo by another player |
time_till_despawn | Time until despawn when a mob enters a cryopod. You cannot other people in pods unless they're catatonic. |
Procs | |
can_be_put_inside | Checks if the target can be put inside cryopod |
delete_despawn_timer | Deletes the occupant despawn timer, if it exists |
despawn_occupant | This function can not be undone; do not call this unless you are sure. Handles despawning the player. |
find_control_computer | Tries to find the control computer. Returns TRUE if it finds one or already has one, FALSE otherwise. |
handle_clientless_occupant | Starts despawn timer for clientless occupant and makes cryopod listen for mob login |
handle_occupant_items | Moves the occupant's items to the linked control computer or the drop location if there is no control computer Items that can not be dropped will stay in the mob's contents |
on_control_computed_qdeleting | Tries to find the control computer if linked computer was deleted |
on_control_computer_area_exited | Tries to find the control computer if somehow it left the area |
place_inside | Just call close_machine for the target after 10 seconds do_after, without any checks, except in do_after |
put_mob_inside | Handles putting mob inside the cryopod by user |
put_other_inside | Handles putting other mob inside the cryopod by target |
put_self_inside | Handles putting mob inside the cryopod by target itself |
validate_put_inside | Validates if the target can be put inside.
Returns null if the target can be put inside, otherwise returns error message |
validate_put_inside_and_alert_user | Checks if the target can be put inside cryopod and baloon alerts user if something is wrong |
Var Details
control_computer_weakref ![modular_bandastation/cryosleep/code/cryopod/cryopod.dm 35](git.png)
Weakref to our controller
despawn_timer_id ![modular_bandastation/cryosleep/code/cryopod/cryopod.dm 29](git.png)
Id of the occupant despawn timer.
respect_minimum_client_disconnect_time ![modular_bandastation/cryosleep/code/cryopod/cryopod.dm 27](git.png)
Whether the cryopod respects the minimum time someone has to be disconnected before they can be put into cryo by another player
time_till_despawn ![modular_bandastation/cryosleep/code/cryopod/cryopod.dm 31](git.png)
Time until despawn when a mob enters a cryopod. You cannot other people in pods unless they're catatonic.
Proc Details
can_be_put_inside
Checks if the target can be put inside cryopod
delete_despawn_timer
Deletes the occupant despawn timer, if it exists
despawn_occupant
This function can not be undone; do not call this unless you are sure. Handles despawning the player.
find_control_computer
Tries to find the control computer. Returns TRUE if it finds one or already has one, FALSE otherwise.
handle_clientless_occupant
Starts despawn timer for clientless occupant and makes cryopod listen for mob login
handle_occupant_items
Moves the occupant's items to the linked control computer or the drop location if there is no control computer Items that can not be dropped will stay in the mob's contents
on_control_computed_qdeleting
Tries to find the control computer if linked computer was deleted
on_control_computer_area_exited
Tries to find the control computer if somehow it left the area
place_inside
Just call close_machine for the target after 10 seconds do_after, without any checks, except in do_after
put_mob_inside
Handles putting mob inside the cryopod by user
put_other_inside
Handles putting other mob inside the cryopod by target
put_self_inside
Handles putting mob inside the cryopod by target itself
validate_put_inside
Validates if the target can be put inside.
Returns null
if the target can be put inside, otherwise returns error message
validate_put_inside_and_alert_user
Checks if the target can be put inside cryopod and baloon alerts user if something is wrong