mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] ports a bunch of grep checks from TG (#10361)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
21031b169b
commit
3cfc33bfde
@@ -26,10 +26,10 @@
|
||||
/obj/structure/panic_button/attack_hand(mob/living/user)
|
||||
if(!istype(user))
|
||||
return ..()
|
||||
|
||||
|
||||
if(user.incapacitated())
|
||||
return
|
||||
|
||||
|
||||
// Already launched
|
||||
if(launched)
|
||||
to_chat(user, span_warning("The button is already depressed; the beacon has been launched already."))
|
||||
@@ -61,10 +61,10 @@
|
||||
S.distress(user)
|
||||
//Kind of pricey, but this is a one-time thing that can't be reused, so I'm not too worried.
|
||||
var/list/hear_z = GetConnectedZlevels(z) // multiz 'physical' connections only, not crazy overmap connections
|
||||
|
||||
|
||||
var/mapsize = (world.maxx+world.maxy)*0.5
|
||||
var/turf/us = get_turf(src)
|
||||
|
||||
|
||||
for(var/hz in hear_z)
|
||||
for(var/mob/M as anything in GLOB.players_by_zlevel[hz])
|
||||
var/sound/SND = sound('sound/misc/emergency_beacon_launched.ogg') // Inside the loop because playsound_local modifies it for each person, so, need separate instances
|
||||
|
||||
@@ -49,4 +49,4 @@
|
||||
|
||||
var/list/listeners = get_people_in_ship()
|
||||
for(var/mob/M as anything in listeners)
|
||||
M.show_message(message, m_type)
|
||||
M.show_message(message, m_type)
|
||||
|
||||
Reference in New Issue
Block a user