added a cryo to the ghost cafe
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user