Partial fix for the immunity to flashbangs in the dark ( now only immune if in the dark AND inside a locker). Deaf people no longer see the "BANG" message of flashbangs.

This commit is contained in:
phil235
2014-09-14 14:19:25 +02:00
parent 304b89bdc0
commit 4d427bf712

View File

@@ -12,7 +12,7 @@
for(var/mob/living/M in L) for(var/mob/living/M in L)
bang(get_turf(M), M) bang(get_turf(M), M)
for(var/mob/living/M in view(7, flashbang_turf)) for(var/mob/living/M in hearers(7, flashbang_turf))
bang(get_turf(M), M) bang(get_turf(M), M)
for(var/obj/effect/blob/B in view(8,flashbang_turf)) //Blob damage here for(var/obj/effect/blob/B in view(8,flashbang_turf)) //Blob damage here
@@ -22,7 +22,7 @@
qdel(src) qdel(src)
/obj/item/weapon/grenade/flashbang/proc/bang(var/turf/T , var/mob/living/M) /obj/item/weapon/grenade/flashbang/proc/bang(var/turf/T , var/mob/living/M)
M << "<span class='warning'>BANG</span>" M.show_message("<span class='warning'>BANG</span>", 2)
playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
//Checking for protections //Checking for protections