mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-07 23:42:44 +00:00
* makes some events only work on crewmembers, and some not work on centcom (#52966) brain trauma, fake virus, and heart attack only work on crewmembers. mass hallucination and appendicitis don't give the effect/pick to people on centcom, respectively * makes some events only work on crewmembers, and some not work on centcom Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
47 lines
2.0 KiB
Plaintext
47 lines
2.0 KiB
Plaintext
/datum/round_event_control/mass_hallucination
|
|
name = "Mass Hallucination"
|
|
typepath = /datum/round_event/mass_hallucination
|
|
weight = 10
|
|
max_occurrences = 2
|
|
min_players = 1
|
|
|
|
/datum/round_event/mass_hallucination
|
|
fakeable = FALSE
|
|
|
|
/datum/round_event/mass_hallucination/start()
|
|
switch(rand(1,4))
|
|
if(1) //same sound for everyone
|
|
var/sound = pick("airlock","airlock_pry","console","explosion","far_explosion","mech","glass","alarm","beepsky","mech","wall_decon","door_hack","tesla")
|
|
for(var/mob/living/carbon/C in GLOB.alive_mob_list)
|
|
if(C.z in SSmapping.levels_by_trait(ZTRAIT_CENTCOM))//not for admin/ooc stuff
|
|
continue
|
|
new /datum/hallucination/sounds(C, TRUE, sound)
|
|
if(2)
|
|
var/weirdsound = pick("phone","hallelujah","highlander","hyperspace","game_over","creepy","tesla")
|
|
for(var/mob/living/carbon/C in GLOB.alive_mob_list)
|
|
if(C.z in SSmapping.levels_by_trait(ZTRAIT_CENTCOM))//not for admin/ooc stuff
|
|
continue
|
|
new /datum/hallucination/weird_sounds(C, TRUE, weirdsound)
|
|
if(3)
|
|
var/stationmessage = pick("ratvar","shuttle_dock","blob_alert","malf_ai","meteors","supermatter")
|
|
for(var/mob/living/carbon/C in GLOB.alive_mob_list)
|
|
if(C.z in SSmapping.levels_by_trait(ZTRAIT_CENTCOM))//not for admin/ooc stuff
|
|
continue
|
|
new /datum/hallucination/stationmessage(C, TRUE, stationmessage)
|
|
if(4 to 6)
|
|
var/picked_hallucination = pick( /datum/hallucination/bolts,
|
|
/datum/hallucination/chat,
|
|
/datum/hallucination/message,
|
|
/datum/hallucination/bolts,
|
|
/datum/hallucination/fake_flood,
|
|
/datum/hallucination/battle,
|
|
/datum/hallucination/fire,
|
|
/datum/hallucination/self_delusion,
|
|
/datum/hallucination/death,
|
|
/datum/hallucination/delusion,
|
|
/datum/hallucination/oh_yeah)
|
|
for(var/mob/living/carbon/C in GLOB.alive_mob_list)
|
|
if(C.z in SSmapping.levels_by_trait(ZTRAIT_CENTCOM))//not for admin/ooc stuff
|
|
continue
|
|
new picked_hallucination(C, TRUE)
|