Nanites port from /tg/station, original coder XDTM
This commit is contained in:
@@ -625,7 +625,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/hallucination/fake_door_lock
|
||||
layer = CLOSED_DOOR_LAYER + 1 //for Collide priority
|
||||
layer = CLOSED_DOOR_LAYER + 1 //for Bump priority
|
||||
var/image/bolt_light
|
||||
var/obj/machinery/door/airlock/airlock
|
||||
|
||||
@@ -771,13 +771,13 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
..()
|
||||
var/turf/source = random_far_turf()
|
||||
if(!sound_type)
|
||||
sound_type = pick("airlock","airlock_pry","console","explosion","far_explosion","mech","glass","alarm","beepsky","mech","wall_decon","door_hack","tesla")
|
||||
sound_type = pick("airlock","airlock pry","console","explosion","far explosion","mech","glass","alarm","beepsky","mech","wall decon","door hack")
|
||||
feedback_details += "Type: [sound_type]"
|
||||
//Strange audio
|
||||
switch(sound_type)
|
||||
if("airlock")
|
||||
target.playsound_local(source,'sound/machines/airlock.ogg', 30, 1)
|
||||
if("airlock_pry")
|
||||
if("airlock pry")
|
||||
target.playsound_local(source,'sound/machines/airlock_alien_prying.ogg', 100, 1)
|
||||
sleep(50)
|
||||
target.playsound_local(source, 'sound/machines/airlockforced.ogg', 30, 1)
|
||||
@@ -788,7 +788,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
target.playsound_local(source,'sound/effects/explosion1.ogg', 50, 1)
|
||||
else
|
||||
target.playsound_local(source, 'sound/effects/explosion2.ogg', 50, 1)
|
||||
if("far_explosion")
|
||||
if("far explosion")
|
||||
target.playsound_local(source, 'sound/effects/explosionfar.ogg', 50, 1)
|
||||
if("glass")
|
||||
target.playsound_local(source, pick('sound/effects/glassbr1.ogg','sound/effects/glassbr2.ogg','sound/effects/glassbr3.ogg'), 50, 1)
|
||||
@@ -807,14 +807,14 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
mech_dir = pick(GLOB.cardinals)
|
||||
sleep(10)
|
||||
//Deconstructing a wall
|
||||
if("wall_decon")
|
||||
if("wall decon")
|
||||
target.playsound_local(source, 'sound/items/welder.ogg', 50, 1)
|
||||
sleep(105)
|
||||
target.playsound_local(source, 'sound/items/welder2.ogg', 50, 1)
|
||||
sleep(15)
|
||||
target.playsound_local(source, 'sound/items/ratchet.ogg', 50, 1)
|
||||
//Hacking a door
|
||||
if("door_hack")
|
||||
if("door hack")
|
||||
target.playsound_local(source, 'sound/items/screwdriver.ogg', 50, 1)
|
||||
sleep(rand(40,80))
|
||||
target.playsound_local(source, 'sound/machines/airlockforced.ogg', 30, 1)
|
||||
@@ -827,7 +827,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
..()
|
||||
var/turf/source = random_far_turf()
|
||||
if(!sound_type)
|
||||
sound_type = pick("phone","hallelujah","highlander","hyperspace","game_over","creepy","tesla")
|
||||
sound_type = pick("phone","hallelujah","highlander","laughter","hyperspace","game over","creepy","tesla")
|
||||
feedback_details += "Type: [sound_type]"
|
||||
//Strange audio
|
||||
switch(sound_type)
|
||||
@@ -845,7 +845,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
target.playsound_local(source, 'sound/effects/pray_chaplain.ogg', 50)
|
||||
if("highlander")
|
||||
target.playsound_local(null, 'sound/misc/highlander.ogg', 50)
|
||||
if("game_over")
|
||||
if("game over")
|
||||
target.playsound_local(source, 'sound/misc/compiler-failure.ogg', 50)
|
||||
if("laughter")
|
||||
if(prob(50))
|
||||
@@ -870,10 +870,10 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
set waitfor = FALSE
|
||||
..()
|
||||
if(!message)
|
||||
message = pick("ratvar","shuttle_dock","blob_alert","malf_ai","meteors","supermatter")
|
||||
message = pick("ratvar","shuttle dock","blob alert","malf ai","meteors","supermatter")
|
||||
feedback_details += "Type: [message]"
|
||||
switch(message)
|
||||
if("blob_alert")
|
||||
if("blob alert")
|
||||
to_chat(target, "<h1 class='alert'>Biohazard Alert</h1>")
|
||||
to_chat(target, "<br><br><span class='alert'>Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.</span><br><br>")
|
||||
SEND_SOUND(target, 'sound/ai/outbreak5.ogg')
|
||||
@@ -882,11 +882,11 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
target.playsound_local(target, 'sound/effects/clockcult_gateway_disrupted.ogg', 50, FALSE, pressure_affected = FALSE)
|
||||
sleep(27)
|
||||
target.playsound_local(target, 'sound/effects/explosion_distant.ogg', 50, FALSE, pressure_affected = FALSE)
|
||||
if("shuttle_dock")
|
||||
if("shuttle dock")
|
||||
to_chat(target, "<h1 class='alert'>Priority Announcement</h1>")
|
||||
to_chat(target, "<br><br><span class='alert'>The Emergency Shuttle has docked with the station. You have 3 minutes to board the Emergency Shuttle.</span><br><br>")
|
||||
SEND_SOUND(target, 'sound/ai/shuttledock.ogg')
|
||||
if("malf_ai") //AI is doomsdaying!
|
||||
if("malf ai") //AI is doomsdaying!
|
||||
to_chat(target, "<h1 class='alert'>Anomaly Alert</h1>")
|
||||
to_chat(target, "<br><br><span class='alert'>Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.</span><br><br>")
|
||||
SEND_SOUND(target, 'sound/ai/aimalf.ogg')
|
||||
@@ -900,11 +900,14 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
|
||||
/datum/hallucination/hudscrew
|
||||
|
||||
/datum/hallucination/hudscrew/New(mob/living/carbon/C, forced = TRUE)
|
||||
/datum/hallucination/hudscrew/New(mob/living/carbon/C, forced = TRUE, screwyhud_type)
|
||||
set waitfor = FALSE
|
||||
..()
|
||||
//Screwy HUD
|
||||
target.set_screwyhud(pick(SCREWYHUD_CRIT,SCREWYHUD_DEAD,SCREWYHUD_HEALTHY))
|
||||
var/chosen_screwyhud = screwyhud_type
|
||||
if(!chosen_screwyhud)
|
||||
chosen_screwyhud = pick(SCREWYHUD_CRIT,SCREWYHUD_DEAD,SCREWYHUD_HEALTHY)
|
||||
target.set_screwyhud(chosen_screwyhud)
|
||||
feedback_details += "Type: [target.hal_screwyhud]"
|
||||
sleep(rand(100,250))
|
||||
target.set_screwyhud(SCREWYHUD_NONE)
|
||||
|
||||
Reference in New Issue
Block a user