mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #5900 from Rykka-Stormheart/shep-dev-oopsie-fix
Fixes Explosions runtiming
This commit is contained in:
@@ -38,7 +38,8 @@
|
||||
// If inside the blast radius + world.view - 2
|
||||
if(dist <= round(max_range + world.view - 2, 1))
|
||||
M.playsound_local(epicenter, get_sfx("explosion"), 100, 1, frequency, falloff = 5) // get_sfx() is so that everyone gets the same sound
|
||||
var/mob/living/mL = M // CHOMPStation Add: Ear Ringing/Deafness
|
||||
var/mob/living/mL = M // CHOMPStation Edit: Ear Ringing/Deaf
|
||||
if(isliving(mL)) // CHOMPStation Edit: Fix
|
||||
mL.deaf_loop.start() // CHOMPStation Add: Ear Ringing/Deafness
|
||||
else if(dist <= far_dist)
|
||||
var/far_volume = CLAMP(far_dist, 30, 50) // Volume is based on explosion size and dist
|
||||
|
||||
Reference in New Issue
Block a user