/mob/dead/observer/verb/ghost() set category = "OOC" set name = "Ghost" reenter_corpse() /mob/dead/observer/verb/reenter_corpse() set category = "Ghost" set name = "Re-enter Corpse" var/mob/M = get_top_transmogrification() if(check_rights(R_ADMIN)) // admins can_reenter_corpse = 1 //just in-case. if(!M.client) return if(!(mind && mind.current && can_reenter_corpse)) to_chat(src, "You have no body.") return if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients return if(mind.current.ajourn && istype(mind.current.ajourn,/obj/effect/rune_legacy) && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune). var/obj/effect/rune_legacy/R = mind.current.ajourn //whilst corpse is alive, we can only reenter the body if it's on the rune var/datum/faction/cult/narsie/blood_cult = find_active_faction_by_member(mind.GetRole(LEGACY_CULTIST)) var/list/cultwords if (istype(blood_cult)) cultwords = blood_cult.cult_words else cultwords = null if(cultwords && !(R && R.word1 == cultwords["hell"] && R.word2 == cultwords["travel"] && R.word3 == cultwords["self"])) //astral journeying rune to_chat(usr, "The astral cord that ties your body and your spirit has been severed. You are likely to wander the realm beyond until your body is finally dead and thus reunited with you.") return completely_untransmogrify() mind.current.key = key mind.isScrying = 0 return 1 /mob/dead/observer/verb/toggle_medHUD() set category = "Ghost" set name = "Toggle MedicHUD" set desc = "Toggles Medical HUD allowing you to see how everyone is doing" if(!client) return if(selectedHUD == HUD_MEDICAL) selectedHUD = HUD_NONE to_chat(src, "Medical HUD disabled.") else selectedHUD = HUD_MEDICAL to_chat(src, "Medical HUD enabled.") /mob/dead/observer/verb/toggle_secHUD() set category = "Ghost" set name = "Toggle SecHUD" if(!client) return if(selectedHUD == HUD_SECURITY) selectedHUD = HUD_NONE to_chat(src, "Security HUD disabled.") else selectedHUD = HUD_SECURITY to_chat(src, "Security HUD enabled.") /mob/dead/observer/verb/toggle_diagHUD() set category = "Ghost" set name = "Toggle diagnostic HUD" if(!client) return diagHUD = !diagHUD to_chat(src, "Diagnostic HUD [diagHUD ? "enabled" : "disabled"].") /mob/dead/observer/verb/toggle_antagHUD() set category = "Ghost" set name = "Toggle AntagHUD" set desc = "Toggles AntagHUD allowing you to see who is the antagonist" if(!config.antag_hud_allowed && !client.holder) to_chat(src, "Admins have disabled this for this round.") return if(!client) return var/mob/dead/observer/M = src if(jobban_isbanned(M, "AntagHUD")) to_chat(src, "You have been banned from using this feature.") return if(config.antag_hud_restricted && !M.has_enabled_antagHUD &&!client.holder) var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No") if(response == "No") return M.can_reenter_corpse = 0 if(!M.has_enabled_antagHUD && !client.holder) M.has_enabled_antagHUD = 1 if(M.antagHUD) M.antagHUD = 0 to_chat(src, "AntagHUD Disabled") else M.antagHUD = 1 to_chat(src, "AntagHUD Enabled") /mob/dead/observer/verb/toggle_pathogenHUD() set category = "Ghost" set name = "Toggle PathogenHUD" set desc = "Toggles Pathogen HUD allowing you to see airborne pathogenic clouds, and infected items and splatters" if(!client) return if(pathogenHUD) pathogenHUD = FALSE to_chat(src, "Pathogen HUD disabled.") science_goggles_wearers.Remove(src) if (client) for (var/obj/item/I in infected_items) client.images -= I.pathogen for (var/mob/living/L in infected_contact_mobs) client.images -= L.pathogen for (var/obj/effect/pathogen_cloud/C in pathogen_clouds) client.images -= C.pathogen for (var/obj/effect/decal/cleanable/C in infected_cleanables) client.images -= C.pathogen else pathogenHUD = TRUE to_chat(src, "Pathogen HUD enabled.") science_goggles_wearers.Add(src) if (client) for (var/obj/item/I in infected_items) if (I.pathogen) client.images |= I.pathogen for (var/mob/living/L in infected_contact_mobs) if (L.pathogen) client.images |= L.pathogen for (var/obj/effect/pathogen_cloud/C in pathogen_clouds) if (C.pathogen) client.images |= C.pathogen for (var/obj/effect/decal/cleanable/C in infected_cleanables) if (C.pathogen) client.images |= C.pathogen /mob/dead/observer/verb/become_mouse() set name = "Become mouse" set category = "Ghost" if(!config.respawn_as_mouse) to_chat(src, "Respawning as mouse is disabled.") return var/timedifference = world.time - client.time_died_as_mouse if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600) var/timedifference_text timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss") to_chat(src, "You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.") return if(!world.has_round_started()) to_chat(src, "The game has not started yet.") return var/response = alert(src, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?","Squeek!","Nope!") if(response != "Squeek!") return //Hit the wrong key...again. //find a viable mouse candidate var/mob/living/simple_animal/mouse/common/host var/obj/machinery/atmospherics/unary/vent_pump/vent_found var/list/found_vents = list() for(var/obj/machinery/atmospherics/unary/vent_pump/v in atmos_machines) if(!v.welded && v.z == src.z && v.canSpawnMice==1) // No more spawning in atmos. Assuming the mappers did their jobs, anyway. found_vents.Add(v) if(found_vents.len) vent_found = pick(found_vents) host = new /mob/living/simple_animal/mouse/common(vent_found.loc) else to_chat(src, "Unable to find any unwelded vents to spawn mice at.") if(host) if(config.uneducated_mice) host.universal_understand = 0 host.ckey = src.ckey log_admin("([host.ckey]/[host]) became a mouse as a ghost.") to_chat(host, "You are now a mouse. Try to avoid interaction with players, and do not give hints away that you are more than a simple rodent.") /mob/dead/observer/verb/hide_sprite() set name = "Hide Sprite" set category = "Ghost" if(alpha == 127) alpha = 0 mouse_opacity = 0 to_chat(src, "Sprite hidden.") else alpha = 127 mouse_opacity = 1 to_chat(src, "Sprite shown.") /mob/dead/observer/verb/follow() set category = "Ghost" set name = "Haunt" //Flavor name for following mobs set desc = "Haunt a mob, stalking them everywhere they go." var/list/mobs = getmobs() var/input = input("Please, select a mob!", "Haunt", null, null) as null|anything in mobs if(!input) return var/mob/target = mobs[input] manual_follow(target) /mob/dead/observer/verb/end_follow() set category = "Ghost" set name = "Stop Haunting" set desc = "Stop haunting a mob. They weren't worth your eternal time anyways." if(locked_to) manual_stop_follow(locked_to) /mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak set category = "Ghost" set name = "Jump to Mob" set desc = "Teleport to a mob" if(istype(usr, /mob/dead/observer)) //Make sure they're an observer! var/list/dest = list() //List of possible destinations (mobs) var/target = null //Chosen target. dest += getmobs() //Fill list, prompt user with list target = input("Please, select a player!", "Jump to Mob", null, null) as null|anything in dest if (!target)//Make sure we actually have a target return else var/turf/targetloc = get_turf(target) var/area/targetarea = get_area(target) if(targetarea && targetarea.anti_ethereal && !isAdminGhost(usr)) to_chat(usr, "You can sense a sinister force surrounding that mob, your spooky body itself refuses to jump to it.") return if(targetloc && targetloc.holy && ((src.invisibility == 0) || islegacycultist(src))) to_chat(usr, "The mob that you are trying to follow is standing on holy grounds, you cannot reach him!") return var/mob/M = dest[target] //Destination mob var/mob/A = src //Source mob var/turf/T = get_turf(M) //Turf of the destination mob if(T && isturf(T)) //Make sure the turf exists, then move the source to that destination. A.forceMove(T) if(locked_to) manual_stop_follow(locked_to) else to_chat(A, "This mob is not located in the game world.") /mob/dead/observer/verb/toggle_darkness() set name = "Toggle Darkness" set category = "Ghost" switch(dark_plane.alphas["toggle_darkness"]) if(255) dark_plane.alphas["toggle_darkness"] = 180 if(180) dark_plane.alphas -= "toggle_darkness" else dark_plane.alphas["toggle_darkness"] = 255 check_dark_vision() /mob/dead/observer/verb/analyze_air() set name = "Analyze Air" set category = "Ghost" if(!istype(usr, /mob/dead/observer)) return // Shamelessly copied from the Gas Analyzers if (!( istype(usr.loc, /turf) )) return var/datum/gas_mixture/environment = usr.loc.return_air() var/pressure = environment.return_pressure() var/total_moles = environment.total_moles() var/tiles = environment.return_volume() / CELL_VOLUME to_chat(src, "Results:") if(abs(pressure - ONE_ATMOSPHERE) < 10) to_chat(src, "Pressure: [round(pressure, 0.01)] kPa") else to_chat(src, "Pressure: [round(pressure, 0.01)] kPa") if(total_moles) for(var/g in environment.gas) var/datum/gas/gas = XGM.gases[g] var/is_safe = gas.is_human_safe(environment[g], environment) to_chat(src, "[XGM.name[g]]: [round(environment[g] / total_moles * 100)]% ([round(environment.molar_density(g) * CELL_VOLUME, 0.01)] moles)") to_chat(src, "Temperature: [round(environment.temperature - T0C, 0.01)]°C") to_chat(src, "Heat Capacity: [round(environment.heat_capacity() / tiles, 0.01)]") /mob/dead/observer/verb/view_manfiest() set name = "View Crew Manifest" set category = "Ghost" var/dat dat += "

Crew Manifest

" dat += data_core.get_manifest(OOC = 1) src << browse(dat, "window=manifest;size=370x420;can_close=1") //Used for drawing on walls with blood puddles as a spooky ghost. /mob/dead/verb/bloody_doodle() set category = "Ghost" set name = "Write in blood" set desc = "If the round is sufficiently spooky, write a short message in blood on the floor or a wall. Remember, no IC in OOC or OOC in IC." //Some basic checks first if(!(config.cult_ghostwriter)) to_chat(src, "That verb is not currently permitted.") return var/ghosts_can_write = FALSE //legacy cult var/datum/faction/cult/narsie/C = find_active_faction_by_type(/datum/faction/cult/narsie) if(C && C.members.len > config.cult_ghostwriter_req_cultists) ghosts_can_write = TRUE //TODO (UPHEAVAL PART 2): Allow ghosts_can_write during Eclipse //if (veil_thickness >= CULT_ACT_III) // ghosts_can_write = TRUE if (invisibility == 0) ghosts_can_write = TRUE if(!ghosts_can_write) to_chat(src, "The veil is not thin enough for you to do that.") return var/turf/T = get_turf(src) if (!isfloor(T)) to_chat(src, "You can only doodle over floors.") return for (var/obj/effect/decal/cleanable/blood/writing/W in T) to_chat(src, "This floor is already filled with writings.") return //Ok the place is clear, now we need some blood var/list/choices = list() var/i = 1 var/writings_blood_amount = 0 var/turf/original_bloodsource for(var/obj/effect/decal/cleanable/blood/B in range(1,T)) if(B.counts_as_blood) if (istype(B,/obj/effect/decal/cleanable/blood/writing))//this prevents ghosts from making an infinite chain of messages var/obj/effect/decal/cleanable/blood/writing/writings = B if (writings.original_bloodsource && max(0,round(cheap_pythag(T.x - writings.original_bloodsource.x, T.y - writings.original_bloodsource.y))) <= writings.original_amount) writings_blood_amount = writings.original_amount original_bloodsource = writings.original_bloodsource choices["[i] - [B] (color = [B.basecolor])"] = B else if (istype(B,/obj/effect/decal/cleanable/blood/tracks)) var/obj/effect/decal/cleanable/blood/tracks/tracks = B choices["[i] - [B] (color = [tracks.last_blood_color])"] = B original_bloodsource = get_turf(B) else choices["[i] - [B] (color = [B.basecolor])"] = B writings_blood_amount = B.amount original_bloodsource = get_turf(B) i++ if(!choices.len) to_chat(src, "There is no blood to use nearby.") return var/choice = input(src,"What blood would you like to use?") in null|choices if(!choice || !Adjacent(T)) return var/obj/effect/decal/cleanable/blood/blood_source = choices[choice] if(!blood_source) return var/doodle_color = (blood_source.basecolor) ? blood_source.basecolor : DEFAULT_BLOOD if (istype(blood_source,/obj/effect/decal/cleanable/blood/tracks)) var/obj/effect/decal/cleanable/blood/tracks/tracks = blood_source doodle_color = tracks.last_blood_color //Blood found, now to write a message var/max_length = 30 var/message = stripped_input(src,"Write a message. You will be able to preview it.","Bloody writings", "") if (!message) return message = copytext(message, 1, max_length) var/letter_amount = length(replacetext(message, " ", "")) if(!letter_amount) //If there is no text return //Previewing our message var/image/I = image(icon = null) I.maptext = {"[message]"} I.maptext_height = 32 I.maptext_width = 64 I.maptext_x = -16 I.maptext_y = -2 I.loc = T I.alpha = 180 client.images.Add(I) var/continue_drawing = alert(src, "This is how your message will look. Continue?", "Bloody writings", "Yes", "Cancel") client.images.Remove(I) animate(I) //Cancel the animation so that the image gets garbage collected I.loc = null qdel(I) if(continue_drawing != "Yes" || !Adjacent(T)) return if(blood_source.gcDestroyed) to_chat(src, "The blood source you selected has been removed before you had time to finish your message.") return //Finally writing our message var/obj/effect/decal/cleanable/blood/writing/W = new /obj/effect/decal/cleanable/blood/writing(T) W.basecolor = doodle_color W.maptext = {"[message]"} W.add_hiddenprint(src) W.original_amount = writings_blood_amount W.original_bloodsource = original_bloodsource W.visible_message("Invisible fingers crudely paint something in blood on \the [T]...") if(istype(blood_source.blood_DNA,/list)) W.blood_DNA |= blood_source.blood_DNA.Copy() /mob/dead/observer/verb/hide_ghosts() set name = "Hide Ghosts" set category = "Ghost" if(!client.ghost_planemaster) to_chat(src, "You have no ghost planemaster. Make a bug report!") return if(client.ghost_planemaster.alpha == 255) client.ghost_planemaster.alpha = 0 client.ghost_planemaster.mouse_opacity = 0 to_chat(src, "Ghosts hidden.") else client.ghost_planemaster.alpha = 255 client.ghost_planemaster.mouse_opacity = 1 to_chat(src, "Ghosts shown.") /mob/dead/observer/verb/toggle_station_map() set name = "Toggle Station Holomap" set desc = "Toggle station holomap on your screen" set category = "Ghost" if(!station_holomap) station_holomap = new(src) station_holomap.toggleHolomap(src, FALSE) // We don't need client.eye. /mob/dead/observer/verb/find_arena() set category = "Ghost" set name = "Find Arenas" set desc = "Try to find an Arena to polish your robust bomb placement skills.." if(!arenas.len) to_chat(usr, "There are no arenas in the world! Ask the admins to spawn one.") return var/datum/bomberman_arena/arena_target = input("Which arena do you wish to reach?", "Arena Search Panel") in arenas to_chat(usr, "Reached [arena_target]") usr.forceMove(arena_target.center) to_chat(usr, "Remember to enable darkness to be able to see the spawns. Click on a green spawn between rounds to register on it.") /mob/dead/observer/verb/modify_movespeed() set name = "Change Speed" set category = "Ghost" var/speed = input(usr,"What speed would you like to move at?","Observer Move Speed") in list("100%","125%","150%","175%","200%","FUCKING HYPERSPEED") if(speed == "FUCKING HYPERSPEED") //April fools client.move_delayer.min_delay = 0 movespeed = 0 return speed = text2num(copytext(speed,1,4))/100 movespeed = 1/speed /mob/dead/observer/verb/request_bomberman() set name = "Request a bomberman arena" set category = "Ghost" set desc = "Create a bomberman arena for other observers and dead players." if (ticker && ticker.current_state < GAME_STATE_PLAYING) to_chat(src, "You can't use this verb before the game has started.") return if (arenas.len) to_chat(src, "There are already bomberman arenas! Use the Find Arenas verb to jump to them.") return to_chat(src, "Pooling other ghosts for a bomberman arena...") if (!creating_arena) creating_arena = TRUE new /datum/bomberman_arena(locate(250, 250, 2), pick("15x13 (2 players)","15x15 (4 players)","39x23 (10 players)"), src) if (!arenas.len) // Someone hit the cancel option creating_arena = FALSE return to_chat(src, "There were unfortunatly no available arenas.") /mob/dead/observer/verb/become_mommi() set name = "Become MoMMI" set category = "Ghost" if(!config.respawn_as_mommi) to_chat(src, "Respawning as MoMMI is disabled..") return var/timedifference = world.time - client.time_died_as_mouse if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600) var/timedifference_text timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss") to_chat(src, "You may only spawn again as a mouse or MoMMI more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.") return if(!world.has_round_started()) to_chat(src, "The game has not started yet.") return //find a viable mouse candidate var/list/found_spawners = list() for(var/obj/machinery/mommi_spawner/s in machines) if(s.canSpawn()) found_spawners.Add(s) if(found_spawners.len) var/options[found_spawners.len] for(var/t=1,t<=found_spawners.len,t++) var/obj/machinery/mommi_spawner/S = found_spawners[t] var/dat = text("[] on z-level = []",get_area(S),S.z) options[t] = dat var/selection = input(src,"Select a MoMMI spawn location", "Become MoMMI",null) as null|anything in options if(selection) for(var/i = 1, i<=options.len, i++) if(options[i] == selection) var/obj/machinery/mommi_spawner/final = found_spawners[i] final.attack_ghost(src) break else to_chat(src, "Unable to find any MoMMI Spawners ready to build a MoMMI in the universe. Please try again.") /mob/dead/observer/verb/become_hobo() set name = "Become Space Hobo" set category = "Ghost" if(!config.respawn_as_hobo) to_chat(src, "Respawning as Space Hobo is disabled.") return var/timedifference = world.time - client.time_died_as_mouse if(client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600) var/timedifference_text timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss") to_chat(src, "You may only spawn again as this role more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.") return if(hoboamount == hobostart.len) to_chat(src, "The world has enough of these as is.") return if(!world.has_round_started()) to_chat(src, "The game has not started yet.") return var/response = alert(src, "Are you -sure- you want to become a space hobo?","Are you sure you want to ramble?","Yeah!","Nope!") if(response != "Yeah!" || !src.key) return //Hit the wrong key...again. var/mob/living/carbon/human/hobo = new(pick(hobostart)) hobo.key = src.key hobo.set_species(pick(200;"Human",50;"Vox",50;"Insectoid",25;"Diona",25;"Grey",1;"Tajaran",10;"Unathi")) hobo.generate_name() var/datum/outfit/special/with_id/hobo/hobo_outfit = new hobo_outfit.equip(hobo) log_admin("([hobo.ckey]/[hobo]) became a space hobo as a ghost.") to_chat(hobo, "You are a Space Hobo.") // somewhat taken from CEV eris to_chat(hobo, "The ID you wear is likely not even your own. At least as far as you can remember. But this chunk of plastic still can be a rare oddity that can change your character. Find a way to stay out of trouble, and survive. Though this does not mean you have no home, as the asteroid is your home. Whatever planet you may have come from is now a distant memory.") to_chat(hobo, "Despite not being a member of the crew, by default you are not an antagonist. Cooperating with antagonists is allowed - within reason. Ask admins via adminhelp if you're not sure.") hoboamount++ /mob/dead/observer/verb/pai_signup() set name = "Sign up as pAI" set category = "Ghost" set desc = "Create and submit your pAI personality" if(!paiController.check_recruit(src)) to_chat(src, "Not available. You may have been pAI-banned.") return paiController.recruitWindow(src)