mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Alter playsound paradigm
This commit is contained in:
@@ -195,7 +195,7 @@
|
||||
/obj/item/projectile/energy/plasmastun/proc/bang(var/mob/living/carbon/M)
|
||||
|
||||
to_chat(M, "<span class='danger'>You hear a loud roar.</span>")
|
||||
playsound(M.loc, 'sound/effects/bang.ogg', 50, 1)
|
||||
playsound(src, 'sound/effects/bang.ogg', 50, 1)
|
||||
var/ear_safety = 0
|
||||
ear_safety = M.get_ear_protection()
|
||||
if(ear_safety == 1)
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
if(!(H.species.flags & NO_SLIP) && prob(50))
|
||||
var/armor_check = H.run_armor_check(def_zone, "melee")
|
||||
H.apply_effect(3, WEAKEN, armor_check)
|
||||
playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
if(armor_check < 60)
|
||||
visible_message("<span class='danger'>\The [src] has pushed [H]!</span>")
|
||||
else
|
||||
@@ -91,19 +91,19 @@
|
||||
|
||||
else
|
||||
if(H.break_all_grabs(firer))
|
||||
playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
return
|
||||
|
||||
for(var/obj/item/I in holding)
|
||||
if(I)
|
||||
H.drop_from_inventory(I)
|
||||
visible_message("<span class='danger'>\The [src] has disarmed [H]!</span>")
|
||||
playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
return
|
||||
|
||||
|
||||
/obj/item/projectile/energy/hook/proc/perform_intent_unique(atom/target)
|
||||
playsound(src.loc, impact_sound, 40, 1)
|
||||
playsound(src, impact_sound, 40, 1)
|
||||
var/success = FALSE
|
||||
if(istype(target,/turf))
|
||||
if(launcher_intent)
|
||||
@@ -148,7 +148,7 @@
|
||||
var/message = pick(help_messages)
|
||||
if(message == "slaps")
|
||||
spawn(1)
|
||||
playsound(loc, 'sound/effects/snap.ogg', 50, 1)
|
||||
playsound(src, 'sound/effects/snap.ogg', 50, 1)
|
||||
visible_message("<span class='notice'>\The [src] [message] [target].</span>")
|
||||
done_mob_unique = TRUE
|
||||
success = TRUE
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
/obj/item/projectile/bullet/magnetic/fuelrod/supermatter/on_hit(var/atom/target, var/blocked = 0, var/def_zone = null) //You cannot touch the supermatter without disentigrating. Assumedly, this is true for condensed rods of it flying at relativistic speeds.
|
||||
if(istype(target,/turf/simulated/wall) || istype(target,/mob/living))
|
||||
target.visible_message("<span class='danger'>The [src] burns a perfect hole through \the [target] with a blinding flash!</span>")
|
||||
playsound(target.loc, 'sound/effects/teleport.ogg', 40, 0)
|
||||
playsound(target, 'sound/effects/teleport.ogg', 40, 0)
|
||||
return ..(target, blocked, def_zone)
|
||||
|
||||
/obj/item/projectile/bullet/magnetic/fuelrod/supermatter/check_penetrate()
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
if(A)
|
||||
|
||||
A.ex_act(2)
|
||||
playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, 1)
|
||||
playsound(src, 'sound/effects/meteorimpact.ogg', 40, 1)
|
||||
|
||||
for(var/mob/M in range(10, src))
|
||||
if(!M.stat && !istype(M, /mob/living/silicon/ai))\
|
||||
|
||||
Reference in New Issue
Block a user