diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index 8cc2effbea6..2c44ff35b41 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -448,7 +448,7 @@ user.visible_message( SPAN_NOTICE("[user] [is_loose ? "tightens" : "loosens"] the nuts on [src]."), SPAN_NOTICE("You [is_loose ? "tighten" : "loosen"] the nuts on [src], [is_loose ? "securing \the [tank]" : "allowing \the [tank] to be removed"].")) - playsound(src.loc, "sound/items/wrench.ogg", 50, 1) + playsound(src.loc, 'sound/items/wrench.ogg', 50, 1) is_loose = !is_loose return TRUE if(default_deconstruction_screwdriver(user, W)) diff --git a/code/game/objects/items/airbubble.dm b/code/game/objects/items/airbubble.dm index 421874d6f7d..5945dcc210b 100644 --- a/code/game/objects/items/airbubble.dm +++ b/code/game/objects/items/airbubble.dm @@ -246,7 +246,8 @@ return FALSE if ((world.time - last_shake) > 5 SECONDS) - playsound(loc, "sound/items/[pick("rip1","rip2")].ogg", 100, 1) + var/sound_to_play = pick(list('sound/items/rip1.ogg', 'sound/items/rip2.ogg')) + playsound(loc, sound_to_play, 100, 1) shake_animation() last_shake = world.time @@ -275,7 +276,8 @@ breakout = FALSE to_chat(escapee, "You successfully break out! Tearing the bubble's walls!") // holy shit this is hilarious visible_message("\the [escapee] successfully broke out of \the [src]! Tearing the bubble's walls!") - playsound(loc, "sound/items/[pick("rip1","rip2")].ogg", 100, 1) + var/sound_to_play = pick(list('sound/items/rip1.ogg', 'sound/items/rip2.ogg')) + playsound(loc, sound_to_play, 100, 1) break_open() shake_animation() desc += " It has hole in it! Maybe you shouldn't use it!" @@ -513,11 +515,11 @@ STOP_PROCESSING(SSfast_process, src) use_internal_tank = !use_internal_tank visible_message("You hear last bits of air coming out from [src]'s hole.Maybe the tank run out of air?") - playsound(loc, "sound/effects/wind/wind_2_1.ogg", 100, 1) + playsound(loc, 'sound/effects/wind/wind_2_1.ogg', 100, 1) return inside_air = get_turf_air() visible_message("You hear air howling from [src]'s hole. Maybe it is good to shut off valve on the internals tank?") - playsound(loc, "sound/effects/wind/wind_2_2.ogg", 100, 1) + playsound(loc, 'sound/effects/wind/wind_2_2.ogg', 100, 1) var/transfer_moles = inside_air.volume/(inside_air.temperature * R_IDEAL_GAS_EQUATION) var/datum/gas_mixture/removed = tank_air.remove(transfer_moles) diff --git a/code/game/objects/items/devices/geiger.dm b/code/game/objects/items/devices/geiger.dm index 3d7ddae7809..9014a0b7f91 100644 --- a/code/game/objects/items/devices/geiger.dm +++ b/code/game/objects/items/devices/geiger.dm @@ -18,7 +18,7 @@ /obj/item/device/geiger/proc/update_sound(playing) if(playing && !sound_token) - sound_token = sound_player.PlayLoopingSound(src, sound_id, "sound/items/geiger.ogg", volume = geiger_volume, range = 4, falloff = 3, prefer_mute = TRUE) + sound_token = sound_player.PlayLoopingSound(src, sound_id, 'sound/items/geiger.ogg', volume = geiger_volume, range = 4, falloff = 3, prefer_mute = TRUE) else if(!playing && sound_token) QDEL_NULL(sound_token) diff --git a/code/game/objects/items/devices/magnetic_lock.dm b/code/game/objects/items/devices/magnetic_lock.dm index e979960da41..d4932e88fd8 100644 --- a/code/game/objects/items/devices/magnetic_lock.dm +++ b/code/game/objects/items/devices/magnetic_lock.dm @@ -138,11 +138,13 @@ if (I.force >= 18) user.visible_message("[user] bashes [src] with [I]!", "You strike [src] with [I], damaging it!") takedamage(I.force) - playsound(loc, "sound/weapons/genhit[rand(1,3)].ogg", I.force*3, 1) - addtimer(CALLBACK(GLOBAL_PROC, /proc/playsound, loc, "sound/effects/sparks[rand(1,4)].ogg", 30, 1), 3, TIMER_CLIENT_TIME) + var/sound_to_play = pick(list('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')) + playsound(loc, sound_to_play, I.force*3, 1) + sound_to_play = pick(list('sound/effects/sparks1.ogg', 'sound/effects/sparks2.ogg', 'sound/effects/sparks3.ogg', 'sound/effects/sparks4.ogg')) + addtimer(CALLBACK(GLOBAL_PROC, /proc/playsound, loc, sound_to_play, 30, 1), 3, TIMER_CLIENT_TIME) else user.visible_message("[user] hits [src] with [I] but fails to damage it.", "You hit [src] with [I], [I.force >= 10 ? "and it almost makes a dent!" : "but it appears to have no visible effect."]") - playsound(loc, "sound/weapons/Genhit.ogg", I.force*2.5, 1) + playsound(loc, 'sound/weapons/Genhit.ogg', I.force*2.5, 1) return TRUE if(invincible) diff --git a/code/game/objects/items/weapons/autopsy.dm b/code/game/objects/items/weapons/autopsy.dm index 7b32f923ce0..94720efb7d2 100644 --- a/code/game/objects/items/weapons/autopsy.dm +++ b/code/game/objects/items/weapons/autopsy.dm @@ -140,7 +140,7 @@ for(var/mob/O in viewers(usr)) O.show_message(SPAN_NOTICE("\The [src] rattles and prints out a sheet of paper."), 1) - playsound(loc, "sound/bureaucracy/print_short.ogg", 50, 1) + playsound(loc, 'sound/bureaucracy/print_short.ogg', 50, 1) sleep(10) diff --git a/code/game/objects/items/weapons/material/twohanded.dm b/code/game/objects/items/weapons/material/twohanded.dm index f9bcf7ba8ea..e249075c43d 100644 --- a/code/game/objects/items/weapons/material/twohanded.dm +++ b/code/game/objects/items/weapons/material/twohanded.dm @@ -405,7 +405,7 @@ /obj/item/material/twohanded/chainsaw/proc/PowerUp() var/turf/T = get_turf(src) T.audible_message(SPAN_NOTICE("\The [src] rumbles to life.")) - playsound(src, "sound/weapons/chainsawstart.ogg", 25, 0, 30) + playsound(src, 'sound/weapons/saw/chainsawstart.ogg', 25, 0, 30) force_unwielded = 30 force = force_unwielded force_wielded = 60 @@ -482,7 +482,7 @@ /obj/item/material/twohanded/chainsaw/attack(mob/M as mob, mob/living/user as mob) . = ..() if(powered) - playsound(loc, "sound/weapons/saw/chainsword.ogg", 25, 0, 30) + playsound(loc, 'sound/weapons/saw/chainsword.ogg', 25, 0, 30) RemoveFuel(3) /obj/item/material/twohanded/chainsaw/afterattack(obj/O as obj, mob/user as mob, proximity) @@ -496,7 +496,7 @@ if(!istype(O)) user.visible_message(SPAN_DANGER("[user] revs the chainsaw!"), SPAN_WARNING("You rev the chainsaw!"), SPAN_WARNING("You hear a chainsaw rev!")) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - playsound(loc, "sound/weapons/saw/chainsword.ogg", 25, 0, 30) + playsound(loc, 'sound/weapons/saw/chainsword.ogg', 25, 0, 30) RemoveFuel(3) . = ..() diff --git a/code/game/objects/items/weapons/traps.dm b/code/game/objects/items/weapons/traps.dm index 929fbd88f44..73b1a11b4b4 100644 --- a/code/game/objects/items/weapons/traps.dm +++ b/code/game/objects/items/weapons/traps.dm @@ -247,7 +247,7 @@ return FALSE if ((world.time - last_shake) > 5 SECONDS) - playsound(loc, "sound/effects/grillehit.ogg", 100, 1) + playsound(loc, 'sound/effects/grillehit.ogg', 100, 1) shake_animation() last_shake = world.time @@ -273,7 +273,7 @@ breakout = FALSE to_chat(escapee, "You successfully break out!") visible_message("\The [escapee] successfully breaks out of \the [src]!") - playsound(loc, "sound/effects/grillehit.ogg", 100, 1) + playsound(loc, 'sound/effects/grillehit.ogg', 100, 1) release() @@ -419,7 +419,8 @@ user.visible_message("[user] is trying to [anchored ? "un" : "" ]secure \the [src]!", "You are trying to [anchored ? "un" : "" ]secure \the [src]!") - playsound(src.loc, "sound/items/[pick("Screwdriver", "Screwdriver2")].ogg", 50, 1) + var/sound_to_play = pick(list('sound/items/Screwdriver.ogg', 'sound/items/Screwdriver2.ogg')) + playsound(src.loc, sound_to_play, 50, 1) if(W.use_tool(src, user, 30, volume = 50)) density = !density diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 37388bda5b2..a09c6565919 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1356,7 +1356,7 @@ var/global/enabled_spooking = 0 message = sanitize(message, 500, extra = 0) - var/list/sounds = file2list("sound/serversound_list.txt"); + var/list/sounds = file2list('sound/serversound_list.txt'); sounds += "--CANCEL--" sounds += "--LOCAL--" sounds += sounds_cache diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 5ac57624d7b..c37e0db4fa4 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -37,7 +37,7 @@ var/list/sounds_cache = list() set name = "Play Server Sound" if(!check_rights(R_SOUNDS)) return - var/list/sounds = file2list("sound/serversound_list.txt"); + var/list/sounds = file2list('sound/serversound_list.txt'); sounds += "--CANCEL--" sounds += sounds_cache diff --git a/code/modules/heavy_vehicle/mech_damage.dm b/code/modules/heavy_vehicle/mech_damage.dm index a766f18a280..3704c63f41f 100644 --- a/code/modules/heavy_vehicle/mech_damage.dm +++ b/code/modules/heavy_vehicle/mech_damage.dm @@ -144,8 +144,8 @@ apply_damage(damage, DAMAGE_BRUTE, BP_L_LEG) // can target any leg, it will be changed to the proper component - playsound(loc, "sound/effects/bang.ogg", 100, 1) - playsound(loc, "sound/effects/bamf.ogg", 100, 1) + playsound(loc, 'sound/effects/bang.ogg', 100, 1) + playsound(loc, 'sound/effects/bamf.ogg', 100, 1) return TRUE /mob/living/heavy_vehicle/get_bullet_impact_effect_type(var/def_zone) diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm index 5145a78e258..838eb83cad0 100644 --- a/code/modules/mining/machine_processing.dm +++ b/code/modules/mining/machine_processing.dm @@ -248,7 +248,7 @@ P.stamps += "