mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Refactors sound groups to use decls instead of a massive switch with dozens of global lists. (#9702)
This commit is contained in:
@@ -149,7 +149,7 @@ var/datum/controller/subsystem/explosives/SSexplosives
|
||||
if (reception == 2 && (M.ear_deaf <= 0 || !M.ear_deaf))//Dont play sounds to deaf people
|
||||
// If inside the blast radius + world.view - 2
|
||||
if(dist <= closedist)
|
||||
M.playsound_simple(epicenter, get_sfx("explosion"), min(100, volume), use_random_freq = TRUE, falloff = 5)
|
||||
M.playsound_simple(epicenter, get_sfx(/decl/sound_category/explosion_sound), min(100, volume), use_random_freq = TRUE, falloff = 5)
|
||||
//You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station.
|
||||
|
||||
else
|
||||
@@ -313,7 +313,7 @@ var/datum/controller/subsystem/explosives/SSexplosives
|
||||
|
||||
var/close_dist = round(power + world.view - 2, 1)
|
||||
|
||||
var/sound/explosion_sound = sound(get_sfx("explosion"))
|
||||
var/sound/explosion_sound = sound(get_sfx(/decl/sound_category/explosion_sound))
|
||||
|
||||
for (var/thing in player_list)
|
||||
var/mob/M = thing
|
||||
|
||||
@@ -487,7 +487,6 @@
|
||||
SearchVar(lava)
|
||||
SearchVar(snow)
|
||||
SearchVar(sand)
|
||||
SearchVar(footstepfx)
|
||||
SearchVar(FALLOFF_SOUNDS)
|
||||
SearchVar(all_antag_types)
|
||||
SearchVar(all_antag_spawnpoints)
|
||||
|
||||
Reference in New Issue
Block a user