added a cryo to the ghost cafe

This commit is contained in:
Putnam
2019-12-29 21:28:09 -08:00
parent aa725a9608
commit a4c356ad57
2 changed files with 32 additions and 21 deletions
+9 -3
View File
@@ -177,6 +177,8 @@
// 15 minutes-ish safe period before being despawned.
var/time_till_despawn = 15 * 600 // This is reduced by 90% if a player manually enters cryo
var/despawn_world_time = null // Used to keep track of the safe period.
var/penalize_cryo = TRUE // Makes it so that players who cryo are not eligible for midround antags.
var/announce_cryo = TRUE // Makes it so when players cryo it's announced to the station
var/obj/machinery/computer/cryopod/control_computer
var/last_no_computer_message = 0
@@ -401,14 +403,14 @@
if(control_computer)
control_computer.frozen_crew += "[mob_occupant.real_name]"
if(GLOB.announcement_systems.len)
if(GLOB.announcement_systems.len && announce_cryo)
var/obj/machinery/announcement_system/announcer = pick(GLOB.announcement_systems)
announcer.announce("CRYOSTORAGE", mob_occupant.real_name, announce_rank, list())
visible_message("<span class='notice'>\The [src] hums and hisses as it moves [mob_occupant.real_name] into storage.</span>")
// Ghost and delete the mob.
if(!mob_occupant.get_ghost(1))
mob_occupant.ghostize(FALSE, penalize = TRUE)
mob_occupant.ghostize(FALSE, penalize = penalize_cryo)
QDEL_NULL(occupant)
open_machine()
@@ -491,4 +493,8 @@
//Attacks/effects.
/obj/machinery/cryopod/blob_act()
return //Sorta gamey, but we don't really want these to be destroyed.
return //Sorta gamey, but we don't really want these to be destroyed.
/obj/machinery/cryopod/ghost_cafe
penalize_cryo = FALSE
announce_cryo = FALSE