Files
CHOMPStation2/code/game/machinery/cryopod_vr.dm
2025-08-23 22:23:45 +02:00

78 lines
3.0 KiB
Plaintext

//Overrides!
/obj/machinery/cryopod
// The corresponding spawn point type that user despawning here will return at next round.
// Note: We use a type instead of name so that its validity is checked at compile time.
var/spawnpoint_type = /datum/spawnpoint/cryo
/obj/machinery/cryopod/robot
spawnpoint_type = /datum/spawnpoint/cyborg
// Used at centcomm for the elevator
/obj/machinery/cryopod/robot/door/dorms
spawnpoint_type = /datum/spawnpoint/tram
///Door specifically for a site in tether. Or other places that uses a 2x1 glass door.
/obj/machinery/cryopod/robot/door/dorms/tether_glass
name = "elevator"
desc = "A small elevator"
base_icon_state = "door_closed"
icon = 'icons/obj/doors/Door2x1glass.dmi'
icon_state = "door_closed"
on_enter_occupant_message = "The elevator doors close slowly. You can now head off for the residential, commercial, and other floors.";
on_store_message = "has departed for one of the various colony floors"
on_store_name = "Colony Oversight"
on_store_visible_message_2 = "to the colony districts."
time_till_despawn = 5
/obj/machinery/cryopod/robot/door/gateway
name = "public teleporter"
desc = "The short-range teleporter you might've came in from. You could leave easily using this."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "tele0"
base_icon_state = "tele0"
occupied_icon_state = "tele1"
on_store_message = "has departed via short-range teleport."
on_enter_occupant_message = "The teleporter activates, and you step into the swirling portal."
spawnpoint_type = /datum/spawnpoint/gateway
/obj/machinery/computer/cryopod/gateway
name = "teleport oversight console"
desc = "An interface between visitors and the teleport oversight systems tasked with keeping track of all visitors who enter or exit from the teleporters."
/* VOREStation Edit
/obj/machinery/cryopod/robot/door/dorms
desc = "A small elevator that goes down to the residential district."
on_enter_occupant_message = "The elevator door closes slowly, ready to bring you down to the residential district."
spawnpoint_type = /datum/spawnpoint/elevator
/obj/machinery/computer/cryopod/dorms
name = "residential oversight console"
desc = "An interface between visitors and the residential oversight systems tasked with keeping track of all visitors in the residential district."
*/
/obj/machinery/cryopod/proc/log_special_item(var/atom/movable/item,var/mob/to_despawn)
ASSERT(item && to_despawn)
var/loaded_from_key
var/char_name = to_despawn.name
var/item_name = item.name
// Best effort key aquisition
if(ishuman(to_despawn))
var/mob/living/carbon/human/H = to_despawn
if(H.original_player)
loaded_from_key = H.original_player
if(!loaded_from_key && to_despawn.mind && to_despawn.mind.loaded_from_ckey)
loaded_from_key = to_despawn.mind.loaded_from_ckey
else
loaded_from_key = "INVALID"
// Log to harrass them later
log_game("CRYO [loaded_from_key]/([to_despawn.name]) cryo'd with [item_name] ([item.type])")
qdel(item)
if(control_computer && control_computer.allow_items)
control_computer.frozen_items += "[item_name] ([char_name])"