"
@@ -120,7 +120,7 @@
if(!active)
if(stop > world.time)
to_chat(usr, "
Error: The device is still resetting from the last activation, it will be ready again in [DisplayTimeText(stop-world.time)].")
- playsound(src, 'sound/misc/compiler-failure.ogg', 50, 1)
+ playsound(src, 'sound/misc/compiler-failure.ogg', 50, TRUE)
return
activate_music()
START_PROCESSING(SSobj, src)
@@ -452,7 +452,7 @@
active = FALSE
STOP_PROCESSING(SSobj, src)
dance_over()
- playsound(src,'sound/machines/terminal_off.ogg',50,1)
+ playsound(src,'sound/machines/terminal_off.ogg',50,TRUE)
update_icon()
stop = world.time + 100
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index f003775ec4b..e36eb9ea7e5 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -246,7 +246,7 @@
if(locked)
return
locked = TRUE
- playsound(src,boltDown,30,0,3)
+ playsound(src,boltDown,30,FALSE,3)
audible_message("
You hear a click from the bottom of the door.", null, 1)
update_icon()
@@ -257,7 +257,7 @@
if(!locked)
return
locked = FALSE
- playsound(src,boltUp,30,0,3)
+ playsound(src,boltUp,30,FALSE,3)
audible_message("
You hear a click from the bottom of the door.", null, 1)
update_icon()
@@ -621,7 +621,7 @@
if("deny")
if(!stat)
update_icon(AIRLOCK_DENY)
- playsound(src,doorDeni,50,0,3)
+ playsound(src,doorDeni,50,FALSE,3)
sleep(6)
update_icon(AIRLOCK_CLOSED)
@@ -1049,7 +1049,7 @@
if(obj_flags & EMAGGED)
return FALSE
use_power(50)
- playsound(src, doorOpen, 30, 1)
+ playsound(src, doorOpen, 30, TRUE)
if(closeOther != null && istype(closeOther, /obj/machinery/door/airlock/) && !closeOther.density)
closeOther.close()
else
@@ -1249,7 +1249,7 @@
var/time_to_open = 5
if(hasPower())
time_to_open = 50 //Powered airlocks take longer to open, and are loud.
- playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, 1)
+ playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE)
if(do_after(user, time_to_open, TRUE, src))
diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm
index 421ee98b171..401fb9d34ef 100644
--- a/code/game/machinery/doors/airlock_types.dm
+++ b/code/game/machinery/doors/airlock_types.dm
@@ -605,7 +605,7 @@
return
/obj/machinery/door/airlock/clockwork/deconstruct(disassembled = TRUE)
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
if(!(flags_1 & NODECONSTRUCT_1))
var/turf/T = get_turf(src)
if(disassembled)
@@ -624,14 +624,14 @@
if(!I.use_tool(src, user, 75, volume=50) || construction_state != GEAR_SECURE)
return 1
user.visible_message("
[user] loosens [src]'s cogwheel!", "
[src]'s cogwheel pops off and dangles loosely.")
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
construction_state = GEAR_LOOSE
else if(construction_state == GEAR_LOOSE)
user.visible_message("
[user] begins tightening [src]'s cogwheel...", "
You begin tightening [src]'s cogwheel into place...")
if(!I.use_tool(src, user, 75, volume=50) || construction_state != GEAR_LOOSE)
return 1
user.visible_message("
[user] tightens [src]'s cogwheel!", "
You firmly tighten [src]'s cogwheel into place.")
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
construction_state = GEAR_SECURE
return 1
else if(I.tool_behaviour == TOOL_CROWBAR)
diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm
index 2e07601a6bc..b90429fca2a 100644
--- a/code/game/machinery/doors/door.dm
+++ b/code/game/machinery/doors/door.dm
@@ -212,13 +212,13 @@
switch(damage_type)
if(BRUTE)
if(glass)
- playsound(loc, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(loc, 'sound/effects/glasshit.ogg', 90, TRUE)
else if(damage_amount)
- playsound(loc, 'sound/weapons/smash.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/smash.ogg', 50, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/machinery/door/emp_act(severity)
. = ..()
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index 3921bfd93ad..185881c4911 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -109,7 +109,7 @@
"
You start unfastening [src]'s floor bolts...")
if(!C.use_tool(src, user, 50))
return
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("
[user] unfastens [src]'s bolts.", \
"
You undo [src]'s floor bolts.")
deconstruct(TRUE)
@@ -299,7 +299,7 @@
return
if(constructionStep != CONSTRUCTION_PANEL_OPEN)
return
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("
[user] pries out a metal plate from [src], exposing the wires.", \
"
You remove the cover plate from [src], exposing the wires.")
constructionStep = CONSTRUCTION_WIRES_EXPOSED
@@ -318,7 +318,7 @@
return
user.visible_message("
[user] finishes the firelock.", \
"
You finish the firelock.")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
if(reinforced)
new /obj/machinery/door/firedoor/heavy(get_turf(src))
else
@@ -335,13 +335,13 @@
return
user.visible_message("
[user] begins reinforcing [src]...", \
"
You begin reinforcing [src]...")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
if(do_after(user, 60, target = src))
if(constructionStep != CONSTRUCTION_PANEL_OPEN || reinforced || P.get_amount() < 2 || !P)
return
user.visible_message("
[user] reinforces [src].", \
"
You reinforce [src].")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
P.use(2)
reinforced = 1
return
@@ -369,7 +369,7 @@
return
if(constructionStep != CONSTRUCTION_WIRES_EXPOSED)
return
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("
[user] pries the metal plate into [src].", \
"
You pry [src]'s cover plate into place, hiding the wires.")
constructionStep = CONSTRUCTION_PANEL_OPEN
@@ -396,13 +396,13 @@
return
user.visible_message("
[user] begins wiring [src]...", \
"
You begin adding wires to [src]...")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
if(do_after(user, 60, target = src))
if(constructionStep != CONSTRUCTION_GUTTED || B.get_amount() < 5 || !B)
return
user.visible_message("
[user] adds wires to [src].", \
"
You wire [src].")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
B.use(5)
constructionStep = CONSTRUCTION_WIRES_EXPOSED
update_icon()
@@ -428,7 +428,7 @@
if(istype(C, /obj/item/electronics/firelock))
user.visible_message("
[user] starts adding [C] to [src]...", \
"
You begin adding a circuit board to [src]...")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
if(!do_after(user, 40, target = src))
return
if(constructionStep != CONSTRUCTION_NOCIRCUIT)
@@ -436,7 +436,7 @@
qdel(C)
user.visible_message("
[user] adds a circuit to [src].", \
"
You insert and secure [C].")
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
constructionStep = CONSTRUCTION_GUTTED
update_icon()
return
diff --git a/code/game/machinery/doors/passworddoor.dm b/code/game/machinery/doors/passworddoor.dm
index fcbb214bb66..9bddefa0294 100644
--- a/code/game/machinery/doors/passworddoor.dm
+++ b/code/game/machinery/doors/passworddoor.dm
@@ -52,13 +52,13 @@
switch(animation)
if("opening")
flick("opening", src)
- playsound(src, 'sound/machines/blastdoor.ogg', 30, 1)
+ playsound(src, 'sound/machines/blastdoor.ogg', 30, TRUE)
if("closing")
flick("closing", src)
- playsound(src, 'sound/machines/blastdoor.ogg', 30, 1)
+ playsound(src, 'sound/machines/blastdoor.ogg', 30, TRUE)
if("deny")
//Deny animation would be nice to have.
- playsound(src, 'sound/machines/buzz-sigh.ogg', 30, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE)
/obj/machinery/door/password/proc/ask_for_pass(mob/user)
var/guess = stripped_input(user,"Enter the password:", "Password", "")
@@ -70,4 +70,4 @@
return
/obj/machinery/door/password/ex_act(severity, target)
- return
\ No newline at end of file
+ return
diff --git a/code/game/machinery/doors/poddoor.dm b/code/game/machinery/doors/poddoor.dm
index bf3479099fa..d95a8d07c3c 100644
--- a/code/game/machinery/doors/poddoor.dm
+++ b/code/game/machinery/doors/poddoor.dm
@@ -77,10 +77,10 @@
switch(animation)
if("opening")
flick("opening", src)
- playsound(src, 'sound/machines/blastdoor.ogg', 30, 1)
+ playsound(src, 'sound/machines/blastdoor.ogg', 30, TRUE)
if("closing")
flick("closing", src)
- playsound(src, 'sound/machines/blastdoor.ogg', 30, 1)
+ playsound(src, 'sound/machines/blastdoor.ogg', 30, TRUE)
/obj/machinery/door/poddoor/update_icon()
if(density)
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index 255c9edbb3a..a393f38bd28 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -44,7 +44,7 @@
density = FALSE
QDEL_LIST(debris)
if(obj_integrity == 0)
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
electronics = null
return ..()
@@ -144,7 +144,7 @@
if(!operating) //in case of emag
operating = TRUE
do_animate("opening")
- playsound(src, 'sound/machines/windowdoor.ogg', 100, 1)
+ playsound(src, 'sound/machines/windowdoor.ogg', 100, TRUE)
icon_state ="[base_state]open"
sleep(10)
@@ -167,7 +167,7 @@
return 0
operating = TRUE
do_animate("closing")
- playsound(src, 'sound/machines/windowdoor.ogg', 100, 1)
+ playsound(src, 'sound/machines/windowdoor.ogg', 100, TRUE)
icon_state = base_state
density = TRUE
@@ -181,9 +181,9 @@
/obj/machinery/door/window/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(src, 'sound/effects/glasshit.ogg', 90, TRUE)
if(BURN)
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
/obj/machinery/door/window/deconstruct(disassembled = TRUE)
@@ -212,7 +212,7 @@
obj_flags |= EMAGGED
operating = TRUE
flick("[base_state]spark", src)
- playsound(src, "sparks", 75, 1)
+ playsound(src, "sparks", 75, TRUE)
sleep(6)
operating = FALSE
desc += "
Its access panel is smoking slightly."
diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm
index ed4d5df99cc..cfe7ad1ef34 100644
--- a/code/game/machinery/doppler_array.dm
+++ b/code/game/machinery/doppler_array.dm
@@ -70,7 +70,7 @@ GLOBAL_LIST_EMPTY(doppler_arrays)
/obj/machinery/doppler_array/proc/rot_message(mob/user)
to_chat(user, "
You adjust [src]'s dish to face to the [dir2text(dir)].")
- playsound(src, 'sound/items/screwdriver2.ogg', 50, 1)
+ playsound(src, 'sound/items/screwdriver2.ogg', 50, TRUE)
/obj/machinery/doppler_array/proc/sense_explosion(turf/epicenter,devastation_range,heavy_impact_range,light_impact_range,
took,orig_dev_range,orig_heavy_range,orig_light_range)
diff --git a/code/game/machinery/droneDispenser.dm b/code/game/machinery/droneDispenser.dm
index b6a738fe0eb..a66b359dd11 100644
--- a/code/game/machinery/droneDispenser.dm
+++ b/code/game/machinery/droneDispenser.dm
@@ -162,7 +162,7 @@
if(begin_create_message)
visible_message("
[src] [begin_create_message]")
if(work_sound)
- playsound(src, work_sound, 50, 1)
+ playsound(src, work_sound, 50, TRUE)
mode = DRONE_PRODUCTION
timer = world.time + production_time
update_icon()
@@ -176,7 +176,7 @@
A.flags_1 |= (flags_1 & ADMIN_SPAWNED_1)
if(create_sound)
- playsound(src, create_sound, 50, 1)
+ playsound(src, create_sound, 50, TRUE)
if(end_create_message)
visible_message("
[src] [end_create_message]")
@@ -186,7 +186,7 @@
if(DRONE_RECHARGING)
if(recharge_sound)
- playsound(src, recharge_sound, 50, 1)
+ playsound(src, recharge_sound, 50, TRUE)
if(recharge_message)
visible_message("
[src] [recharge_message]")
@@ -247,7 +247,7 @@
if(break_message)
audible_message("
[src] [break_message]")
if(break_sound)
- playsound(src, break_sound, 50, 1)
+ playsound(src, break_sound, 50, TRUE)
stat |= BROKEN
update_icon()
diff --git a/code/game/machinery/embedded_controller/access_controller.dm b/code/game/machinery/embedded_controller/access_controller.dm
index 6f4b228e162..54f4e66659e 100644
--- a/code/game/machinery/embedded_controller/access_controller.dm
+++ b/code/game/machinery/embedded_controller/access_controller.dm
@@ -31,7 +31,7 @@
obj_flags |= EMAGGED
req_access = list()
req_one_access = list()
- playsound(src, "sparks", 100, 1)
+ playsound(src, "sparks", 100, TRUE)
to_chat(user, "
You short out the access controller.")
/obj/machinery/doorButtons/proc/removeMe()
diff --git a/code/game/machinery/exp_cloner.dm b/code/game/machinery/exp_cloner.dm
index 4f39d2c51ce..9c01fbf99c9 100644
--- a/code/game/machinery/exp_cloner.dm
+++ b/code/game/machinery/exp_cloner.dm
@@ -231,27 +231,27 @@
loading = TRUE
updateUsrDialog()
- playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 50, FALSE)
say("Initiating scan...")
spawn(20)
clone_occupant(scanner.occupant)
loading = FALSE
updateUsrDialog()
- playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, FALSE)
//No locking an open scanner.
else if ((href_list["lock"]) && !isnull(scanner) && scanner.is_operational())
if ((!scanner.locked) && (scanner.occupant))
scanner.locked = TRUE
- playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
else
scanner.locked = FALSE
- playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, FALSE)
else if (href_list["refresh"])
updateUsrDialog()
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
add_fingerprint(usr)
updateUsrDialog()
@@ -269,15 +269,15 @@
if(!istype(dna))
scantemp = "
Unable to locate valid genetic data."
- playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
return
if((HAS_TRAIT(mob_occupant, TRAIT_HUSK)) && (src.scanner.scan_level < 2))
scantemp = "
Subject's body is too damaged to scan properly."
- playsound(src, 'sound/machines/terminal_alert.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_alert.ogg', 50, FALSE)
return
if(HAS_TRAIT(mob_occupant, TRAIT_BADDNA))
scantemp = "
Subject's DNA is damaged beyond any hope of recovery."
- playsound(src, 'sound/machines/terminal_alert.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_alert.ogg', 50, FALSE)
return
var/clone_species
@@ -291,14 +291,14 @@
//Can't clone without someone to clone. Or a pod. Or if the pod is busy. Or full of gibs.
if(!LAZYLEN(pods))
temp = "
No Clonepods detected."
- playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
else if(!pod)
temp = "
No Clonepods available."
- playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
else if(pod.occupant)
temp = "
Cloning cycle already in progress."
- playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
else
pod.growclone(mob_occupant.real_name, dna.uni_identity, dna.mutation_index, null, null, clone_species, dna.features, mob_occupant.faction)
temp = "[mob_occupant.real_name] =>
Cloning data sent to pod."
- playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, FALSE)
diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm
index 2fbffab6177..0f14516c7e2 100644
--- a/code/game/machinery/firealarm.dm
+++ b/code/game/machinery/firealarm.dm
@@ -112,7 +112,7 @@
if(user)
user.visible_message("
Sparks fly out of [src]!",
"
You emag [src], disabling its thermal sensors.")
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
/obj/machinery/firealarm/temperature_expose(datum/gas_mixture/air, temperature, volume)
if((temperature > T0C + 200 || temperature < BODYTEMP_COLD_DAMAGE_LIMIT) && (last_alarm+FIREALARM_COOLDOWN < world.time) && !(obj_flags & EMAGGED) && detecting && !stat)
diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm
index b240f710832..7810fe585ff 100644
--- a/code/game/machinery/flasher.dm
+++ b/code/game/machinery/flasher.dm
@@ -106,7 +106,7 @@
power_change()
return
- playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1)
+ playsound(src.loc, 'sound/weapons/flash.ogg', 100, TRUE)
flick("[base_state]_flash", src)
flash_lighting_fx(FLASH_LIGHT_RANGE, light_power, light_color)
last_flash = world.time
@@ -152,7 +152,7 @@
var/obj/item/wallframe/flasher/F = new(get_turf(src))
transfer_fingerprints_to(F)
F.id = id
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
else
new /obj/item/stack/sheet/metal (loc, 2)
qdel(src)
diff --git a/code/game/machinery/harvester.dm b/code/game/machinery/harvester.dm
index 00ff4b0ab27..c693d1a215c 100644
--- a/code/game/machinery/harvester.dm
+++ b/code/game/machinery/harvester.dm
@@ -67,15 +67,15 @@
var/obj/item/I = A
if(!(HAS_TRAIT(I, TRAIT_NODROP)))
say("Subject may not have abiotic items on.")
- playsound(src, 'sound/machines/buzz-sigh.ogg', 30, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE)
return
if(!(C.mob_biotypes & MOB_ORGANIC))
say("Subject is not organic.")
- playsound(src, 'sound/machines/buzz-sigh.ogg', 30, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE)
return
if(!allow_living && !(C.stat == DEAD || HAS_TRAIT(C, TRAIT_FAKEDEATH))) //I mean, the machines scanners arent advanced enough to tell you're alive
say("Subject is still alive.")
- playsound(src, 'sound/machines/buzz-sigh.ogg', 30, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE)
return
return TRUE
@@ -94,7 +94,7 @@
update_icon()
if(!harvesting || state_open || !powered(EQUIP) || !occupant || !iscarbon(occupant))
return
- playsound(src, 'sound/machines/juicer.ogg', 20, 1)
+ playsound(src, 'sound/machines/juicer.ogg', 20, TRUE)
var/mob/living/carbon/C = occupant
if(!LAZYLEN(operation_order)) //The list is empty, so we're done here
end_harvesting()
@@ -128,7 +128,7 @@
harvesting = FALSE
open_machine()
say("Subject has been successfully harvested.")
- playsound(src, 'sound/machines/microwave/microwave-end.ogg', 100, 0)
+ playsound(src, 'sound/machines/microwave/microwave-end.ogg', 100, FALSE)
/obj/machinery/harvester/screwdriver_act(mob/living/user, obj/item/I)
. = TRUE
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index be27e0cac60..55f611f99b1 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -640,7 +640,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
if(replay_holo)
replay_holo.say(message)
if(HOLORECORD_SOUND)
- playsound(src,entry[2],50,1)
+ playsound(src,entry[2],50,TRUE)
if(HOLORECORD_DELAY)
addtimer(CALLBACK(src,.proc/replay_entry,entry_number+1),entry[2])
return
diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm
index 507c1bb5527..c7e06b9a51e 100644
--- a/code/game/machinery/iv_drip.dm
+++ b/code/game/machinery/iv_drip.dm
@@ -150,7 +150,7 @@
// If the human is losing too much blood, beep.
if(attached.blood_volume < BLOOD_VOLUME_SAFE && prob(5))
visible_message("
[src] beeps loudly.")
- playsound(loc, 'sound/machines/twobeep_high.ogg', 50, 1)
+ playsound(loc, 'sound/machines/twobeep_high.ogg', 50, TRUE)
attached.transfer_blood_to(beaker, amount)
update_icon()
diff --git a/code/game/machinery/launch_pad.dm b/code/game/machinery/launch_pad.dm
index 5cf8c28d07d..4cf68cdf07a 100644
--- a/code/game/machinery/launch_pad.dm
+++ b/code/game/machinery/launch_pad.dm
@@ -123,7 +123,7 @@
indicator_icon = "launchpad_pull"
update_indicator()
- playsound(get_turf(src), 'sound/weapons/flash.ogg', 25, 1)
+ playsound(get_turf(src), 'sound/weapons/flash.ogg', 25, TRUE)
teleporting = TRUE
@@ -149,7 +149,7 @@
source = dest
dest = target
- playsound(get_turf(src), 'sound/weapons/emitter2.ogg', 25, 1)
+ playsound(get_turf(src), 'sound/weapons/emitter2.ogg', 25, TRUE)
var/first = TRUE
for(var/atom/movable/ROI in source)
if(ROI == src)
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 4304f660183..164b1b61399 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -722,7 +722,7 @@ GLOBAL_LIST_EMPTY(allCasters)
to_chat(user, "
You start [anchored ? "un" : ""]securing [name]...")
I.play_tool_sound(src)
if(I.use_tool(src, user, 60))
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
if(stat & BROKEN)
to_chat(user, "
The broken remains of [src] fall on the ground.")
new /obj/item/stack/sheet/metal(loc, 5)
@@ -755,11 +755,11 @@ GLOBAL_LIST_EMPTY(allCasters)
switch(damage_type)
if(BRUTE)
if(stat & BROKEN)
- playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 100, 1)
+ playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 100, TRUE)
else
- playsound(loc, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(loc, 'sound/effects/glasshit.ogg', 90, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/machinery/newscaster/deconstruct(disassembled = TRUE)
@@ -772,7 +772,7 @@ GLOBAL_LIST_EMPTY(allCasters)
/obj/machinery/newscaster/obj_break()
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
stat |= BROKEN
- playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(loc, 'sound/effects/glassbr3.ogg', 100, TRUE)
update_icon()
@@ -859,10 +859,10 @@ GLOBAL_LIST_EMPTY(allCasters)
alert = TRUE
update_icon()
addtimer(CALLBACK(src,.proc/remove_alert),alert_delay,TIMER_UNIQUE|TIMER_OVERRIDE)
- playsound(loc, 'sound/machines/twobeep_high.ogg', 75, 1)
+ playsound(loc, 'sound/machines/twobeep_high.ogg', 75, TRUE)
else
say("Attention! Wanted issue distributed!")
- playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, 1)
+ playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, TRUE)
/obj/item/newspaper
@@ -891,7 +891,7 @@ GLOBAL_LIST_EMPTY(allCasters)
user.say(";JOURNALISM IS MY CALLING! EVERYBODY APPRECIATES UNBIASED REPORTI-GLORF", forced="newspaper suicide")
var/mob/living/carbon/human/H = user
var/obj/W = new /obj/item/reagent_containers/food/drinks/bottle/whiskey(H.loc)
- playsound(H.loc, 'sound/items/drink.ogg', rand(10,50), 1)
+ playsound(H.loc, 'sound/items/drink.ogg', rand(10,50), TRUE)
W.reagents.trans_to(H, W.reagents.total_volume, transfered_by = user)
user.visible_message("
[user] downs the contents of [W.name] in one gulp! Shoulda stuck to sudoku!")
@@ -1006,7 +1006,7 @@ GLOBAL_LIST_EMPTY(allCasters)
if(curr_page == 0) //We're at the start, get to the middle
screen=1
curr_page++
- playsound(loc, "pageturn", 50, 1)
+ playsound(loc, "pageturn", 50, TRUE)
else if(href_list["prev_page"])
if(curr_page == 0)
return
@@ -1016,7 +1016,7 @@ GLOBAL_LIST_EMPTY(allCasters)
if(curr_page == pages+1) //we're at the end, let's go back to the middle.
screen = 1
curr_page--
- playsound(loc, "pageturn", 50, 1)
+ playsound(loc, "pageturn", 50, TRUE)
if(ismob(loc))
attack_self(loc)
diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm
index fa7652b1e32..c82c12cf4df 100644
--- a/code/game/machinery/porta_turret/portable_turret.dm
+++ b/code/game/machinery/porta_turret/portable_turret.dm
@@ -552,11 +552,11 @@
if(mode == TURRET_STUN)
use_power(reqpower)
A = new stun_projectile(T)
- playsound(loc, stun_projectile_sound, 75, 1)
+ playsound(loc, stun_projectile_sound, 75, TRUE)
else
use_power(reqpower * 2)
A = new lethal_projectile(T)
- playsound(loc, lethal_projectile_sound, 75, 1)
+ playsound(loc, lethal_projectile_sound, 75, TRUE)
//Shooting Code:
diff --git a/code/game/machinery/quantum_pad.dm b/code/game/machinery/quantum_pad.dm
index d3dd4a38b95..c3c8bc999b7 100644
--- a/code/game/machinery/quantum_pad.dm
+++ b/code/game/machinery/quantum_pad.dm
@@ -134,7 +134,7 @@
/obj/machinery/quantumpad/proc/doteleport(mob/user, obj/machinery/quantumpad/target_pad = linked_pad)
if(target_pad)
- playsound(get_turf(src), 'sound/weapons/flash.ogg', 25, 1)
+ playsound(get_turf(src), 'sound/weapons/flash.ogg', 25, TRUE)
teleporting = TRUE
spawn(teleport_speed)
@@ -159,9 +159,9 @@
target_pad.sparks()
flick("qpad-beam", src)
- playsound(get_turf(src), 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5)
+ playsound(get_turf(src), 'sound/weapons/emitter2.ogg', 25, TRUE, extrarange = 3, falloff = 5)
flick("qpad-beam", target_pad)
- playsound(get_turf(target_pad), 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5)
+ playsound(get_turf(target_pad), 'sound/weapons/emitter2.ogg', 25, TRUE, extrarange = 3, falloff = 5)
for(var/atom/movable/ROI in get_turf(src))
if(QDELETED(ROI))
continue //sleeps in CHECK_TICK
diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm
index dbf96516f2c..c60ce16bf8b 100644
--- a/code/game/machinery/recycler.dm
+++ b/code/game/machinery/recycler.dm
@@ -72,7 +72,7 @@
if(safety_mode)
safety_mode = FALSE
update_icon()
- playsound(src, "sparks", 75, 1, -1)
+ playsound(src, "sparks", 75, TRUE, -1)
to_chat(user, "
You use the cryptographic sequencer on [src].")
/obj/machinery/recycler/update_icon()
@@ -123,9 +123,9 @@
recycle_item(AM)
items_recycled++
else
- playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 50, FALSE)
if(items_recycled && sound)
- playsound(src, item_recycle_sound, 50, 1)
+ playsound(src, item_recycle_sound, 50, TRUE)
/obj/machinery/recycler/proc/recycle_item(obj/item/I)
@@ -150,14 +150,14 @@
/obj/machinery/recycler/proc/emergency_stop(mob/living/L)
- playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 50, FALSE)
safety_mode = TRUE
update_icon()
L.forceMove(loc)
addtimer(CALLBACK(src, .proc/reboot), SAFETY_COOLDOWN)
/obj/machinery/recycler/proc/reboot()
- playsound(src, 'sound/machines/ping.ogg', 50, 0)
+ playsound(src, 'sound/machines/ping.ogg', 50, FALSE)
safety_mode = FALSE
update_icon()
@@ -166,9 +166,9 @@
L.forceMove(loc)
if(issilicon(L))
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
else
- playsound(src, 'sound/effects/splat.ogg', 50, 1)
+ playsound(src, 'sound/effects/splat.ogg', 50, TRUE)
// By default, the emagged recycler will gib all non-carbons. (human simple animal mobs don't count)
if(iscarbon(L))
diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm
index a84fb52f3b0..23b09cefae6 100644
--- a/code/game/machinery/requests_console.dm
+++ b/code/game/machinery/requests_console.dm
@@ -398,7 +398,7 @@ GLOBAL_LIST_EMPTY(req_console_ckey_departments)
messages += "[header][sending]"
if(!silenced)
- playsound(src, 'sound/machines/twobeep_high.ogg', 50, 1)
+ playsound(src, 'sound/machines/twobeep_high.ogg', 50, TRUE)
say(alert)
if(radio_freq)
diff --git a/code/game/machinery/scan_gate.dm b/code/game/machinery/scan_gate.dm
index 653aab041a3..370742aa9eb 100644
--- a/code/game/machinery/scan_gate.dm
+++ b/code/game/machinery/scan_gate.dm
@@ -136,7 +136,7 @@
/obj/machinery/scanner_gate/proc/alarm_beep()
if(next_beep <= world.time)
next_beep = world.time + 20
- playsound(src, 'sound/machines/scanbuzz.ogg', 100, 0)
+ playsound(src, 'sound/machines/scanbuzz.ogg', 100, FALSE)
var/image/I = image(icon, src, "alarm_light", layer+1)
flick_overlay_view(I, src, 20)
set_scanline("alarm", 20)
diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm
index 63d4dd2f62d..8cf9cb51528 100644
--- a/code/game/machinery/shieldgen.dm
+++ b/code/game/machinery/shieldgen.dm
@@ -34,9 +34,9 @@
/obj/structure/emergency_shield/play_attack_sound(damage, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BURN)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
if(BRUTE)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
/obj/structure/emergency_shield/take_damage(damage, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir)
. = ..()
@@ -203,7 +203,7 @@
return
obj_flags |= EMAGGED
locked = FALSE
- playsound(src, "sparks", 100, 1)
+ playsound(src, "sparks", 100, TRUE)
to_chat(user, "
You short out the access controller.")
/obj/machinery/shieldgen/update_icon()
@@ -392,7 +392,7 @@
return
obj_flags |= EMAGGED
locked = FALSE
- playsound(src, "sparks", 100, 1)
+ playsound(src, "sparks", 100, TRUE)
to_chat(user, "
You short out the access controller.")
//////////////Containment Field START
@@ -435,9 +435,9 @@
/obj/machinery/shieldwall/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BURN)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
if(BRUTE)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
//the shield wall is immune to damage but it drains the stored power of the generators.
/obj/machinery/shieldwall/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir)
diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm
index 3a2cda5bf31..d3e18419405 100644
--- a/code/game/machinery/slotmachine.dm
+++ b/code/game/machinery/slotmachine.dm
@@ -132,7 +132,7 @@
var/datum/effect_system/spark_spread/spark_system = new /datum/effect_system/spark_spread()
spark_system.set_up(4, 0, src.loc)
spark_system.start()
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
/obj/machinery/computer/slot_machine/ui_interact(mob/living/user)
. = ..()
diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm
index 405d6abe790..e032701468e 100644
--- a/code/game/machinery/suit_storage_unit.dm
+++ b/code/game/machinery/suit_storage_unit.dm
@@ -261,7 +261,7 @@
locked = FALSE
if(uv_super)
visible_message("
[src]'s door creaks open with a loud whining noise. A cloud of foul black smoke escapes from its chamber.")
- playsound(src, 'sound/machines/airlock_alien_prying.ogg', 50, 1)
+ playsound(src, 'sound/machines/airlock_alien_prying.ogg', 50, TRUE)
helmet = null
qdel(helmet)
suit = null
@@ -277,7 +277,7 @@
visible_message("
[src]'s door slides open. The glowing yellow lights dim to a gentle green.")
else
visible_message("
[src]'s door slides open, barraging you with the nauseating smell of charred flesh.")
- playsound(src, 'sound/machines/airlockclose.ogg', 25, 1)
+ playsound(src, 'sound/machines/airlockclose.ogg', 25, TRUE)
var/list/things_to_clear = list() //Done this way since using GetAllContents on the SSU itself would include circuitry and such.
if(suit)
things_to_clear += suit
diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm
index 5d7dc4b9950..157f641f983 100644
--- a/code/game/machinery/syndicatebeacon.dm
+++ b/code/game/machinery/syndicatebeacon.dm
@@ -122,7 +122,7 @@
if(user)
to_chat(user, "
Locked In.")
new droptype( user.loc )
- playsound(src, 'sound/effects/pop.ogg', 100, 1, 1)
+ playsound(src, 'sound/effects/pop.ogg', 100, TRUE, TRUE)
qdel(src)
return
diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm
index 8bb9041d5db..851e4dcc540 100644
--- a/code/game/machinery/syndicatebomb.dm
+++ b/code/game/machinery/syndicatebomb.dm
@@ -71,7 +71,7 @@
volume = 10
else
volume = 5
- playsound(loc, beepsound, volume, 0)
+ playsound(loc, beepsound, volume, FALSE)
next_beep = world.time + 10
if(active && ((detonation_timer <= world.time) || explode_now))
@@ -187,7 +187,7 @@
countdown.start()
next_beep = world.time + 10
detonation_timer = world.time + (timer_set * 10)
- playsound(loc, 'sound/machines/click.ogg', 30, 1)
+ playsound(loc, 'sound/machines/click.ogg', 30, TRUE)
notify_ghosts("\A [src] has been activated at [get_area(src)]!", source = src, action = NOTIFY_ORBIT, flashwindow = FALSE, header = "Bomb Planted")
/obj/machinery/syndicatebomb/proc/settings(mob/user)
@@ -417,14 +417,14 @@
reactants += S.reagents
if(!chem_splash(get_turf(src), spread_range, reactants, temp_boost))
- playsound(loc, 'sound/items/screwdriver2.ogg', 50, 1)
+ playsound(loc, 'sound/items/screwdriver2.ogg', 50, TRUE)
return // The Explosion didn't do anything. No need to log, or disappear.
if(adminlog)
message_admins(adminlog)
log_game(adminlog)
- playsound(loc, 'sound/effects/bamf.ogg', 75, 1, 5)
+ playsound(loc, 'sound/effects/bamf.ogg', 75, TRUE, 5)
if(loc && istype(loc, /obj/machinery/syndicatebomb/))
qdel(loc)
@@ -513,7 +513,7 @@
B.detonation_timer = world.time + BUTTON_DELAY
detonated++
existent++
- playsound(user, 'sound/machines/click.ogg', 20, 1)
+ playsound(user, 'sound/machines/click.ogg', 20, TRUE)
to_chat(user, "
[existent] found, [detonated] triggered.")
if(detonated)
detonated--
diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm
index 271295beae8..47930565d41 100644
--- a/code/game/machinery/transformer.dm
+++ b/code/game/machinery/transformer.dm
@@ -79,7 +79,7 @@
return
if(!transform_dead && H.stat == DEAD)
- playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
+ playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, FALSE)
return
// Activate the cooldown
@@ -87,7 +87,7 @@
cooldown_timer = world.time + cooldown_duration
update_icon()
- playsound(src.loc, 'sound/items/welder.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 50, TRUE)
H.emote("scream") // It is painful
H.adjustBruteLoss(max(0, 80 - H.getBruteLoss())) // Hurt the human, don't try to kill them though.
@@ -107,7 +107,7 @@
addtimer(CALLBACK(src, .proc/unlock_new_robot, R), 50)
/obj/machinery/transformer/proc/unlock_new_robot(mob/living/silicon/robot/R)
- playsound(src.loc, 'sound/machines/ping.ogg', 50, 0)
+ playsound(src.loc, 'sound/machines/ping.ogg', 50, FALSE)
sleep(30)
if(R)
R.SetLockdown(0)
diff --git a/code/game/mecha/combat/honker.dm b/code/game/mecha/combat/honker.dm
index 14e1ec01fd9..9edb44330e2 100644
--- a/code/game/mecha/combat/honker.dm
+++ b/code/game/mecha/combat/honker.dm
@@ -134,7 +134,7 @@
var/result = step(src,direction)
if(result)
if(!squeak)
- playsound(src, "clownstep", 70, 1)
+ playsound(src, "clownstep", 70, TRUE)
squeak = 1
else
squeak = 0
diff --git a/code/game/mecha/equipment/tools/medical_tools.dm b/code/game/mecha/equipment/tools/medical_tools.dm
index 632e1afe9f6..2a0e7533c79 100644
--- a/code/game/mecha/equipment/tools/medical_tools.dm
+++ b/code/game/mecha/equipment/tools/medical_tools.dm
@@ -310,7 +310,7 @@
syringes -= mechsyringe
mechsyringe.icon = 'icons/obj/chemical.dmi'
mechsyringe.icon_state = "syringeproj"
- playsound(chassis, 'sound/items/syringeproj.ogg', 50, 1)
+ playsound(chassis, 'sound/items/syringeproj.ogg', 50, TRUE)
log_message("Launched [mechsyringe] from [src], targeting [target].", LOG_MECHA)
var/mob/originaloccupant = chassis.occupant
spawn(0)
diff --git a/code/game/mecha/equipment/tools/mining_tools.dm b/code/game/mecha/equipment/tools/mining_tools.dm
index 17b33fcd0ac..08b715a7101 100644
--- a/code/game/mecha/equipment/tools/mining_tools.dm
+++ b/code/game/mecha/equipment/tools/mining_tools.dm
@@ -44,11 +44,11 @@
while(do_after_mecha(target, drill_delay))
if(isliving(target))
drill_mob(target, chassis.occupant)
- playsound(src,'sound/weapons/drill.ogg',40,1)
+ playsound(src,'sound/weapons/drill.ogg',40,TRUE)
else if(isobj(target))
var/obj/O = target
O.take_damage(15, BRUTE, 0, FALSE, get_dir(chassis, target))
- playsound(src,'sound/weapons/drill.ogg',40,1)
+ playsound(src,'sound/weapons/drill.ogg',40,TRUE)
else
set_ready_state(TRUE)
return
diff --git a/code/game/mecha/equipment/tools/work_tools.dm b/code/game/mecha/equipment/tools/work_tools.dm
index 77559963232..998f7ebc0ea 100644
--- a/code/game/mecha/equipment/tools/work_tools.dm
+++ b/code/game/mecha/equipment/tools/work_tools.dm
@@ -201,10 +201,10 @@
var/obj/structure/reagent_dispensers/watertank/WT = target
WT.reagents.trans_to(src, 1000)
occupant_message("
Extinguisher refilled.")
- playsound(chassis, 'sound/effects/refill.ogg', 50, 1, -6)
+ playsound(chassis, 'sound/effects/refill.ogg', 50, TRUE, -6)
else
if(reagents.total_volume > 0)
- playsound(chassis, 'sound/effects/extinguish.ogg', 75, 1, -3)
+ playsound(chassis, 'sound/effects/extinguish.ogg', 75, TRUE, -3)
var/direction = get_dir(chassis,target)
var/turf/T = get_turf(target)
var/turf/T1 = get_step(T,turn(direction, 90))
@@ -273,7 +273,7 @@
target = get_turf(target)
if(!action_checks(target) || get_dist(chassis, target)>3)
return
- playsound(chassis, 'sound/machines/click.ogg', 50, 1)
+ playsound(chassis, 'sound/machines/click.ogg', 50, TRUE)
switch(mode)
if(0)
@@ -283,34 +283,34 @@
if(do_after_cooldown(W))
chassis.spark_system.start()
W.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
- playsound(W, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(W, 'sound/items/deconstruct.ogg', 50, TRUE)
else if(isfloorturf(target))
var/turf/open/floor/F = target
occupant_message("
Deconstructing [F]...")
if(do_after_cooldown(target))
chassis.spark_system.start()
F.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
- playsound(F, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(F, 'sound/items/deconstruct.ogg', 50, TRUE)
else if (istype(target, /obj/machinery/door/airlock))
occupant_message("
Deconstructing [target]...")
if(do_after_cooldown(target))
chassis.spark_system.start()
qdel(target)
- playsound(target, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(target, 'sound/items/deconstruct.ogg', 50, TRUE)
if(1)
if(isspaceturf(target))
var/turf/open/space/S = target
occupant_message("
Building Floor...")
if(do_after_cooldown(S))
S.PlaceOnTop(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
- playsound(S, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(S, 'sound/items/deconstruct.ogg', 50, TRUE)
chassis.spark_system.start()
else if(isfloorturf(target))
var/turf/open/floor/F = target
occupant_message("
Building Wall...")
if(do_after_cooldown(F))
F.PlaceOnTop(/turf/closed/wall)
- playsound(F, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(F, 'sound/items/deconstruct.ogg', 50, TRUE)
chassis.spark_system.start()
if(2)
if(isfloorturf(target))
@@ -319,8 +319,8 @@
chassis.spark_system.start()
var/obj/machinery/door/airlock/T = new /obj/machinery/door/airlock(target)
T.autoclose = TRUE
- playsound(target, 'sound/items/deconstruct.ogg', 50, 1)
- playsound(target, 'sound/effects/sparks2.ogg', 50, 1)
+ playsound(target, 'sound/items/deconstruct.ogg', 50, TRUE)
+ playsound(target, 'sound/effects/sparks2.ogg', 50, TRUE)
@@ -393,5 +393,5 @@
N.name = M.name
M.wreckage = 0
qdel(M)
- playsound(get_turf(N),'sound/items/ratchet.ogg',50,1)
+ playsound(get_turf(N),'sound/items/ratchet.ogg',50,TRUE)
return
diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm
index 129de8f6fbe..a478b4f0dd0 100644
--- a/code/game/mecha/equipment/weapons/weapons.dm
+++ b/code/game/mecha/equipment/weapons/weapons.dm
@@ -51,7 +51,7 @@
A.preparePixelProjectile(target, chassis.occupant, params, spread)
A.fire()
- playsound(chassis, fire_sound, 50, 1)
+ playsound(chassis, fire_sound, 50, TRUE)
sleep(max(0, projectile_delay))
@@ -179,7 +179,7 @@
/obj/item/mecha_parts/mecha_equipment/weapon/honker/action(target, params)
if(!action_checks(target))
return
- playsound(chassis, 'sound/items/airhorn.ogg', 100, 1)
+ playsound(chassis, 'sound/items/airhorn.ogg', 100, TRUE)
chassis.occupant_message("
HONK")
for(var/mob/living/carbon/M in ohearers(6, chassis))
if(ishuman(M))
@@ -366,7 +366,7 @@
if(!action_checks(target))
return
var/obj/O = new projectile(chassis.loc)
- playsound(chassis, fire_sound, 50, 1)
+ playsound(chassis, fire_sound, 50, TRUE)
log_message("Launched a [O.name] from [name], targeting [target].", LOG_MECHA)
projectiles--
proj_init(O)
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index 58227e3dd8e..e3cf928dd89 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -579,7 +579,7 @@
/obj/mecha/proc/mechturn(direction)
setDir(direction)
if(turnsound)
- playsound(src,turnsound,40,1)
+ playsound(src,turnsound,40,TRUE)
return 1
/obj/mecha/proc/mechstep(direction)
@@ -588,13 +588,13 @@
if(strafe)
setDir(current_dir)
if(result && stepsound)
- playsound(src,stepsound,40,1)
+ playsound(src,stepsound,40,TRUE)
return result
/obj/mecha/proc/mechsteprand()
var/result = step_rand(src)
if(result && stepsound)
- playsound(src,stepsound,40,1)
+ playsound(src,stepsound,40,TRUE)
return result
/obj/mecha/Bump(var/atom/obstacle)
@@ -766,7 +766,7 @@
silicon_pilot = TRUE
icon_state = initial(icon_state)
update_icon()
- playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
+ playsound(src, 'sound/machines/windowdoor.ogg', 50, TRUE)
if(!internal_damage)
SEND_SOUND(occupant, sound('sound/mecha/nominal.ogg',volume=50))
AI.cancel_camera()
@@ -894,7 +894,7 @@
log_message("[H] moved in as pilot.", LOG_MECHA)
icon_state = initial(icon_state)
setDir(dir_in)
- playsound(src, 'sound/machines/windowdoor.ogg', 50, 1)
+ playsound(src, 'sound/machines/windowdoor.ogg', 50, TRUE)
if(!internal_damage)
SEND_SOUND(occupant, sound('sound/mecha/nominal.ogg',volume=50))
return 1
@@ -1115,7 +1115,7 @@ GLOBAL_VAR_INIT(year_integer, text2num(year)) // = 2013???
gun.projectiles = gun.projectiles + ammo_needed
else
gun.projectiles_cache = gun.projectiles_cache + ammo_needed
- playsound(get_turf(user),A.load_audio,50,1)
+ playsound(get_turf(user),A.load_audio,50,TRUE)
to_chat(user, "
You add [ammo_needed] [A.round_term][ammo_needed > 1?"s":""] to the [gun.name]")
A.rounds = A.rounds - ammo_needed
A.update_name()
@@ -1126,7 +1126,7 @@ GLOBAL_VAR_INIT(year_integer, text2num(year)) // = 2013???
gun.projectiles = gun.projectiles + A.rounds
else
gun.projectiles_cache = gun.projectiles_cache + A.rounds
- playsound(get_turf(user),A.load_audio,50,1)
+ playsound(get_turf(user),A.load_audio,50,TRUE)
to_chat(user, "
You add [A.rounds] [A.round_term][A.rounds > 1?"s":""] to the [gun.name]")
A.rounds = 0
A.update_name()
diff --git a/code/game/mecha/mecha_actions.dm b/code/game/mecha/mecha_actions.dm
index d1a916b2ceb..cba15c8454c 100644
--- a/code/game/mecha/mecha_actions.dm
+++ b/code/game/mecha/mecha_actions.dm
@@ -251,7 +251,7 @@
chassis.occupant_message("
A bone-chillingly thick plasteel needle protracts from the exosuit's palm.")
chassis.damtype = new_damtype
button_icon_state = "mech_damtype_[new_damtype]"
- playsound(src, 'sound/mecha/mechmove01.ogg', 50, 1)
+ playsound(src, 'sound/mecha/mechmove01.ogg', 50, TRUE)
UpdateButtonIcon()
/datum/action/innate/mecha/mech_toggle_phasing
diff --git a/code/game/mecha/mecha_construction_paths.dm b/code/game/mecha/mecha_construction_paths.dm
index 6f5a3680223..596def0ed46 100644
--- a/code/game/mecha/mecha_construction_paths.dm
+++ b/code/game/mecha/mecha_construction_paths.dm
@@ -998,7 +998,7 @@
return FALSE
if(istype(I, /obj/item/bikehorn))
- playsound(parent, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(parent, 'sound/items/bikehorn.ogg', 50, TRUE)
user.visible_message("
HONK!")
//TODO: better messages.
diff --git a/code/game/mecha/mecha_defense.dm b/code/game/mecha/mecha_defense.dm
index 3db0b3446d6..ad3a9702f43 100644
--- a/code/game/mecha/mecha_defense.dm
+++ b/code/game/mecha/mecha_defense.dm
@@ -59,7 +59,7 @@
return
user.changeNext_move(CLICK_CD_MELEE) // Ugh. Ideally we shouldn't be setting cooldowns outside of click code.
user.do_attack_animation(src, ATTACK_EFFECT_PUNCH)
- playsound(loc, 'sound/weapons/tap.ogg', 40, 1, -1)
+ playsound(loc, 'sound/weapons/tap.ogg', 40, TRUE, -1)
user.visible_message("
[user] hits [name]. Nothing happens.", null, null, COMBAT_MESSAGE_RANGE)
log_message("Attack by hand/paw. Attacker - [user].", LOG_MECHA, color="red")
@@ -68,7 +68,7 @@
/obj/mecha/attack_alien(mob/living/user)
log_message("Attack by alien. Attacker - [user].", LOG_MECHA, color="red")
- playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1)
+ playsound(src.loc, 'sound/weapons/slash.ogg', 100, TRUE)
attack_generic(user, 15, BRUTE, "melee", 0)
/obj/mecha/attack_animal(mob/living/simple_animal/user)
@@ -80,7 +80,7 @@
var/play_soundeffect = 1
if(user.environment_smash)
play_soundeffect = 0
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
var/animal_damage = rand(user.melee_damage_lower,user.melee_damage_upper)
if(user.obj_damage)
animal_damage = user.obj_damage
@@ -287,7 +287,7 @@
to_chat(user, "
The [name] is at full integrity!")
/obj/mecha/proc/mech_toxin_damage(mob/living/target)
- playsound(src, 'sound/effects/spray2.ogg', 50, 1)
+ playsound(src, 'sound/effects/spray2.ogg', 50, TRUE)
if(target.reagents)
if(target.reagents.get_reagent_amount(/datum/reagent/cryptobiolin) + force < force*2)
target.reagents.add_reagent(/datum/reagent/cryptobiolin, force/2)
diff --git a/code/game/mecha/medical/medical.dm b/code/game/mecha/medical/medical.dm
index 24d5c18d240..8ffc4743494 100644
--- a/code/game/mecha/medical/medical.dm
+++ b/code/game/mecha/medical/medical.dm
@@ -3,17 +3,17 @@
/obj/mecha/medical/mechturn(direction)
setDir(direction)
- playsound(src,'sound/mecha/mechmove01.ogg',40,1)
+ playsound(src,'sound/mecha/mechmove01.ogg',40,TRUE)
return 1
/obj/mecha/medical/mechstep(direction)
var/result = step(src,direction)
if(result)
- playsound(src,'sound/mecha/mechstep.ogg',25,1)
+ playsound(src,'sound/mecha/mechstep.ogg',25,TRUE)
return result
/obj/mecha/medical/mechsteprand()
var/result = step_rand(src)
if(result)
- playsound(src,'sound/mecha/mechstep.ogg',25,1)
- return result
\ No newline at end of file
+ playsound(src,'sound/mecha/mechstep.ogg',25,TRUE)
+ return result
diff --git a/code/game/objects/effects/alien_acid.dm b/code/game/objects/effects/alien_acid.dm
index 1a605d64b0b..5dcbc9ea952 100644
--- a/code/game/objects/effects/alien_acid.dm
+++ b/code/game/objects/effects/alien_acid.dm
@@ -38,7 +38,7 @@
return 0
if(prob(5))
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
for(var/obj/O in target)
if(prob(20) && !(resistance_flags & UNACIDABLE))
@@ -61,7 +61,7 @@
var/acid_used = min(acid_level*0.05, 20)
if(L.acid_act(10, acid_used, "feet"))
acid_level = max(0, acid_level - acid_used*10)
- playsound(L, 'sound/weapons/sear.ogg', 50, 1)
+ playsound(L, 'sound/weapons/sear.ogg', 50, TRUE)
to_chat(L, "
[src] burns you!")
//xenomorph corrosive acid
@@ -73,7 +73,7 @@
. = ..()
if(.)
if(prob(45))
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
target_strength--
if(target_strength <= 0)
target.visible_message("
[target] collapses under its own weight into a puddle of goop and undigested debris!")
diff --git a/code/game/objects/effects/anomalies.dm b/code/game/objects/effects/anomalies.dm
index f05b4d602a2..154e62e1d2e 100644
--- a/code/game/objects/effects/anomalies.dm
+++ b/code/game/objects/effects/anomalies.dm
@@ -215,7 +215,7 @@
var/turf/FROM = T // the turf of origin we're travelling FROM
var/turf/TO = get_turf(chosen) // the turf of origin we're travelling TO
- playsound(TO, 'sound/effects/phasein.ogg', 100, 1)
+ playsound(TO, 'sound/effects/phasein.ogg', 100, TRUE)
priority_announce("Massive bluespace translocation detected.", "Anomaly Alert")
var/list/flashers = list()
diff --git a/code/game/objects/effects/contraband.dm b/code/game/objects/effects/contraband.dm
index 05659349fe3..9225f331674 100644
--- a/code/game/objects/effects/contraband.dm
+++ b/code/game/objects/effects/contraband.dm
@@ -103,7 +103,7 @@
if(ruined)
return
visible_message("
[user] rips [src] in a single, decisive motion!" )
- playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, TRUE)
var/obj/structure/sign/poster/ripped/R = new(loc)
R.pixel_y = pixel_y
@@ -149,7 +149,7 @@
flick("poster_being_set",D)
D.forceMove(src)
qdel(P) //delete it now to cut down on sanity checks afterwards. Agouri's code supports rerolling it anyway
- playsound(D.loc, 'sound/items/poster_being_created.ogg', 100, 1)
+ playsound(D.loc, 'sound/items/poster_being_created.ogg', 100, TRUE)
if(do_after(user, PLACE_SPEED, target=src))
if(!D || QDELETED(D))
diff --git a/code/game/objects/effects/decals/cleanable/humans.dm b/code/game/objects/effects/decals/cleanable/humans.dm
index 3f511e46480..25e5579655e 100644
--- a/code/game/objects/effects/decals/cleanable/humans.dm
+++ b/code/game/objects/effects/decals/cleanable/humans.dm
@@ -74,7 +74,7 @@
/obj/effect/decal/cleanable/blood/gibs/Crossed(mob/living/L)
if(istype(L) && has_gravity(loc))
- playsound(loc, 'sound/effects/gib_step.ogg', HAS_TRAIT(L, TRAIT_LIGHT_STEP) ? 20 : 50, 1)
+ playsound(loc, 'sound/effects/gib_step.ogg', HAS_TRAIT(L, TRAIT_LIGHT_STEP) ? 20 : 50, TRUE)
. = ..()
/obj/effect/decal/cleanable/blood/gibs/proc/streak(list/directions)
diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm
index f9e3a09a71c..ef4436c4d5b 100644
--- a/code/game/objects/effects/decals/cleanable/misc.dm
+++ b/code/game/objects/effects/decals/cleanable/misc.dm
@@ -124,7 +124,7 @@
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(isflyperson(H))
- playsound(get_turf(src), 'sound/items/drink.ogg', 50, 1) //slurp
+ playsound(get_turf(src), 'sound/items/drink.ogg', 50, TRUE) //slurp
H.visible_message("
[H] extends a small proboscis into the vomit pool, sucking it with a slurping sound.")
if(reagents)
for(var/datum/reagent/R in reagents.reagent_list)
diff --git a/code/game/objects/effects/decals/remains.dm b/code/game/objects/effects/decals/remains.dm
index 75fe78959d6..8c2e76b168d 100644
--- a/code/game/objects/effects/decals/remains.dm
+++ b/code/game/objects/effects/decals/remains.dm
@@ -5,7 +5,7 @@
/obj/effect/decal/remains/acid_act()
visible_message("
[src] dissolve[gender==PLURAL?"":"s"] into a puddle of sizzling goop!")
- playsound(src, 'sound/items/welder.ogg', 150, 1)
+ playsound(src, 'sound/items/welder.ogg', 150, TRUE)
new /obj/effect/decal/cleanable/greenglow(drop_location())
qdel(src)
diff --git a/code/game/objects/effects/effect_system/effects_foam.dm b/code/game/objects/effects/effect_system/effects_foam.dm
index bf329a25226..da467f88bd4 100644
--- a/code/game/objects/effects/effect_system/effects_foam.dm
+++ b/code/game/objects/effects/effect_system/effects_foam.dm
@@ -92,7 +92,7 @@
. = ..()
create_reagents(1000) //limited by the size of the reagent holder anyway.
START_PROCESSING(SSfastprocess, src)
- playsound(src, 'sound/effects/bubbles2.ogg', 80, 1, -3)
+ playsound(src, 'sound/effects/bubbles2.ogg', 80, TRUE, -3)
/obj/effect/particle_effect/foam/ComponentInitialize()
. = ..()
@@ -281,7 +281,7 @@
return attack_hand(user)
/obj/structure/foamedmetal/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
- playsound(src.loc, 'sound/weapons/tap.ogg', 100, 1)
+ playsound(src.loc, 'sound/weapons/tap.ogg', 100, TRUE)
/obj/structure/foamedmetal/attack_hand(mob/user)
. = ..()
@@ -290,7 +290,7 @@
user.changeNext_move(CLICK_CD_MELEE)
user.do_attack_animation(src, ATTACK_EFFECT_PUNCH)
to_chat(user, "
You hit [src] but bounce off it!")
- playsound(src.loc, 'sound/weapons/tap.ogg', 100, 1)
+ playsound(src.loc, 'sound/weapons/tap.ogg', 100, TRUE)
/obj/structure/foamedmetal/CanPass(atom/movable/mover, turf/target)
return !density
diff --git a/code/game/objects/effects/glowshroom.dm b/code/game/objects/effects/glowshroom.dm
index 28cc952767c..2f212629e02 100644
--- a/code/game/objects/effects/glowshroom.dm
+++ b/code/game/objects/effects/glowshroom.dm
@@ -163,7 +163,7 @@
/obj/structure/glowshroom/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
if(damage_type == BURN && damage_amount)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/glowshroom/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
if(exposed_temperature > 300)
diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm
index 9dd74da4050..3b893a1eeb2 100644
--- a/code/game/objects/effects/mines.dm
+++ b/code/game/objects/effects/mines.dm
@@ -83,7 +83,7 @@
var/sound = 'sound/items/bikehorn.ogg'
/obj/effect/mine/sound/mineEffect(mob/victim)
- playsound(loc, sound, 100, 1)
+ playsound(loc, sound, 100, TRUE)
/obj/effect/mine/sound/bwoink
diff --git a/code/game/objects/effects/spawners/xeno_egg_delivery.dm b/code/game/objects/effects/spawners/xeno_egg_delivery.dm
index 9be52dab529..feb5605342c 100644
--- a/code/game/objects/effects/spawners/xeno_egg_delivery.dm
+++ b/code/game/objects/effects/spawners/xeno_egg_delivery.dm
@@ -10,7 +10,7 @@
new /obj/structure/alien/egg(T)
new /obj/effect/temp_visual/gravpush(T)
- playsound(T, 'sound/items/party_horn.ogg', 50, 1, -1)
+ playsound(T, 'sound/items/party_horn.ogg', 50, TRUE, -1)
message_admins("An alien egg has been delivered to [ADMIN_VERBOSEJMP(T)].")
log_game("An alien egg has been delivered to [AREACOORD(T)]")
diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm
index 4d69eb2bdd0..0d4e5bcef56 100644
--- a/code/game/objects/effects/spiders.dm
+++ b/code/game/objects/effects/spiders.dm
@@ -11,7 +11,7 @@
/obj/structure/spider/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
if(damage_type == BURN)//the stickiness of the web mutes all attack sounds except fire damage type
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/spider/run_obj_armor(damage_amount, damage_type, damage_flag = 0, attack_dir)
diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm
index 4ba4e9d87ed..2aa11dd3b98 100644
--- a/code/game/objects/items.dm
+++ b/code/game/objects/items.dm
@@ -486,7 +486,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
src.add_fingerprint(user)
- playsound(loc, src.hitsound, 30, 1, -1)
+ playsound(loc, src.hitsound, 30, TRUE, -1)
user.do_attack_animation(M)
@@ -620,7 +620,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
if(damtype == BURN)
. = 'sound/weapons/sear.ogg'
else
- . = pick('sound/misc/desceration-01.ogg', 'sound/misc/desceration-02.ogg', 'sound/misc/desceration-03.ogg')
+ . = "desceration"
/obj/item/proc/open_flame(flame_heat=700)
var/turf/location = loc
@@ -787,7 +787,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
if(islist(usesound))
played_sound = pick(usesound)
- playsound(target, played_sound, volume, 1)
+ playsound(target, played_sound, volume, TRUE)
// Used in a callback that is passed by use_tool into do_after call. Do not override, do not call manually.
/obj/item/proc/tool_check_callback(mob/living/user, amount, datum/callback/extra_checks)
diff --git a/code/game/objects/items/AI_modules.dm b/code/game/objects/items/AI_modules.dm
index 62113a3357f..979a5034f55 100644
--- a/code/game/objects/items/AI_modules.dm
+++ b/code/game/objects/items/AI_modules.dm
@@ -518,7 +518,7 @@ AI MODULES
/obj/item/aiModule/toyAI/attack_self(mob/user)
laws[1] = generate_ion_law()
to_chat(user, "
You press the button on [src].")
- playsound(user, 'sound/machines/click.ogg', 20, 1)
+ playsound(user, 'sound/machines/click.ogg', 20, TRUE)
src.loc.visible_message("
[icon2html(src, viewers(loc))] [laws[1]]")
/******************** Mother Drone ******************/
diff --git a/code/game/objects/items/RCD.dm b/code/game/objects/items/RCD.dm
index 024e9e20788..33cd2b1947f 100644
--- a/code/game/objects/items/RCD.dm
+++ b/code/game/objects/items/RCD.dm
@@ -74,7 +74,7 @@ RLD
if(R.ammoamt <= 0)
qdel(R)
matter += load
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
loaded = 1
else if(istype(W, /obj/item/stack/sheet/metal) || istype(W, /obj/item/stack/sheet/glass))
loaded = loadwithsheets(W, sheetmultiplier, user)
@@ -96,7 +96,7 @@ RLD
upgrade |= rcd_up.upgrade
if((rcd_up.upgrade & RCD_UPGRADE_SILO_LINK) && !silo_mats)
silo_mats = AddComponent(/datum/component/remote_materials, "RCD", FALSE, FALSE)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
qdel(W)
else
return ..()
@@ -108,17 +108,17 @@ RLD
var/amount_to_use = min(S.amount, maxsheets)
S.use(amount_to_use)
matter += value*amount_to_use
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
to_chat(user, "
You insert [amount_to_use] [S.name] sheets into [src]. ")
return 1
to_chat(user, "
You can't insert any more [S.name] sheets into [src]!")
return 0
/obj/item/construction/proc/activate()
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
/obj/item/construction/attack_self(mob/user)
- playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
+ playsound(src.loc, 'sound/effects/pop.ogg', 50, FALSE)
if(prob(20))
spark_system.start()
@@ -478,7 +478,7 @@ RLD
if(A.rcd_act(user, src, rcd_results["mode"]))
useResource(rcd_results["cost"], user)
activate()
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
return TRUE
/obj/item/construction/rcd/Initialize()
@@ -547,7 +547,7 @@ RLD
return
else
return
- playsound(src, 'sound/effects/pop.ogg', 50, 0)
+ playsound(src, 'sound/effects/pop.ogg', 50, FALSE)
to_chat(user, "
You change RCD's mode to '[choice]'.")
/obj/item/construction/rcd/proc/target_check(atom/A, mob/user) // only returns true for stuff the device can actually work with
@@ -752,7 +752,7 @@ RLD
if(checkResource(deconcost, user))
to_chat(user, "
You start deconstructing [A]...")
user.Beam(A,icon_state="nzcrentrs_power",time=15)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, decondelay, target = A))
if(!useResource(deconcost, user))
return 0
@@ -766,8 +766,8 @@ RLD
if(checkResource(floorcost, user))
to_chat(user, "
You start building a wall light...")
user.Beam(A,icon_state="nzcrentrs_power",time=15)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
- playsound(src.loc, 'sound/effects/light_flicker.ogg', 50, 0)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
+ playsound(src.loc, 'sound/effects/light_flicker.ogg', 50, FALSE)
if(do_after(user, floordelay, target = A))
if(!istype(W))
return FALSE
@@ -781,7 +781,7 @@ RLD
candidates += C
if(!candidates.len)
to_chat(user, "
Valid target not found...")
- playsound(src.loc, 'sound/misc/compiler-failure.ogg', 30, 1)
+ playsound(src.loc, 'sound/misc/compiler-failure.ogg', 30, TRUE)
return FALSE
for(var/turf/open/O in candidates)
if(istype(O))
@@ -812,8 +812,8 @@ RLD
if(checkResource(floorcost, user))
to_chat(user, "
You start building a floor light...")
user.Beam(A,icon_state="nzcrentrs_power",time=15)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
- playsound(src.loc, 'sound/effects/light_flicker.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
+ playsound(src.loc, 'sound/effects/light_flicker.ogg', 50, TRUE)
if(do_after(user, floordelay, target = A))
if(!istype(F))
return 0
diff --git a/code/game/objects/items/RPD.dm b/code/game/objects/items/RPD.dm
index 37e18393c78..088d89b6ba1 100644
--- a/code/game/objects/items/RPD.dm
+++ b/code/game/objects/items/RPD.dm
@@ -249,8 +249,8 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
/obj/item/pipe_dispenser/suicide_act(mob/user)
user.visible_message("
[user] points the end of the RPD down [user.p_their()] throat and presses a button! It looks like [user.p_theyre()] trying to commit suicide...")
- playsound(get_turf(user), 'sound/machines/click.ogg', 50, 1)
- playsound(get_turf(user), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/machines/click.ogg', 50, TRUE)
+ playsound(get_turf(user), 'sound/items/deconstruct.ogg', 50, TRUE)
return(BRUTELOSS)
/obj/item/pipe_dispenser/ui_base_html(html)
@@ -349,7 +349,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
if(playeffect)
spark_system.start()
- playsound(get_turf(src), 'sound/effects/pop.ogg', 50, 0)
+ playsound(get_turf(src), 'sound/effects/pop.ogg', 50, FALSE)
/obj/item/pipe_dispenser/pre_attack(atom/A, mob/user)
if(!user.IsAdvancedToolUser() || istype(A, /turf/open/space/transit))
@@ -370,7 +370,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
if((mode&DESTROY_MODE) && istype(A, /obj/item/pipe) || istype(A, /obj/structure/disposalconstruct) || istype(A, /obj/structure/c_transit_tube) || istype(A, /obj/structure/c_transit_tube_pod) || istype(A, /obj/item/pipe_meter))
to_chat(user, "
You start destroying a pipe...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, destroy_speed, target = A))
activate()
qdel(A)
@@ -380,7 +380,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
if(istype(A, /obj/machinery/atmospherics/pipe) && !istype(A, /obj/machinery/atmospherics/pipe/layer_manifold))
var/obj/machinery/atmospherics/pipe/P = A
to_chat(user, "
You start painting \the [P] [paint_color]...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, paint_speed, target = A))
P.paint(GLOB.pipe_paint_colors[paint_color]) //paint the pipe
user.visible_message("
[user] paints \the [P] [paint_color].","
You paint \the [P] [paint_color].")
@@ -388,7 +388,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
var/obj/item/pipe/P = A
if(istype(P) && findtext("[P.pipe_type]", "/obj/machinery/atmospherics/pipe") && !findtext("[P.pipe_type]", "layer_manifold"))
to_chat(user, "
You start painting \the [A] [paint_color]...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, paint_speed, target = A))
A.add_atom_colour(GLOB.pipe_paint_colors[paint_color], FIXED_COLOUR_PRIORITY) //paint the pipe
user.visible_message("
[user] paints \the [A] [paint_color].","
You paint \the [A] [paint_color].")
@@ -399,7 +399,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
if(ATMOS_CATEGORY) //Making pipes
if(!can_make_pipe)
return ..()
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if (recipe.type == /datum/pipe_info/meter)
to_chat(user, "
You start building a meter...")
if(do_after(user, atmos_build_speed, target = A))
@@ -436,7 +436,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
to_chat(user, "
[src]'s error light flickers; there's something in the way!")
return
to_chat(user, "
You start building a disposals pipe...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, disposal_build_speed, target = A))
var/obj/structure/disposalconstruct/C = new (A, queued_p_type, queued_p_dir, queued_p_flipped)
@@ -461,7 +461,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
to_chat(user, "
[src]'s error light flickers; there's something in the way!")
return
to_chat(user, "
You start building a transit tube...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, transit_build_speed, target = A))
activate()
if(queued_p_type == /obj/structure/c_transit_tube_pod)
@@ -490,7 +490,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
to_chat(user, "
[src]'s error light flickers; there's something in the way!")
return
to_chat(user, "
You start building a fluid duct...")
- playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/machines/click.ogg', 50, TRUE)
if(do_after(user, plumbing_build_speed, target = A))
var/obj/machinery/duct/D
if(recipe.type == /datum/pipe_info/plumbing/multilayer)
@@ -508,7 +508,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list(
return ..()
/obj/item/pipe_dispenser/proc/activate()
- playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, TRUE)
/obj/item/pipe_dispenser/plumbing
name = "Plumberinator"
diff --git a/code/game/objects/items/RSF.dm b/code/game/objects/items/RSF.dm
index a4022f54b10..8626f2ba1d1 100644
--- a/code/game/objects/items/RSF.dm
+++ b/code/game/objects/items/RSF.dm
@@ -33,13 +33,13 @@ RSF
return
qdel(W)
matter += 10
- playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 10, TRUE)
to_chat(user, "The RSF now holds [matter]/30 fabrication-units.")
else
return ..()
/obj/item/rsf/attack_self(mob/user)
- playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
+ playsound(src.loc, 'sound/effects/pop.ogg', 50, FALSE)
switch(mode)
if(5)
mode = 1
@@ -75,7 +75,7 @@ RSF
return
var/turf/T = get_turf(A)
- playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 10, TRUE)
switch(mode)
if(1)
to_chat(user, "Dispensing Drinking Glass...")
@@ -169,7 +169,7 @@ RSF
to_chat(user, "
You do not have enough power to use [src].")
return
var/turf/T = get_turf(A)
- playsound(src.loc, 'sound/machines/click.ogg', 10, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 10, TRUE)
to_chat(user, "Fabricating Cookie..")
var/obj/item/reagent_containers/food/snacks/cookie/S = new /obj/item/reagent_containers/food/snacks/cookie(T)
if(toxin)
diff --git a/code/game/objects/items/airlock_painter.dm b/code/game/objects/items/airlock_painter.dm
index 3789fc2f7a4..f87a8724ad5 100644
--- a/code/game/objects/items/airlock_painter.dm
+++ b/code/game/objects/items/airlock_painter.dm
@@ -25,7 +25,7 @@
/obj/item/airlock_painter/proc/use_paint(mob/user)
if(can_use(user))
ink.charges--
- playsound(src.loc, 'sound/effects/spray2.ogg', 50, 1)
+ playsound(src.loc, 'sound/effects/spray2.ogg', 50, TRUE)
return 1
else
return 0
@@ -74,7 +74,7 @@
// TODO maybe add some colorful vomit?
user.visible_message("
[user] vomits out [user.p_their()] [L]!")
- playsound(user.loc, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user.loc, 'sound/effects/splat.ogg', 50, TRUE)
L.forceMove(T)
@@ -114,13 +114,13 @@
return
to_chat(user, "
You install [W] into [src].")
ink = W
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
else
return ..()
/obj/item/airlock_painter/attack_self(mob/user)
if(ink)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
ink.forceMove(user.drop_location())
user.put_in_hands(ink)
to_chat(user, "
You remove [ink] from [src].")
diff --git a/code/game/objects/items/apc_frame.dm b/code/game/objects/items/apc_frame.dm
index ed7437d2850..c94dcc597f4 100644
--- a/code/game/objects/items/apc_frame.dm
+++ b/code/game/objects/items/apc_frame.dm
@@ -32,7 +32,7 @@
/obj/item/wallframe/proc/attach(turf/on_wall, mob/user)
if(result_path)
- playsound(src.loc, 'sound/machines/click.ogg', 75, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 75, TRUE)
user.visible_message("
[user.name] attaches [src] to the wall.",
"
You attach [src] to the wall.",
"
You hear clicking.")
diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm
index 5a33b135a18..a04f9724b25 100644
--- a/code/game/objects/items/bodybag.dm
+++ b/code/game/objects/items/bodybag.dm
@@ -30,7 +30,7 @@
R.add_fingerprint(user)
qdel(src)
user.forceMove(R)
- playsound(src, 'sound/items/zip.ogg', 15, 1, -3)
+ playsound(src, 'sound/items/zip.ogg', 15, TRUE, -3)
return (OXYLOSS)
..()
diff --git a/code/game/objects/items/cardboard_cutouts.dm b/code/game/objects/items/cardboard_cutouts.dm
index 50cb52ccde2..b5978179424 100644
--- a/code/game/objects/items/cardboard_cutouts.dm
+++ b/code/game/objects/items/cardboard_cutouts.dm
@@ -23,7 +23,7 @@
if(user.a_intent == INTENT_HELP || pushed_over)
return ..()
user.visible_message("
[user] pushes over [src]!", "
You push over [src]!")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
push_over()
/obj/item/cardboard_cutout/proc/push_over()
@@ -52,9 +52,9 @@
if(I.item_flags & NOBLUDGEON)
return
if(!I.force)
- playsound(loc, 'sound/weapons/tap.ogg', get_clamped_volume(), 1, -1)
+ playsound(loc, 'sound/weapons/tap.ogg', get_clamped_volume(), TRUE, -1)
else if(I.hitsound)
- playsound(loc, I.hitsound, get_clamped_volume(), 1, -1)
+ playsound(loc, I.hitsound, get_clamped_volume(), TRUE, -1)
user.changeNext_move(CLICK_CD_MELEE)
user.do_attack_animation(src)
@@ -69,7 +69,7 @@
if(istype(P, /obj/item/projectile/bullet/reusable))
P.on_hit(src, 0)
visible_message("
[src] is hit by [P]!")
- playsound(src, 'sound/weapons/slice.ogg', 50, 1)
+ playsound(src, 'sound/weapons/slice.ogg', 50, TRUE)
if(prob(P.damage))
push_over()
return BULLET_ACT_HIT
diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm
index 6c7c40a127f..4fd9f7e5e02 100644
--- a/code/game/objects/items/cards_ids.dm
+++ b/code/game/objects/items/cards_ids.dm
@@ -102,7 +102,7 @@
/obj/item/card/emagfake/afterattack()
. = ..()
- playsound(src, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)
/obj/item/card/id
name = "identification card"
diff --git a/code/game/objects/items/cigs_lighters.dm b/code/game/objects/items/cigs_lighters.dm
index 10c506bff21..e99d34e0681 100644
--- a/code/game/objects/items/cigs_lighters.dm
+++ b/code/game/objects/items/cigs_lighters.dm
@@ -570,7 +570,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
/obj/item/lighter/suicide_act(mob/living/carbon/user)
if (lit)
user.visible_message("
[user] begins holding \the [src]'s flame up to [user.p_their()] face! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
return FIRELOSS
else
user.visible_message("
[user] begins whacking [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")
@@ -904,7 +904,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
s.start()
vapetime = 0
if(prob(5))//small chance for the vape to break and deal damage if it's emagged
- playsound(get_turf(src), 'sound/effects/pop_expl.ogg', 50, 0)
+ playsound(get_turf(src), 'sound/effects/pop_expl.ogg', 50, FALSE)
M.apply_damage(20, BURN, BODY_ZONE_HEAD)
M.Paralyze(300, 1, 0)
var/datum/effect_system/spark_spread/sp = new /datum/effect_system/spark_spread
diff --git a/code/game/objects/items/cosmetics.dm b/code/game/objects/items/cosmetics.dm
index d07e1b9432a..2ca65be52f0 100644
--- a/code/game/objects/items/cosmetics.dm
+++ b/code/game/objects/items/cosmetics.dm
@@ -120,7 +120,7 @@
H.hair_style = "Skinhead"
H.update_hair()
- playsound(loc, 'sound/items/welder2.ogg', 20, 1)
+ playsound(loc, 'sound/items/welder2.ogg', 20, TRUE)
/obj/item/razor/attack(mob/M, mob/user)
diff --git a/code/game/objects/items/courtroom.dm b/code/game/objects/items/courtroom.dm
index c0e81ed3d58..2f034d99ccd 100644
--- a/code/game/objects/items/courtroom.dm
+++ b/code/game/objects/items/courtroom.dm
@@ -15,7 +15,7 @@
/obj/item/gavelhammer/suicide_act(mob/user)
user.visible_message("
[user] has sentenced [user.p_them()]self to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/gavelblock
@@ -30,8 +30,8 @@
/obj/item/gavelblock/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/gavelhammer))
- playsound(loc, 'sound/items/gavel.ogg', 100, 1)
+ playsound(loc, 'sound/items/gavel.ogg', 100, TRUE)
user.visible_message("
[user] strikes [src] with [I].")
user.changeNext_move(CLICK_CD_MELEE)
else
- return ..()
\ No newline at end of file
+ return ..()
diff --git a/code/game/objects/items/crab17.dm b/code/game/objects/items/crab17.dm
index 73f3b897d7b..d6ed06aa07b 100644
--- a/code/game/objects/items/crab17.dm
+++ b/code/game/objects/items/crab17.dm
@@ -88,17 +88,17 @@
sleep(10)
if(QDELETED(src))
return
- playsound(src, 'sound/machines/click.ogg', 15, 1, -3)
+ playsound(src, 'sound/machines/click.ogg', 15, TRUE, -3)
cut_overlay("flaps")
sleep(10)
if(QDELETED(src))
return
- playsound(src, 'sound/machines/click.ogg', 15, 1, -3)
+ playsound(src, 'sound/machines/click.ogg', 15, TRUE, -3)
cut_overlay("hatch")
sleep(30)
if(QDELETED(src))
return
- playsound(src,'sound/machines/twobeep.ogg',50,0)
+ playsound(src,'sound/machines/twobeep.ogg',50,FALSE)
var/mutable_appearance/hologram = mutable_appearance(icon, "hologram")
hologram.pixel_y = 16
add_overlay(hologram)
@@ -130,7 +130,7 @@
sleep(5)
if(QDELETED(src))
return
- playsound(src,'sound/machines/triple_beep.ogg',50,0)
+ playsound(src,'sound/machines/triple_beep.ogg',50,FALSE)
add_overlay("text")
sleep(10)
if(QDELETED(src))
@@ -218,13 +218,13 @@
dump = new /obj/structure/checkoutmachine(null, bogdanoff)
priority_announce("The spacecoin bubble has popped! Get to the credit deposit machine at [get_area(src)] and cash out before you lose all of your funds!", sender_override = "CRAB-17 Protocol")
animate(DF, pixel_z = -8, time = 5, , easing = LINEAR_EASING)
- playsound(src, 'sound/weapons/mortar_whistle.ogg', 70, 1, 6)
+ playsound(src, 'sound/weapons/mortar_whistle.ogg', 70, TRUE, 6)
addtimer(CALLBACK(src, .proc/endLaunch), 5, TIMER_CLIENT_TIME) //Go onto the last step after a very short falling animation
/obj/effect/dumpeetTarget/proc/endLaunch()
QDEL_NULL(DF) //Delete the falling machine effect, because at this point its animation is over. We dont use temp_visual because we want to manually delete it as soon as the pod appears
- playsound(src, "explosion", 80, 1)
+ playsound(src, "explosion", 80, TRUE)
dump.forceMove(get_turf(src))
qdel(src) //The target's purpose is complete. It can rest easy now
diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm
index 7d15137cae8..15cb5e8dd07 100644
--- a/code/game/objects/items/crayons.dm
+++ b/code/game/objects/items/crayons.dm
@@ -337,7 +337,7 @@
if(pre_noise)
audible_message("
You hear spraying.")
- playsound(user.loc, 'sound/effects/spray.ogg', 5, 1, 5)
+ playsound(user.loc, 'sound/effects/spray.ogg', 5, TRUE, 5)
var/wait_time = 50
if(paint_mode == PAINT_LARGE_HORIZONTAL)
@@ -387,7 +387,7 @@
if(post_noise)
audible_message("
You hear spraying.")
- playsound(user.loc, 'sound/effects/spray.ogg', 5, 1, 5)
+ playsound(user.loc, 'sound/effects/spray.ogg', 5, TRUE, 5)
var/fraction = min(1, . / reagents.maximum_volume)
if(affected_turfs.len)
@@ -633,7 +633,7 @@
if(iscarbon(target))
if(pre_noise || post_noise)
- playsound(user.loc, 'sound/effects/spray.ogg', 25, 1, 5)
+ playsound(user.loc, 'sound/effects/spray.ogg', 25, TRUE, 5)
var/mob/living/carbon/C = target
user.visible_message("
[user] sprays [src] into the face of [target]!")
@@ -671,7 +671,7 @@
reagents.trans_to(target, ., volume_multiplier, transfered_by = user)
if(pre_noise || post_noise)
- playsound(user.loc, 'sound/effects/spray.ogg', 5, 1, 5)
+ playsound(user.loc, 'sound/effects/spray.ogg', 5, TRUE, 5)
user.visible_message("
[user] coats [target] with spray paint!", "
You coat [target] with spray paint.")
return
diff --git a/code/game/objects/items/defib.dm b/code/game/objects/items/defib.dm
index 6d4e67cf427..b986d8ca20f 100644
--- a/code/game/objects/items/defib.dm
+++ b/code/game/objects/items/defib.dm
@@ -161,11 +161,11 @@
if(safety)
safety = FALSE
visible_message("
[src] beeps: Safety protocols disabled!")
- playsound(src, 'sound/machines/defib_saftyOff.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_saftyOff.ogg', 50, FALSE)
else
safety = TRUE
visible_message("
[src] beeps: Safety protocols enabled!")
- playsound(src, 'sound/machines/defib_saftyOn.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_saftyOn.ogg', 50, FALSE)
update_icon()
/obj/item/defibrillator/proc/toggle_paddles()
@@ -237,10 +237,10 @@
if(cell)
if(cell.charge >= paddles.revivecost)
visible_message("
[src] beeps: Unit ready.")
- playsound(src, 'sound/machines/defib_ready.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_ready.ogg', 50, FALSE)
else
visible_message("
[src] beeps: Charge depleted.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
paddles.cooldown = FALSE
paddles.update_icon()
update_icon()
@@ -344,7 +344,7 @@
sleep(time)
var/turf/T = get_turf(src)
T.audible_message("
[src] beeps: Unit is recharged.")
- playsound(src, 'sound/machines/defib_ready.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_ready.ogg', 50, FALSE)
cooldown = FALSE
update_icon()
@@ -369,7 +369,7 @@
user.visible_message("
[user] is putting the live paddles on [user.p_their()] chest! It looks like [user.p_theyre()] trying to commit suicide!")
if(req_defib)
defib.deductcharge(revivecost)
- playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1)
+ playsound(src, 'sound/machines/defib_zap.ogg', 50, TRUE, -1)
return (OXYLOSS)
/obj/item/twohanded/shockpaddles/dropped(mob/user)
@@ -407,7 +407,7 @@
return
if(req_defib && !defib.powered)
user.visible_message("
[defib] beeps: Unit is unpowered.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
return
if(!wielded)
if(iscyborg(user))
@@ -484,7 +484,7 @@
M.adjustStaminaLoss(50)
M.Paralyze(100)
M.updatehealth() //forces health update before next life tick //isn't this done by adjustStaminaLoss anyway?
- playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1)
+ playsound(src, 'sound/machines/defib_zap.ogg', 50, TRUE, -1)
M.emote("gasp")
log_combat(user, M, "stunned", src)
if(req_defib)
@@ -510,7 +510,7 @@
user.visible_message("
[user] places [src] on [H]'s chest.",
"
You place [src] on [H]'s chest and begin to charge them.")
var/turf/T = get_turf(defib)
- playsound(src, 'sound/machines/defib_charge.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_charge.ogg', 50, FALSE)
if(req_defib)
T.audible_message("
\The [defib] lets out an urgent beep and lets out a steadily rising hum...")
else
@@ -522,13 +522,13 @@
return
if(H && H.stat == DEAD)
to_chat(user, "
[H] is dead.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
busy = FALSE
update_icon()
return
user.visible_message("
[user] shocks [H] with \the [src]!", "
You shock [H] with \the [src]!")
- playsound(src, 'sound/machines/defib_zap.ogg', 100, 1, -1)
- playsound(src, 'sound/weapons/egloves.ogg', 100, 1, -1)
+ playsound(src, 'sound/machines/defib_zap.ogg', 100, TRUE, -1)
+ playsound(src, 'sound/weapons/egloves.ogg', 100, TRUE, -1)
H.emote("scream")
shock_touching(45, H)
if(H.can_heartattack() && !H.undergoing_cardiac_arrest())
@@ -558,7 +558,7 @@
update_icon()
if(do_after(user, 30, target = H)) //beginning to place the paddles on patient's chest to allow some time for people to move away to stop the process
user.visible_message("
[user] places [src] on [H]'s chest.", "
You place [src] on [H]'s chest.")
- playsound(src, 'sound/machines/defib_charge.ogg', 75, 0)
+ playsound(src, 'sound/machines/defib_charge.ogg', 75, FALSE)
var/total_burn = 0
var/total_brute = 0
var/tplus = world.time - H.timeofdeath //length of time spent dead
@@ -568,14 +568,14 @@
if(istype(carried_item, /obj/item/clothing/suit/space))
if((!combat && !req_defib) || (req_defib && !defib.combat))
user.audible_message("
[req_defib ? "[defib]" : "[src]"] buzzes: Patient's chest is obscured. Operation aborted.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
busy = FALSE
update_icon()
return
if(H.stat == DEAD)
H.visible_message("
[H]'s body convulses a bit.")
- playsound(src, "bodyfall", 50, 1)
- playsound(src, 'sound/machines/defib_zap.ogg', 75, 1, -1)
+ playsound(src, "bodyfall", 50, TRUE)
+ playsound(src, 'sound/machines/defib_zap.ogg', 75, TRUE, -1)
total_brute = H.getBruteLoss()
total_burn = H.getFireLoss()
shock_touching(30, H)
@@ -609,7 +609,7 @@
if(failed)
user.visible_message(failed)
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
else
//If the body has been fixed so that they would not be in crit when defibbed, give them oxyloss to put them back into crit
if (H.health > HALFWAYCRITDEATH)
@@ -623,7 +623,7 @@
H.adjustBruteLoss((mobhealth - HALFWAYCRITDEATH) * (total_brute / overall_damage), 0)
H.updatehealth() // Previous "adjust" procs don't update health, so we do it manually.
user.visible_message("
[req_defib ? "[defib]" : "[src]"] pings: Resuscitation successful.")
- playsound(src, 'sound/machines/defib_success.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_success.ogg', 50, FALSE)
H.set_heartattack(FALSE)
H.revive()
H.emote("gasp")
@@ -640,9 +640,9 @@
recharge(60)
else if (!H.getorgan(/obj/item/organ/heart))
user.visible_message("
[req_defib ? "[defib]" : "[src]"] buzzes: Patient's heart is missing. Operation aborted.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
else if(H.undergoing_cardiac_arrest())
- playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1)
+ playsound(src, 'sound/machines/defib_zap.ogg', 50, TRUE, -1)
if(!(heart.organ_flags & ORGAN_FAILING))
H.set_heartattack(FALSE)
user.visible_message("
[req_defib ? "[defib]" : "[src]"] pings: Patient's heart is now beating again.")
@@ -651,7 +651,7 @@
else
user.visible_message("
[req_defib ? "[defib]" : "[src]"] buzzes: Patient is not in a valid state. Operation aborted.")
- playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(src, 'sound/machines/defib_failed.ogg', 50, FALSE)
busy = FALSE
update_icon()
diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm
index 72df8cc0f22..8fea890975c 100644
--- a/code/game/objects/items/devices/PDA/PDA.dm
+++ b/code/game/objects/items/devices/PDA/PDA.dm
@@ -472,11 +472,11 @@ GLOBAL_LIST_EMPTY(PDAs)
scanmode = PDA_SCANNER_HALOGEN
if("Honk")
if ( !(last_noise && world.time < last_noise + 20) )
- playsound(src, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)
last_noise = world.time
if("Trombone")
if ( !(last_noise && world.time < last_noise + 20) )
- playsound(src, 'sound/misc/sadtrombone.ogg', 50, 1)
+ playsound(src, 'sound/misc/sadtrombone.ogg', 50, TRUE)
last_noise = world.time
if("Gas Scan")
if(scanmode == PDA_SCANNER_GAS)
@@ -574,7 +574,7 @@ GLOBAL_LIST_EMPTY(PDAs)
if ((honkamt > 0) && (prob(60)))//For clown virus.
honkamt--
- playsound(src, 'sound/items/bikehorn.ogg', 30, 1)
+ playsound(src, 'sound/items/bikehorn.ogg', 30, TRUE)
if(U.machine == src && href_list["skiprefresh"]!="1")//Final safety.
attack_self(U)//It auto-closes the menu prior if the user is not in range and so on.
@@ -666,7 +666,7 @@ GLOBAL_LIST_EMPTY(PDAs)
tnote += "
← From [signal.data["name"]] ([signal.data["job"]]):[signal.format_message()]
"
if (!silent)
- playsound(src, 'sound/machines/twobeep_high.ogg', 50, 1)
+ playsound(src, 'sound/machines/twobeep_high.ogg', 50, TRUE)
audible_message("[icon2html(src, hearers(src))] *[ttone]*", null, 3)
//Search for holder of the PDA.
var/mob/living/L = null
diff --git a/code/game/objects/items/devices/PDA/PDA_types.dm b/code/game/objects/items/devices/PDA/PDA_types.dm
index 299b07f08ba..2b3d8b94c33 100644
--- a/code/game/objects/items/devices/PDA/PDA_types.dm
+++ b/code/game/objects/items/devices/PDA/PDA_types.dm
@@ -26,7 +26,7 @@
/obj/item/pda/ai/attack_self(mob/user)
if ((honkamt > 0) && (prob(60)))//For clown virus.
honkamt--
- playsound(loc, 'sound/items/bikehorn.ogg', 30, 1)
+ playsound(loc, 'sound/items/bikehorn.ogg', 30, TRUE)
return
/obj/item/pda/ai/pai
diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm
index dc17b71de49..8564708b23d 100644
--- a/code/game/objects/items/devices/chameleonproj.dm
+++ b/code/game/objects/items/devices/chameleonproj.dm
@@ -52,7 +52,7 @@
if(iseffect(target))
if(!(istype(target, /obj/effect/decal))) //be a footprint
return
- playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6)
+ playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, TRUE, -6)
to_chat(user, "
Scanned [target].")
var/obj/temp = new/obj()
temp.appearance = target.appearance
@@ -70,13 +70,13 @@
return
if(active_dummy)
eject_all()
- playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6)
+ playsound(get_turf(src), 'sound/effects/pop.ogg', 100, TRUE, -6)
qdel(active_dummy)
active_dummy = null
to_chat(user, "
You deactivate \the [src].")
new /obj/effect/temp_visual/emp/pulse(get_turf(src))
else
- playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6)
+ playsound(get_turf(src), 'sound/effects/pop.ogg', 100, TRUE, -6)
var/obj/effect/dummy/chameleon/C = new/obj/effect/dummy/chameleon(user.drop_location())
C.activate(user, saved_appearance, src)
to_chat(user, "
You activate \the [src].")
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index 993936c1ce7..7e4489f72df 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -190,7 +190,7 @@
/obj/effect/temp_visual/medical_holosign/Initialize(mapload, creator)
. = ..()
- playsound(loc, 'sound/machines/ping.ogg', 50, 0) //make some noise!
+ playsound(loc, 'sound/machines/ping.ogg', 50, FALSE) //make some noise!
if(creator)
visible_message("
[creator] created a medical hologram!")
diff --git a/code/game/objects/items/devices/forcefieldprojector.dm b/code/game/objects/items/devices/forcefieldprojector.dm
index c5a1d04fdf8..bd06b2b5ead 100644
--- a/code/game/objects/items/devices/forcefieldprojector.dm
+++ b/code/game/objects/items/devices/forcefieldprojector.dm
@@ -39,7 +39,7 @@
to_chat(user, "
[src] cannot sustain any more forcefields!")
return
- playsound(src,'sound/weapons/resonator_fire.ogg',50,1)
+ playsound(src,'sound/weapons/resonator_fire.ogg',50,TRUE)
user.visible_message("
[user] projects a forcefield!","
You project a forcefield.")
var/obj/structure/projected_forcefield/F = new(T, src)
current_fields += F
@@ -93,7 +93,7 @@
/obj/structure/projected_forcefield/Destroy()
visible_message("
[src] flickers and disappears!")
- playsound(src,'sound/weapons/resonator_blast.ogg',25,1)
+ playsound(src,'sound/weapons/resonator_blast.ogg',25,TRUE)
generator.current_fields -= src
generator = null
return ..()
@@ -104,7 +104,7 @@
return !density
/obj/structure/projected_forcefield/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
- playsound(loc, 'sound/weapons/egloves.ogg', 80, 1)
+ playsound(loc, 'sound/weapons/egloves.ogg', 80, TRUE)
/obj/structure/projected_forcefield/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir)
if(sound_effect)
diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm
index cbfc50a8970..23dd64437cd 100644
--- a/code/game/objects/items/devices/lightreplacer.dm
+++ b/code/game/objects/items/devices/lightreplacer.dm
@@ -159,7 +159,7 @@
return "It has [uses] light\s remaining (plus [bulb_shards] fragment\s)."
/obj/item/lightreplacer/proc/Use(mob/user)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
AddUses(-1)
return 1
@@ -175,7 +175,7 @@
bulb_shards = bulb_shards % shards_required
if(new_bulbs != 0)
to_chat(user, "
\The [src] has fabricated a new bulb from the broken glass it has stored. It now has [uses] uses.")
- playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/ding.ogg', 50, TRUE)
return new_bulbs
/obj/item/lightreplacer/proc/Charge(var/mob/user)
@@ -220,7 +220,7 @@
/obj/item/lightreplacer/proc/Emag()
obj_flags ^= EMAGGED
- playsound(src.loc, "sparks", 100, 1)
+ playsound(src.loc, "sparks", 100, TRUE)
if(obj_flags & EMAGGED)
name = "shortcircuited [initial(name)]"
else
diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm
index 0bdb42bd8bb..a3364131e88 100644
--- a/code/game/objects/items/devices/megaphone.dm
+++ b/code/game/objects/items/devices/megaphone.dm
@@ -33,7 +33,7 @@
if(spamcheck > world.time)
to_chat(user, "
\The [src] needs to recharge!")
else
- playsound(loc, 'sound/items/megaphone.ogg', 100, 0, 1)
+ playsound(loc, 'sound/items/megaphone.ogg', 100, FALSE, TRUE)
spamcheck = world.time + 50
speech_args[SPEECH_SPANS] |= voicespan
diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm
index a5977c323dd..d15e7e90244 100644
--- a/code/game/objects/items/devices/paicard.dm
+++ b/code/game/objects/items/devices/paicard.dm
@@ -127,7 +127,7 @@
src.pai = personality
src.add_overlay("pai-null")
- playsound(loc, 'sound/effects/pai_boot.ogg', 50, 1, -1)
+ playsound(loc, 'sound/effects/pai_boot.ogg', 50, TRUE, -1)
audible_message("\The [src] plays a cheerful startup noise!")
/obj/item/paicard/proc/setEmotion(emotion)
diff --git a/code/game/objects/items/devices/pipe_painter.dm b/code/game/objects/items/devices/pipe_painter.dm
index 7938603ee55..cf978effdef 100644
--- a/code/game/objects/items/devices/pipe_painter.dm
+++ b/code/game/objects/items/devices/pipe_painter.dm
@@ -19,7 +19,7 @@
var/obj/machinery/atmospherics/pipe/P = A
if(P.paint(GLOB.pipe_paint_colors[paint_color]))
- playsound(src, 'sound/machines/click.ogg', 50, 1)
+ playsound(src, 'sound/machines/click.ogg', 50, TRUE)
user.visible_message("
[user] paints \the [P] [paint_color].","
You paint \the [P] [paint_color].")
/obj/item/pipe_painter/attack_self(mob/user)
diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm
index e3086373920..412b3c09524 100644
--- a/code/game/objects/items/devices/powersink.dm
+++ b/code/game/objects/items/devices/powersink.dm
@@ -152,7 +152,7 @@
if (!admins_warned)
admins_warned = TRUE
message_admins("Power sink at ([x],[y],[z] -
JMP) is 95% full. Explosion imminent.")
- playsound(src, 'sound/effects/screech.ogg', 100, 1, 1)
+ playsound(src, 'sound/effects/screech.ogg', 100, TRUE, TRUE)
if(power_drained >= max_power)
STOP_PROCESSING(SSobj, src)
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index b047eeb173f..c0949f4c60a 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -76,7 +76,7 @@
I.play_tool_sound(src)
if(I.use_tool(src, user, 80))
user.visible_message("
[user] unsecures [src]!", "
You detach [src] from the wall.")
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
new/obj/item/wallframe/intercom(get_turf(src))
qdel(src)
return
diff --git a/code/game/objects/items/devices/swapper.dm b/code/game/objects/items/devices/swapper.dm
index 67501e527b6..ac5e778533e 100644
--- a/code/game/objects/items/devices/swapper.dm
+++ b/code/game/objects/items/devices/swapper.dm
@@ -51,9 +51,9 @@
if(QDELETED(linked_swapper))
to_chat(user, "
[src] is not linked with another swapper.")
return
- playsound(src, 'sound/weapons/flash.ogg', 25, 1)
+ playsound(src, 'sound/weapons/flash.ogg', 25, TRUE)
to_chat(user, "
You activate [src].")
- playsound(linked_swapper, 'sound/weapons/flash.ogg', 25, 1)
+ playsound(linked_swapper, 'sound/weapons/flash.ogg', 25, TRUE)
if(ismob(linked_swapper.loc))
var/mob/holder = linked_swapper.loc
to_chat(holder, "
[linked_swapper] starts buzzing.")
diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm
index 768d4220a31..7fded659ea7 100644
--- a/code/game/objects/items/devices/traitordevices.dm
+++ b/code/game/objects/items/devices/traitordevices.dm
@@ -50,7 +50,7 @@ effective or pretty fucking useless.
else
to_chat(M, "
You feel a sudden, electric jolt travel through your head.")
- playsound(src.loc, 'sound/misc/interference.ogg', 50, 1)
+ playsound(src.loc, 'sound/misc/interference.ogg', 50, TRUE)
to_chat(user, "
You trigger [src].")
times_used += 1
if(times_used >= max_uses)
diff --git a/code/game/objects/items/extinguisher.dm b/code/game/objects/items/extinguisher.dm
index ab0a8db0237..aa1b18fe63f 100644
--- a/code/game/objects/items/extinguisher.dm
+++ b/code/game/objects/items/extinguisher.dm
@@ -110,7 +110,7 @@
var/transferred = W.reagents.trans_to(src, max_water, transfered_by = user)
if(transferred > 0)
to_chat(user, "
\The [src] has been refilled by [transferred] units.")
- playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6)
+ playsound(src.loc, 'sound/effects/refill.ogg', 50, TRUE, -6)
for(var/datum/reagent/water/R in reagents.reagent_list)
R.cooling_temperature = cooling_power
else
@@ -142,7 +142,7 @@
src.last_use = world.time
- playsound(src.loc, 'sound/effects/extinguish.ogg', 75, 1, -3)
+ playsound(src.loc, 'sound/effects/extinguish.ogg', 75, TRUE, -3)
var/direction = get_dir(src,target)
diff --git a/code/game/objects/items/granters.dm b/code/game/objects/items/granters.dm
index 007ab867c4d..85aae3aed92 100644
--- a/code/game/objects/items/granters.dm
+++ b/code/game/objects/items/granters.dm
@@ -11,7 +11,7 @@
var/used = FALSE //only really matters if oneuse but it might be nice to know if someone's used it for admin investigations perhaps
/obj/item/book/granter/proc/turn_page(mob/user)
- playsound(user, pick('sound/effects/pageturn1.ogg','sound/effects/pageturn2.ogg','sound/effects/pageturn3.ogg'), 30, 1)
+ playsound(user, pick('sound/effects/pageturn1.ogg','sound/effects/pageturn2.ogg','sound/effects/pageturn3.ogg'), 30, TRUE)
if(do_after(user,50, user))
if(remarks.len)
to_chat(user, "
[pick(remarks)]")
@@ -352,7 +352,7 @@
/obj/item/book/granter/martial/cqc/recoil(mob/living/carbon/user)
to_chat(user, "
[src] explodes!")
- playsound(src,'sound/effects/explosion1.ogg',40,1)
+ playsound(src,'sound/effects/explosion1.ogg',40,TRUE)
user.flash_act(1, 1)
user.adjustBruteLoss(6)
user.adjustFireLoss(6)
diff --git a/code/game/objects/items/grenades/chem_grenade.dm b/code/game/objects/items/grenades/chem_grenade.dm
index 767985de606..fa7d6641631 100644
--- a/code/game/objects/items/grenades/chem_grenade.dm
+++ b/code/game/objects/items/grenades/chem_grenade.dm
@@ -166,7 +166,7 @@
to_chat(user, "
You prime [src], activating its proximity sensor.")
else
to_chat(user, "
You prime [src]! [DisplayTimeText(det_time)]!")
- playsound(src, 'sound/weapons/armbomb.ogg', volume, 1)
+ playsound(src, 'sound/weapons/armbomb.ogg', volume, TRUE)
icon_state = initial(icon_state) + "_active"
if(landminemode)
landminemode.activate()
@@ -185,7 +185,7 @@
var/turf/detonation_turf = get_turf(src)
if(!chem_splash(detonation_turf, affected_area, reactants, ignition_temp, threatscale) && !no_splash)
- playsound(src, 'sound/items/screwdriver2.ogg', 50, 1)
+ playsound(src, 'sound/items/screwdriver2.ogg', 50, TRUE)
if(beakers.len)
for(var/obj/O in beakers)
O.forceMove(drop_location())
diff --git a/code/game/objects/items/grenades/clusterbuster.dm b/code/game/objects/items/grenades/clusterbuster.dm
index 920640145d7..ed61b41c397 100644
--- a/code/game/objects/items/grenades/clusterbuster.dm
+++ b/code/game/objects/items/grenades/clusterbuster.dm
@@ -28,7 +28,7 @@
new /obj/item/grenade/clusterbuster/segment(drop_location(), src)//Creates 'segments' that launches a few more payloads
new payload_spawner(drop_location(), payload, numspawned)//Launches payload
- playsound(src, prime_sound, 75, 1, -3)
+ playsound(src, prime_sound, 75, TRUE, -3)
qdel(src)
//////////////////////
@@ -61,7 +61,7 @@
/obj/item/grenade/clusterbuster/segment/prime()
new payload_spawner(drop_location(), payload, rand(min_spawned,max_spawned))
- playsound(src, prime_sound, 75, 1, -3)
+ playsound(src, prime_sound, 75, TRUE, -3)
qdel(src)
//////////////////////////////////
diff --git a/code/game/objects/items/grenades/grenade.dm b/code/game/objects/items/grenades/grenade.dm
index 9497fbe4564..5211e43d9ab 100644
--- a/code/game/objects/items/grenades/grenade.dm
+++ b/code/game/objects/items/grenades/grenade.dm
@@ -20,7 +20,7 @@
/obj/item/grenade/suicide_act(mob/living/carbon/user)
user.visible_message("
[user] primes [src], then eats it! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/items/eatfood.ogg', 50, 1)
+ playsound(src, 'sound/items/eatfood.ogg', 50, TRUE)
preprime(user, det_time)
user.transferItemToLoc(src, user, TRUE)//>eat a grenade set to 5 seconds >rush captain
sleep(det_time)//so you dont die instantly
@@ -70,7 +70,7 @@
add_fingerprint(user)
if(msg)
to_chat(user, "
You prime [src]! [capitalize(DisplayTimeText(det_time))]!")
- playsound(src, 'sound/weapons/armbomb.ogg', volume, 1)
+ playsound(src, 'sound/weapons/armbomb.ogg', volume, TRUE)
active = TRUE
icon_state = initial(icon_state) + "_active"
addtimer(CALLBACK(src, .proc/prime), isnull(delayoverride)? det_time : delayoverride)
diff --git a/code/game/objects/items/grenades/smokebomb.dm b/code/game/objects/items/grenades/smokebomb.dm
index 5e970140e9d..3bcfee09384 100644
--- a/code/game/objects/items/grenades/smokebomb.dm
+++ b/code/game/objects/items/grenades/smokebomb.dm
@@ -21,7 +21,7 @@
///Here we generate some smoke and also damage blobs??? for some reason. Honestly not sure why we do that.
/obj/item/grenade/smokebomb/prime()
update_mob()
- playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/smoke.ogg', 50, TRUE, -3)
var/datum/effect_system/smoke_spread/bad/smoke = new
smoke.set_up(4, src)
smoke.start()
diff --git a/code/game/objects/items/grenades/spawnergrenade.dm b/code/game/objects/items/grenades/spawnergrenade.dm
index 9ab4f91af40..dcefb5c5e18 100644
--- a/code/game/objects/items/grenades/spawnergrenade.dm
+++ b/code/game/objects/items/grenades/spawnergrenade.dm
@@ -12,7 +12,7 @@
if(spawner_type && deliveryamt)
// Make a quick flash
var/turf/T = get_turf(src)
- playsound(T, 'sound/effects/phasein.ogg', 100, 1)
+ playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
for(var/mob/living/carbon/C in viewers(T, null))
C.flash_act()
diff --git a/code/game/objects/items/grenades/syndieminibomb.dm b/code/game/objects/items/grenades/syndieminibomb.dm
index d457224e958..f7c68316741 100644
--- a/code/game/objects/items/grenades/syndieminibomb.dm
+++ b/code/game/objects/items/grenades/syndieminibomb.dm
@@ -38,7 +38,7 @@
/obj/item/grenade/gluon/prime()
update_mob()
- playsound(loc, 'sound/effects/empulse.ogg', 50, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 50, TRUE)
radiation_pulse(src, rad_damage)
for(var/turf/T in view(freeze_range,loc))
if(isfloorturf(T))
diff --git a/code/game/objects/items/handcuffs.dm b/code/game/objects/items/handcuffs.dm
index 88609f33a40..628546211fc 100644
--- a/code/game/objects/items/handcuffs.dm
+++ b/code/game/objects/items/handcuffs.dm
@@ -60,7 +60,7 @@
C.visible_message("
[user] is trying to put [src.name] on [C]!", \
"
[user] is trying to put [src.name] on you!")
- playsound(loc, cuffsound, 30, 1, -2)
+ playsound(loc, cuffsound, 30, TRUE, -2)
if(do_mob(user, C, 30) && (C.get_num_arms(FALSE) >= 2 || C.get_arm_ignore()))
if(iscyborg(user))
apply_cuffs(C, user, TRUE)
@@ -234,7 +234,7 @@
/obj/item/restraints/legcuffs/beartrap/suicide_act(mob/user)
user.visible_message("
[user] is sticking [user.p_their()] head in the [src.name]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/bladeslice.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/restraints/legcuffs/beartrap/attack_self(mob/user)
@@ -321,7 +321,7 @@
/obj/item/restraints/legcuffs/bola/throw_at(atom/target, range, speed, mob/thrower, spin=1, diagonals_first = 0, datum/callback/callback)
if(!..())
return
- playsound(src.loc,'sound/weapons/bolathrow.ogg', 75, 1)
+ playsound(src.loc,'sound/weapons/bolathrow.ogg', 75, TRUE)
/obj/item/restraints/legcuffs/bola/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(..() || !iscarbon(hit_atom))//if it gets caught or the target can't be cuffed,
diff --git a/code/game/objects/items/his_grace.dm b/code/game/objects/items/his_grace.dm
index 01d8262d73b..57339451237 100644
--- a/code/game/objects/items/his_grace.dm
+++ b/code/game/objects/items/his_grace.dm
@@ -93,7 +93,7 @@
REMOVE_TRAIT(src, TRAIT_NODROP, HIS_GRACE_TRAIT)
master.Paralyze(60)
master.adjustBruteLoss(master.maxHealth)
- playsound(master, 'sound/effects/splat.ogg', 100, 0)
+ playsound(master, 'sound/effects/splat.ogg', 100, FALSE)
else
master.apply_status_effect(STATUS_EFFECT_HISGRACE)
return
@@ -114,8 +114,8 @@
if(!L.stat)
L.visible_message("
[src] lunges at [L]!", "
[src] lunges at you!")
do_attack_animation(L, null, src)
- playsound(L, 'sound/weapons/smash.ogg', 50, 1)
- playsound(L, 'sound/misc/desceration-01.ogg', 50, 1)
+ playsound(L, 'sound/weapons/smash.ogg', 50, TRUE)
+ playsound(L, 'sound/misc/desceration-01.ogg', 50, TRUE)
L.adjustBruteLoss(force)
adjust_bloodthirst(-5) //Don't stop attacking they're right there!
else
@@ -160,7 +160,7 @@
return
var/turf/T = get_turf(src)
T.visible_message("
[src] slowly stops rattling and falls still, His latch snapping shut.")
- playsound(loc, 'sound/weapons/batonextend.ogg', 100, 1)
+ playsound(loc, 'sound/weapons/batonextend.ogg', 100, TRUE)
name = initial(name)
desc = initial(desc)
icon_state = initial(icon_state)
@@ -177,8 +177,8 @@
var/victims = 0
meal.visible_message("
[src] swings open and devours [meal]!", "
[src] consumes you!")
meal.adjustBruteLoss(200)
- playsound(meal, 'sound/misc/desceration-02.ogg', 75, 1)
- playsound(src, 'sound/items/eatfood.ogg', 100, 1)
+ playsound(meal, 'sound/misc/desceration-02.ogg', 75, TRUE)
+ playsound(src, 'sound/items/eatfood.ogg', 100, TRUE)
meal.forceMove(src)
force_bonus += HIS_GRACE_FORCE_BONUS
prev_bloodthirst = bloodthirst
diff --git a/code/game/objects/items/holosign_creator.dm b/code/game/objects/items/holosign_creator.dm
index abb1102992b..1eabb735f12 100644
--- a/code/game/objects/items/holosign_creator.dm
+++ b/code/game/objects/items/holosign_creator.dm
@@ -34,7 +34,7 @@
to_chat(user, "
[src] is busy creating a hologram.")
return
if(signs.len < max_signs)
- playsound(src.loc, 'sound/machines/click.ogg', 20, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 20, TRUE)
if(creation_time)
holocreator_busy = TRUE
if(!do_after(user, creation_time, target = target))
diff --git a/code/game/objects/items/holy_weapons.dm b/code/game/objects/items/holy_weapons.dm
index cc11651fd0e..784cec570e0 100644
--- a/code/game/objects/items/holy_weapons.dm
+++ b/code/game/objects/items/holy_weapons.dm
@@ -28,7 +28,7 @@
if(user.mind && user.mind.isholy)
return ..()
else
- playsound(src, 'sound/machines/buzz-sigh.ogg', 40, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 40, TRUE)
return FALSE
/obj/item/choice_beacon/holy/generate_display_names()
@@ -44,7 +44,7 @@
/obj/item/choice_beacon/holy/spawn_option(obj/choice,mob/living/M)
if(!GLOB.holy_armor_type)
..()
- playsound(src, 'sound/effects/pray_chaplain.ogg', 40, 1)
+ playsound(src, 'sound/effects/pray_chaplain.ogg', 40, TRUE)
SSblackbox.record_feedback("tally", "chaplain_armor", 1, "[choice]")
GLOB.holy_armor_type = choice
else
diff --git a/code/game/objects/items/implants/implant_clown.dm b/code/game/objects/items/implants/implant_clown.dm
index ae1fef109dd..ef6fcdef0f1 100644
--- a/code/game/objects/items/implants/implant_clown.dm
+++ b/code/game/objects/items/implants/implant_clown.dm
@@ -11,7 +11,7 @@
/obj/item/implant/sad_trombone/trigger(emote, mob/source)
if(emote == "deathgasp")
- playsound(loc, 'sound/misc/sadtrombone.ogg', 50, 0)
+ playsound(loc, 'sound/misc/sadtrombone.ogg', 50, FALSE)
/obj/item/implanter/sad_trombone
name = "implanter (sad trombone)"
diff --git a/code/game/objects/items/implants/implant_explosive.dm b/code/game/objects/items/implants/implant_explosive.dm
index d2748567979..0cb78a36f34 100644
--- a/code/game/objects/items/implants/implant_explosive.dm
+++ b/code/game/objects/items/implants/implant_explosive.dm
@@ -67,16 +67,16 @@
/obj/item/implant/explosive/proc/timed_explosion()
imp_in.visible_message("
[imp_in] starts beeping ominously!")
- playsound(loc, 'sound/items/timer.ogg', 30, 0)
+ playsound(loc, 'sound/items/timer.ogg', 30, FALSE)
sleep(delay*0.25)
if(imp_in && !imp_in.stat)
imp_in.visible_message("
[imp_in] doubles over in pain!")
imp_in.Paralyze(140)
- playsound(loc, 'sound/items/timer.ogg', 30, 0)
+ playsound(loc, 'sound/items/timer.ogg', 30, FALSE)
sleep(delay*0.25)
- playsound(loc, 'sound/items/timer.ogg', 30, 0)
+ playsound(loc, 'sound/items/timer.ogg', 30, FALSE)
sleep(delay*0.25)
- playsound(loc, 'sound/items/timer.ogg', 30, 0)
+ playsound(loc, 'sound/items/timer.ogg', 30, FALSE)
sleep(delay*0.25)
explosion(src,heavy,medium,weak,weak, flame_range = weak)
if(imp_in)
@@ -121,4 +121,4 @@
/obj/item/implanter/explosive_macro
name = "implanter (macrobomb)"
- imp_type = /obj/item/implant/explosive/macro
\ No newline at end of file
+ imp_type = /obj/item/implant/explosive/macro
diff --git a/code/game/objects/items/implants/implantchair.dm b/code/game/objects/items/implants/implantchair.dm
index dcf77a55ea8..0250018944f 100644
--- a/code/game/objects/items/implants/implantchair.dm
+++ b/code/game/objects/items/implants/implantchair.dm
@@ -82,7 +82,7 @@
ready = FALSE
addtimer(CALLBACK(src,"set_ready"),injection_cooldown)
else
- playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 25, 1)
+ playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 25, TRUE)
update_icon()
/obj/machinery/implantchair/proc/implant_action(mob/living/M)
diff --git a/code/game/objects/items/kitchen.dm b/code/game/objects/items/kitchen.dm
index d756da170bd..e8f0c06dea4 100644
--- a/code/game/objects/items/kitchen.dm
+++ b/code/game/objects/items/kitchen.dm
@@ -31,7 +31,7 @@
/obj/item/kitchen/fork/suicide_act(mob/living/carbon/user)
user.visible_message("
[user] stabs \the [src] into [user.p_their()] chest! It looks like [user.p_theyre()] trying to take a bite out of [user.p_them()]self!")
- playsound(src, 'sound/items/eatfood.ogg', 50, 1)
+ playsound(src, 'sound/items/eatfood.ogg', 50, TRUE)
return BRUTELOSS
/obj/item/kitchen/fork/attack(mob/living/carbon/M, mob/living/carbon/user)
diff --git a/code/game/objects/items/latexballoon.dm b/code/game/objects/items/latexballoon.dm
index eb8359fc358..7bd0ebfc76a 100644
--- a/code/game/objects/items/latexballoon.dm
+++ b/code/game/objects/items/latexballoon.dm
@@ -23,7 +23,7 @@
/obj/item/latexballon/proc/burst()
if (!air_contents || icon_state != "latexballon_blow")
return
- playsound(src, 'sound/weapons/gunshot.ogg', 100, 1)
+ playsound(src, 'sound/weapons/gunshot.ogg', 100, TRUE)
icon_state = "latexballon_bursted"
item_state = "lgloves"
if(isliving(loc))
diff --git a/code/game/objects/items/manuals.dm b/code/game/objects/items/manuals.dm
index 94770a82b86..d5e2731a1d2 100644
--- a/code/game/objects/items/manuals.dm
+++ b/code/game/objects/items/manuals.dm
@@ -426,7 +426,7 @@
/obj/item/book/manual/wiki/toxins/suicide_act(mob/user)
var/mob/living/carbon/human/H = user
user.visible_message("
[user] starts dancing to the Rhumba Beat! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/effects/spray.ogg', 10, 1, -3)
+ playsound(loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
if (!QDELETED(H))
H.emote("spin")
sleep(20)
diff --git a/code/game/objects/items/melee/energy.dm b/code/game/objects/items/melee/energy.dm
index ca55a6c34f2..1ff57cdf762 100644
--- a/code/game/objects/items/melee/energy.dm
+++ b/code/game/objects/items/melee/energy.dm
@@ -58,7 +58,7 @@
if(C.wear_mask)
in_mouth = ", barely missing [C.p_their()] nose"
. = "
[user] swings [user.p_their()] [name][in_mouth]. [user.p_they(TRUE)] light[user.p_s()] [user.p_their()] [A.name] in the process."
- playsound(loc, hitsound, get_clamped_volume(), 1, -1)
+ playsound(loc, hitsound, get_clamped_volume(), TRUE, -1)
add_fingerprint(user)
/obj/item/melee/transforming/energy/axe
diff --git a/code/game/objects/items/melee/misc.dm b/code/game/objects/items/melee/misc.dm
index 717ab681a25..6a9643e6366 100644
--- a/code/game/objects/items/melee/misc.dm
+++ b/code/game/objects/items/melee/misc.dm
@@ -119,7 +119,7 @@
/obj/item/melee/sabre/proc/suicide_dismember(mob/living/user, obj/item/bodypart/affecting)
if(!QDELETED(affecting) && affecting.dismemberable && affecting.owner == user && !QDELETED(user))
- playsound(user, hitsound, 25, 1)
+ playsound(user, hitsound, 25, TRUE)
affecting.dismember(BRUTE)
user.adjustBruteLoss(20)
@@ -156,7 +156,7 @@
/obj/item/melee/beesword/suicide_act(mob/living/user)
user.visible_message("
[user] is stabbing [user.p_them()]self in the throat with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(get_turf(src), hitsound, 75, 1, -1)
+ playsound(get_turf(src), hitsound, 75, TRUE, -1)
return TOXLOSS
/obj/item/melee/classic_baton
@@ -288,7 +288,7 @@
if (stun_animation)
user.do_attack_animation(target)
- playsound(get_turf(src), on_stun_sound, 75, 1, -1)
+ playsound(get_turf(src), on_stun_sound, 75, TRUE, -1)
target.Knockdown(knockdown_time_carbon)
target.adjustStaminaLoss(stamina_damage)
additional_effects_carbon(target, user)
@@ -338,7 +338,7 @@
if(!on)
src.attack_self(user)
else
- playsound(src, on_sound, 50, 1)
+ playsound(src, on_sound, 50, TRUE)
add_fingerprint(user)
sleep(3)
if (!QDELETED(H))
@@ -368,7 +368,7 @@
force = force_off
attack_verb = list("hit", "poked")
- playsound(src.loc, on_sound, 50, 1)
+ playsound(src.loc, on_sound, 50, TRUE)
add_fingerprint(user)
/obj/item/melee/classic_baton/telescopic/contractor_baton
@@ -493,7 +493,7 @@
var/turf/newT = T.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
if(newT.type == oldtype)
return
- playsound(T, 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(T, 'sound/effects/supermatter.ogg', 50, TRUE)
T.visible_message("
[T] smacks into [src] and rapidly flashes to ash.",\
"
You hear a loud crack as you are washed with a wave of heat.")
shard.Consume()
@@ -552,7 +552,7 @@
return
retract(user)
- playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, TRUE)
add_fingerprint(user)
/obj/item/melee/roastingstick/attackby(atom/target, mob/user)
@@ -611,22 +611,22 @@
return
if (istype(target, /obj/singularity) && get_dist(user, target) < 10)
to_chat(user, "You send [held_sausage] towards [target].")
- playsound(src, 'sound/items/rped.ogg', 50, 1)
+ playsound(src, 'sound/items/rped.ogg', 50, TRUE)
beam = user.Beam(target,icon_state="rped_upgrade",time=100)
else if (user.Adjacent(target))
to_chat(user, "You extend [src] towards [target].")
- playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, TRUE)
else
return
if(do_after(user, 100, target = user))
finish_roasting(user, target)
else
QDEL_NULL(beam)
- playsound(src, 'sound/weapons/batonextend.ogg', 50, 1)
+ playsound(src, 'sound/weapons/batonextend.ogg', 50, TRUE)
/obj/item/melee/roastingstick/proc/finish_roasting(user, atom/target)
to_chat(user, "You finish roasting [held_sausage]")
- playsound(src,'sound/items/welder2.ogg',50,1)
+ playsound(src,'sound/items/welder2.ogg',50,TRUE)
held_sausage.add_atom_colour(rgb(103,63,24), FIXED_COLOUR_PRIORITY)
held_sausage.name = "[target.name]-roasted [held_sausage.name]"
held_sausage.desc = "[held_sausage.desc] It has been cooked to perfection on \a [target]."
diff --git a/code/game/objects/items/melee/transforming.dm b/code/game/objects/items/melee/transforming.dm
index fa21a0cd08e..578d6d398f6 100644
--- a/code/game/objects/items/melee/transforming.dm
+++ b/code/game/objects/items/melee/transforming.dm
@@ -70,7 +70,7 @@
return
/obj/item/melee/transforming/proc/transform_messages(mob/living/user, supress_message_text)
- playsound(user, active ? 'sound/weapons/saberon.ogg' : 'sound/weapons/saberoff.ogg', 35, 1) //changed it from 50% volume to 35% because deafness
+ playsound(user, active ? 'sound/weapons/saberon.ogg' : 'sound/weapons/saberoff.ogg', 35, TRUE) //changed it from 50% volume to 35% because deafness
if(!supress_message_text)
to_chat(user, "
[src] [active ? "is now active":"can now be concealed"].")
diff --git a/code/game/objects/items/miscellaneous.dm b/code/game/objects/items/miscellaneous.dm
index 87f4a27f00a..53937f774a1 100644
--- a/code/game/objects/items/miscellaneous.dm
+++ b/code/game/objects/items/miscellaneous.dm
@@ -31,7 +31,7 @@
if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return TRUE
else
- playsound(src, 'sound/machines/buzz-sigh.ogg', 40, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 40, TRUE)
return FALSE
/obj/item/choice_beacon/proc/generate_options(mob/living/M)
@@ -143,5 +143,5 @@
user.visible_message("
[user] has declared themself as anti-skub! The skub tears them apart!")
user.gib()
- playsound(src, 'sound/items/eatfood.ogg', 50, 1, -1)
+ playsound(src, 'sound/items/eatfood.ogg', 50, TRUE, -1)
return MANUAL_SUICIDE
diff --git a/code/game/objects/items/mop.dm b/code/game/objects/items/mop.dm
index 3b906984e9a..58817a8121d 100644
--- a/code/game/objects/items/mop.dm
+++ b/code/game/objects/items/mop.dm
@@ -102,7 +102,7 @@
else
STOP_PROCESSING(SSobj,src)
to_chat(user, "
You set the condenser switch to the '[refill_enabled ? "ON" : "OFF"]' position.")
- playsound(user, 'sound/machines/click.ogg', 30, 1)
+ playsound(user, 'sound/machines/click.ogg', 30, TRUE)
/obj/item/mop/advanced/process()
diff --git a/code/game/objects/items/pinpointer.dm b/code/game/objects/items/pinpointer.dm
index b563e43fd68..0b36752e293 100644
--- a/code/game/objects/items/pinpointer.dm
+++ b/code/game/objects/items/pinpointer.dm
@@ -40,7 +40,7 @@
/obj/item/pinpointer/proc/toggle_on()
active = !active
- playsound(src, 'sound/items/screwdriver2.ogg', 50, 1)
+ playsound(src, 'sound/items/screwdriver2.ogg', 50, TRUE)
if(active)
START_PROCESSING(SSfastprocess, src)
else
diff --git a/code/game/objects/items/pneumaticCannon.dm b/code/game/objects/items/pneumaticCannon.dm
index 4d92b7eb9a8..11c2cbe06d1 100644
--- a/code/game/objects/items/pneumaticCannon.dm
+++ b/code/game/objects/items/pneumaticCannon.dm
@@ -170,7 +170,7 @@
"
You fire \the [src]!")
log_combat(user, target, "fired at", src)
var/turf/T = get_target(target, get_turf(src))
- playsound(src, fire_sound, 50, 1)
+ playsound(src, fire_sound, 50, TRUE)
fire_items(T, user)
if(pressureSetting >= 3 && iscarbon(user))
var/mob/living/carbon/C = user
diff --git a/code/game/objects/items/powerfist.dm b/code/game/objects/items/powerfist.dm
index 6eeedcd7c9c..1acb18effb5 100644
--- a/code/game/objects/items/powerfist.dm
+++ b/code/game/objects/items/powerfist.dm
@@ -82,13 +82,13 @@
if(!gasused)
to_chat(user, "
\The [src]'s tank is empty!")
target.apply_damage((force / 5), BRUTE)
- playsound(loc, 'sound/weapons/punch1.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/punch1.ogg', 50, TRUE)
target.visible_message("
[user]'s powerfist lets out a dull thunk as [user.p_they()] punch[user.p_es()] [target.name]!", \
"
[user]'s punches you!")
return
if(gasused.total_moles() < gasperfist * fisto_setting)
to_chat(user, "
\The [src]'s piston-ram lets out a weak hiss, it needs more gas!")
- playsound(loc, 'sound/weapons/punch4.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/punch4.ogg', 50, TRUE)
target.apply_damage((force / 2), BRUTE)
target.visible_message("
[user]'s powerfist lets out a weak hiss as [user.p_they()] punch[user.p_es()] [target.name]!", \
"
[user]'s punch strikes with force!")
@@ -97,8 +97,8 @@
target.visible_message("
[user]'s powerfist lets out a loud hiss as [user.p_they()] punch[user.p_es()] [target.name]!", \
"
You cry out in pain as [user]'s punch flings you backwards!")
new /obj/effect/temp_visual/kinetic_blast(target.loc)
- playsound(loc, 'sound/weapons/resonator_blast.ogg', 50, 1)
- playsound(loc, 'sound/weapons/genhit2.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/resonator_blast.ogg', 50, TRUE)
+ playsound(loc, 'sound/weapons/genhit2.ogg', 50, TRUE)
var/atom/throw_target = get_edge_target_turf(target, get_dir(src, get_step_away(target, src)))
diff --git a/code/game/objects/items/robot/robot_items.dm b/code/game/objects/items/robot/robot_items.dm
index 9fada67a0c1..3b01e4d08ab 100644
--- a/code/game/objects/items/robot/robot_items.dm
+++ b/code/game/objects/items/robot/robot_items.dm
@@ -14,7 +14,7 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.check_shields(src, 0, "[M]'s [name]", MELEE_ATTACK))
- playsound(M, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(M, 'sound/weapons/genhit.ogg', 50, TRUE)
return FALSE
if(iscyborg(user))
var/mob/living/silicon/robot/R = user
@@ -28,7 +28,7 @@
M.visible_message("
[user] has prodded [M] with [src]!", \
"
[user] has prodded you with [src]!")
- playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1)
log_combat(user, M, "stunned", src, "(INTENT: [uppertext(user.a_intent)])")
@@ -74,7 +74,7 @@
user.visible_message("
[user] playfully boops [M] on the head!", \
"
You playfully boop [M] on the head!")
user.do_attack_animation(M, ATTACK_EFFECT_BOOP)
- playsound(loc, 'sound/weapons/tap.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE, -1)
else if(ishuman(M))
if(!(user.mobility_flags & MOBILITY_STAND))
user.visible_message("
[user] shakes [M] trying to get [M.p_them()] up!", \
@@ -87,7 +87,7 @@
else
user.visible_message("
[user] pets [M]!", \
"
You pet [M]!")
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
if(1)
if(M.health >= 0)
if(ishuman(M))
@@ -106,7 +106,7 @@
else
user.visible_message("
[user] bops [M] on the head!", \
"
You bop [M] on the head!")
- playsound(loc, 'sound/weapons/tap.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE, -1)
if(2)
if(scooldown < world.time)
if(M.health >= 0)
@@ -123,7 +123,7 @@
else
user.visible_message("
[user] shocks [M]. It does not seem to have an effect", \
"
You shock [M] to no effect.")
- playsound(loc, 'sound/effects/sparks2.ogg', 50, 1, -1)
+ playsound(loc, 'sound/effects/sparks2.ogg', 50, TRUE, -1)
user.cell.charge -= 500
scooldown = world.time + 20
if(3)
@@ -135,7 +135,7 @@
else
user.visible_message("
[user] crushes [M]!", \
"
You crush [M]!")
- playsound(loc, 'sound/weapons/smash.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/smash.ogg', 50, TRUE, -1)
M.adjustBruteLoss(15)
user.cell.charge -= 300
ccooldown = world.time + 10
@@ -412,7 +412,7 @@
else
user.visible_message("
[user] dispenses a treat.", "
You dispense a treat.", "
You hear a click.")
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
return TRUE
/obj/item/borg/lollipop/proc/shootL(atom/target, mob/living/user, params)
@@ -425,7 +425,7 @@
if(hitdamage)
A.BB.nodamage = FALSE
A.BB.speed = 0.5
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
A.fire_casing(target, user, params, 0, 0, null, 0, src)
user.visible_message("
[user] blasts a flying lollipop at [target]!")
check_amount()
@@ -441,7 +441,7 @@
A.BB.nodamage = FALSE
A.BB.speed = 0.5
A.BB.color = rgb(rand(0, 255), rand(0, 255), rand(0, 255))
- playsound(src.loc, 'sound/weapons/bulletflyby3.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/bulletflyby3.ogg', 50, TRUE)
A.fire_casing(target, user, params, 0, 0, null, 0, src)
user.visible_message("
[user] shoots a high-velocity gumball at [target]!")
check_amount()
diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm
index 78f9f972300..207a1eff45b 100644
--- a/code/game/objects/items/robot/robot_upgrades.dm
+++ b/code/game/objects/items/robot/robot_upgrades.dm
@@ -61,7 +61,7 @@
if(R.mind)
R.mind.grab_ghost()
- playsound(loc, 'sound/voice/liveagain.ogg', 75, 1)
+ playsound(loc, 'sound/voice/liveagain.ogg', 75, TRUE)
R.revive()
@@ -513,7 +513,7 @@
smoke.start()
sleep(2)
for(var/i in 1 to 4)
- playsound(R, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/welder.ogg', 'sound/items/ratchet.ogg'), 80, 1, -1)
+ playsound(R, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/welder.ogg', 'sound/items/ratchet.ogg'), 80, TRUE, -1)
sleep(12)
if(!prev_lockcharge)
R.SetLockdown(0)
diff --git a/code/game/objects/items/sharpener.dm b/code/game/objects/items/sharpener.dm
index c221608024a..a3eec9a74c5 100644
--- a/code/game/objects/items/sharpener.dm
+++ b/code/game/objects/items/sharpener.dm
@@ -40,7 +40,7 @@
to_chat(user, "
[I] has already been refined before. It cannot be sharpened further!")
return
user.visible_message("
[user] sharpens [I] with [src]!", "
You sharpen [I], making it much more deadly than before.")
- playsound(src, 'sound/items/unsheath.ogg', 25, 1)
+ playsound(src, 'sound/items/unsheath.ogg', 25, TRUE)
I.sharpness = IS_SHARP_ACCURATE
I.force = CLAMP(I.force + increment, 0, max)
I.throwforce = CLAMP(I.throwforce + increment, 0, max)
diff --git a/code/game/objects/items/shields.dm b/code/game/objects/items/shields.dm
index 4c543776b6f..68b3e8fff14 100644
--- a/code/game/objects/items/shields.dm
+++ b/code/game/objects/items/shields.dm
@@ -39,7 +39,7 @@
if(istype(W, /obj/item/melee/baton))
if(cooldown < world.time - 25)
user.visible_message("
[user] bashes [src] with [W]!")
- playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, 1)
+ playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, TRUE)
cooldown = world.time
else if(istype(W, /obj/item/stack/sheet/mineral/titanium))
if (obj_integrity >= max_integrity)
@@ -219,14 +219,14 @@
throwforce = on_throwforce
throw_speed = on_throw_speed
w_class = WEIGHT_CLASS_BULKY
- playsound(user, 'sound/weapons/saberon.ogg', 35, 1)
+ playsound(user, 'sound/weapons/saberon.ogg', 35, TRUE)
to_chat(user, "
[src] is now active.")
else
force = initial(force)
throwforce = initial(throwforce)
throw_speed = initial(throw_speed)
w_class = WEIGHT_CLASS_TINY
- playsound(user, 'sound/weapons/saberoff.ogg', 35, 1)
+ playsound(user, 'sound/weapons/saberoff.ogg', 35, TRUE)
to_chat(user, "
[src] can now be concealed.")
add_fingerprint(user)
@@ -252,7 +252,7 @@
/obj/item/shield/riot/tele/attack_self(mob/living/user)
active = !active
icon_state = "teleriot[active]"
- playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, TRUE)
if(active)
force = 8
diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm
index 6dcf0e200bd..9d8e973449c 100644
--- a/code/game/objects/items/shooting_range.dm
+++ b/code/game/objects/items/shooting_range.dm
@@ -62,7 +62,7 @@
/obj/item/target/clown/bullet_act(obj/item/projectile/P)
. = ..()
- playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/bikehorn.ogg', 50, TRUE)
/obj/item/target/bullet_act(obj/item/projectile/P)
if(istype(P, /obj/item/projectile/bullet/reusable)) // If it's a foam dart, don't bother with any of this other shit
diff --git a/code/game/objects/items/singularityhammer.dm b/code/game/objects/items/singularityhammer.dm
index e950689f7e3..81d09c7c4f6 100644
--- a/code/game/objects/items/singularityhammer.dm
+++ b/code/game/objects/items/singularityhammer.dm
@@ -66,7 +66,7 @@
if(istype(A, /mob/living/))
var/mob/living/Z = A
Z.take_bodypart_damage(20,0)
- playsound(user, 'sound/weapons/marauder.ogg', 50, 1)
+ playsound(user, 'sound/weapons/marauder.ogg', 50, TRUE)
var/turf/target = get_turf(A)
vortex(target,user)
@@ -100,7 +100,7 @@
/obj/item/twohanded/mjollnir/attack(mob/living/M, mob/user)
..()
if(wielded)
- playsound(src.loc, "sparks", 50, 1)
+ playsound(src.loc, "sparks", 50, TRUE)
shock(M)
/obj/item/twohanded/mjollnir/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
diff --git a/code/game/objects/items/stacks/bscrystal.dm b/code/game/objects/items/stacks/bscrystal.dm
index 39ea7bdf6e5..c4580b634be 100644
--- a/code/game/objects/items/stacks/bscrystal.dm
+++ b/code/game/objects/items/stacks/bscrystal.dm
@@ -29,7 +29,7 @@
/obj/item/stack/ore/bluespace_crystal/attack_self(mob/user)
user.visible_message("
[user] crushes [src]!", "
You crush [src]!")
new /obj/effect/particle_effect/sparks(loc)
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
blink_mob(user)
use(1)
@@ -41,7 +41,7 @@
visible_message("
[src] fizzles and disappears upon impact!")
var/turf/T = get_turf(hit_atom)
new /obj/effect/particle_effect/sparks(T)
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
if(isliving(hit_atom))
blink_mob(hit_atom)
use(1)
diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm
index 8d458f795c0..a187033a326 100644
--- a/code/game/objects/items/stacks/sheets/glass.dm
+++ b/code/game/objects/items/stacks/sheets/glass.dm
@@ -325,9 +325,9 @@ GLOBAL_LIST_INIT(plastitaniumglass_recipes, list(
/obj/item/shard/Crossed(mob/living/L)
if(istype(L) && has_gravity(loc))
if(HAS_TRAIT(L, TRAIT_LIGHT_STEP))
- playsound(loc, 'sound/effects/glass_step.ogg', 30, 1)
+ playsound(loc, 'sound/effects/glass_step.ogg', 30, TRUE)
else
- playsound(loc, 'sound/effects/glass_step.ogg', 50, 1)
+ playsound(loc, 'sound/effects/glass_step.ogg', 50, TRUE)
return ..()
/obj/item/shard/plasma
diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm
index 341ea86741d..ab588b9251c 100644
--- a/code/game/objects/items/stacks/sheets/leather.dm
+++ b/code/game/objects/items/stacks/sheets/leather.dm
@@ -219,7 +219,7 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( \
/obj/item/stack/sheet/animalhide/attackby(obj/item/W, mob/user, params)
if(W.is_sharp())
- playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/slice.ogg', 50, TRUE, -1)
user.visible_message("
[user] starts cutting hair off \the [src].", "
You start cutting the hair off \the [src]...", "
You hear the sound of a knife rubbing against flesh.")
if(do_after(user, 50, target = src))
to_chat(user, "
You cut the hair from this [src.singular_name].")
diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm
index e7255569e2f..8aa4067e68c 100644
--- a/code/game/objects/items/stacks/sheets/sheet_types.dm
+++ b/code/game/objects/items/stacks/sheets/sheet_types.dm
@@ -438,7 +438,7 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( \
if(istype(I, /obj/item/stamp/clown) && !istype(loc, /obj/item/storage))
var/atom/droploc = drop_location()
if(use(1))
- playsound(I, 'sound/items/bikehorn.ogg', 50, 1, -1)
+ playsound(I, 'sound/items/bikehorn.ogg', 50, TRUE, -1)
to_chat(user, "
You stamp the cardboard! It's a clown box! Honk!")
if (amount >= 0)
new/obj/item/storage/box/clown(droploc) //bugfix
diff --git a/code/game/objects/items/storage/backpack.dm b/code/game/objects/items/storage/backpack.dm
index a64bbf2922e..e329f3ee014 100644
--- a/code/game/objects/items/storage/backpack.dm
+++ b/code/game/objects/items/storage/backpack.dm
@@ -59,7 +59,7 @@
user.dropItemToGround(src, TRUE)
user.Stun(100, ignore_canstun = TRUE)
sleep(20)
- playsound(src, "rustle", 50, 1, -5)
+ playsound(src, "rustle", 50, TRUE, -5)
qdel(user)
/obj/item/storage/backpack/holding/singularity_act(current_size)
diff --git a/code/game/objects/items/storage/bags.dm b/code/game/objects/items/storage/bags.dm
index d4798f354eb..a0a9cc6b7d2 100644
--- a/code/game/objects/items/storage/bags.dm
+++ b/code/game/objects/items/storage/bags.dm
@@ -52,7 +52,7 @@
/obj/item/storage/bag/trash/suicide_act(mob/user)
user.visible_message("
[user] puts [src] over [user.p_their()] head and starts chomping at the insides! Disgusting!")
- playsound(loc, 'sound/items/eatfood.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/eatfood.ogg', 50, TRUE, -1)
return (TOXLOSS)
/obj/item/storage/bag/trash/update_icon()
@@ -300,9 +300,9 @@
INVOKE_ASYNC(src, .proc/do_scatter, I)
if(prob(50))
- playsound(M, 'sound/items/trayhit1.ogg', 50, 1)
+ playsound(M, 'sound/items/trayhit1.ogg', 50, TRUE)
else
- playsound(M, 'sound/items/trayhit2.ogg', 50, 1)
+ playsound(M, 'sound/items/trayhit2.ogg', 50, TRUE)
if(ishuman(M) || ismonkey(M))
if(prob(10))
diff --git a/code/game/objects/items/storage/book.dm b/code/game/objects/items/storage/book.dm
index 940107eedc0..4883fbbbb2a 100644
--- a/code/game/objects/items/storage/book.dm
+++ b/code/game/objects/items/storage/book.dm
@@ -108,7 +108,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
H.update_damage_overlays()
H.visible_message("
[user] heals [H] with the power of [deity_name]!")
to_chat(H, "
May the power of [deity_name] compel you to be healed!")
- playsound(src.loc, "punch", 25, 1, -1)
+ playsound(src.loc, "punch", 25, TRUE, -1)
SEND_SIGNAL(H, COMSIG_ADD_MOOD_EVENT, "blessing", /datum/mood_event/blessing)
return 1
@@ -154,12 +154,12 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
if(smack)
M.visible_message("
[user] beats [M] over the head with [src]!", \
"
[user] beats [M] over the head with [src]!")
- playsound(src.loc, "punch", 25, 1, -1)
+ playsound(src.loc, "punch", 25, TRUE, -1)
log_combat(user, M, "attacked", src)
else
M.visible_message("
[user] smacks [M]'s lifeless corpse with [src].")
- playsound(src.loc, "punch", 25, 1, -1)
+ playsound(src.loc, "punch", 25, TRUE, -1)
/obj/item/storage/book/bible/afterattack(atom/A, mob/user, proximity)
. = ..()
@@ -190,9 +190,9 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
if(istype(A, /obj/item/twohanded/required/cult_bastard) && !iscultist(user))
var/obj/item/twohanded/required/cult_bastard/sword = A
to_chat(user, "
You begin to exorcise [sword].")
- playsound(src,'sound/hallucinations/veryfar_noise.ogg',40,1)
+ playsound(src,'sound/hallucinations/veryfar_noise.ogg',40,TRUE)
if(do_after(user, 40, target = sword))
- playsound(src,'sound/effects/pray_chaplain.ogg',60,1)
+ playsound(src,'sound/effects/pray_chaplain.ogg',60,TRUE)
for(var/obj/item/soulstone/SS in sword.contents)
SS.usability = TRUE
for(var/mob/living/simple_animal/shade/EX in SS)
@@ -210,9 +210,9 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
if(SS.purified)
return
to_chat(user, "
You begin to exorcise [SS].")
- playsound(src,'sound/hallucinations/veryfar_noise.ogg',40,1)
+ playsound(src,'sound/hallucinations/veryfar_noise.ogg',40,TRUE)
if(do_after(user, 40, target = SS))
- playsound(src,'sound/effects/pray_chaplain.ogg',60,1)
+ playsound(src,'sound/effects/pray_chaplain.ogg',60,TRUE)
SS.usability = TRUE
SS.purified = TRUE
SS.icon_state = "purified_soulstone"
@@ -250,7 +250,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
H.mind.isholy = TRUE
uses -= 1
to_chat(H, "
You try to open the book AND IT BITES YOU!")
- playsound(src.loc, 'sound/effects/snap.ogg', 50, 1)
+ playsound(src.loc, 'sound/effects/snap.ogg', 50, TRUE)
H.apply_damage(5, BRUTE, pick(BODY_ZONE_L_ARM, BODY_ZONE_R_ARM))
to_chat(H, "
Your name appears on the inside cover, in blood.")
var/ownername = H.real_name
diff --git a/code/game/objects/items/storage/boxes.dm b/code/game/objects/items/storage/boxes.dm
index 6a735ef558c..c48ad008eb1 100644
--- a/code/game/objects/items/storage/boxes.dm
+++ b/code/game/objects/items/storage/boxes.dm
@@ -42,7 +42,7 @@
user.visible_message("
[user] puts [user.p_their()] head into \the [src], and begins closing it! It looks like [user.p_theyre()] trying to commit suicide!")
myhead.dismember()
myhead.forceMove(src)//force your enemies to kill themselves with your head collection box!
- playsound(user,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(user, "desceration-01.ogg", 50, TRUE, -1)
return BRUTELOSS
user.visible_message("
[user] beating [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")
return BRUTELOSS
@@ -749,7 +749,7 @@
/obj/item/storage/box/hug/attack_self(mob/user)
..()
user.changeNext_move(CLICK_CD_MELEE)
- playsound(loc, "rustle", 50, 1, -5)
+ playsound(loc, "rustle", 50, TRUE, -5)
user.visible_message("
[user] hugs \the [src].","
You hug \the [src].")
/////clown box & honkbot assembly
@@ -1121,4 +1121,4 @@
/obj/item/stock_parts/manipulator = 1,
/obj/item/stock_parts/matter_bin = 2,
/obj/item/screwdriver = 1)
- generate_items_inside(items_inside,src)
\ No newline at end of file
+ generate_items_inside(items_inside,src)
diff --git a/code/game/objects/items/stunbaton.dm b/code/game/objects/items/stunbaton.dm
index 181649fa9c8..5732835ce02 100644
--- a/code/game/objects/items/stunbaton.dm
+++ b/code/game/objects/items/stunbaton.dm
@@ -56,7 +56,7 @@
//we're below minimum, turn off
status = 0
update_icon()
- playsound(loc, "sparks", 75, 1, -1)
+ playsound(loc, "sparks", 75, TRUE, -1)
/obj/item/melee/baton/update_icon()
@@ -104,7 +104,7 @@
if(cell && cell.charge > hitcost)
status = !status
to_chat(user, "
[src] is now [status ? "on" : "off"].")
- playsound(loc, "sparks", 75, 1, -1)
+ playsound(loc, "sparks", 75, TRUE, -1)
else
status = 0
if(!cell)
@@ -154,7 +154,7 @@
if(ishuman(L))
var/mob/living/carbon/human/H = L
if(H.check_shields(src, 0, "[user]'s [name]", MELEE_ATTACK)) //No message; check_shields() handles that
- playsound(L, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(L, 'sound/weapons/genhit.ogg', 50, TRUE)
return 0
if(iscyborg(loc))
var/mob/living/silicon/robot/R = loc
@@ -181,7 +181,7 @@
"
[user] has stunned you with [src]!")
log_combat(user, L, "stunned")
- playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1)
if(ishuman(L))
var/mob/living/carbon/human/H = L
diff --git a/code/game/objects/items/tanks/tanks.dm b/code/game/objects/items/tanks/tanks.dm
index 42ca09b6162..d96d6f7ebcb 100644
--- a/code/game/objects/items/tanks/tanks.dm
+++ b/code/game/objects/items/tanks/tanks.dm
@@ -118,13 +118,13 @@
if(T)
T.assume_air(air_contents)
air_update_turf()
- playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3)
+ playsound(src.loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
qdel(src)
/obj/item/tank/suicide_act(mob/user)
var/mob/living/carbon/human/H = user
user.visible_message("
[user] is putting [src]'s valve to [user.p_their()] lips! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/effects/spray.ogg', 10, 1, -3)
+ playsound(loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
if (!QDELETED(H) && air_contents && air_contents.return_pressure() >= 1000)
for(var/obj/item/W in H)
H.dropItemToGround(W)
@@ -261,7 +261,7 @@
if(!T)
return
T.assume_air(air_contents)
- playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3)
+ playsound(src.loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
qdel(src)
else
integrity--
diff --git a/code/game/objects/items/tanks/watertank.dm b/code/game/objects/items/tanks/watertank.dm
index 86bf0582f83..21e7a933806 100644
--- a/code/game/objects/items/tanks/watertank.dm
+++ b/code/game/objects/items/tanks/watertank.dm
@@ -276,7 +276,7 @@
R.remove_any(100)
var/obj/effect/resin_container/A = new (get_turf(src))
log_game("[key_name(user)] used Resin Launcher at [AREACOORD(user)].")
- playsound(src,'sound/items/syringeproj.ogg',40,1)
+ playsound(src,'sound/items/syringeproj.ogg',40,TRUE)
for(var/a=0, a<5, a++)
step_towards(A, target)
sleep(2)
@@ -312,7 +312,7 @@
/obj/effect/resin_container/proc/Smoke()
var/obj/effect/particle_effect/foam/metal/resin/S = new /obj/effect/particle_effect/foam/metal/resin(get_turf(loc))
S.amount = 4
- playsound(src,'sound/effects/bamf.ogg',100,1)
+ playsound(src,'sound/effects/bamf.ogg',100,TRUE)
qdel(src)
#undef EXTINGUISHER
diff --git a/code/game/objects/items/theft_tools.dm b/code/game/objects/items/theft_tools.dm
index 54545b7ca4d..67cf0fb3ce6 100644
--- a/code/game/objects/items/theft_tools.dm
+++ b/code/game/objects/items/theft_tools.dm
@@ -68,7 +68,7 @@
if(istype(core))
STOP_PROCESSING(SSobj, core)
icon_state = "core_container_sealed"
- playsound(src, 'sound/items/deconstruct.ogg', 60, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 60, TRUE)
if(ismob(loc))
to_chat(loc, "
[src] is permanently sealed, [core]'s radiation is contained.")
@@ -145,7 +145,7 @@
else
to_chat(user, "
As it touches \the [src], both \the [src] and \the [W] burst into dust!")
radiation_pulse(user, 100)
- playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE)
qdel(W)
qdel(src)
@@ -158,7 +158,7 @@
"
You reach for [src] with your hands. That was dumb.",\
"
Everything suddenly goes silent.")
radiation_pulse(user, 500, 2)
- playsound(get_turf(user), 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/effects/supermatter.ogg', 50, TRUE)
ded.dust()
/obj/item/nuke_core_container/supermatter
@@ -186,7 +186,7 @@
if(istype(sliver))
STOP_PROCESSING(SSobj, sliver)
icon_state = "core_container_sealed"
- playsound(src, 'sound/items/Deconstruct.ogg', 60, 1)
+ playsound(src, 'sound/items/Deconstruct.ogg', 60, TRUE)
if(ismob(loc))
to_chat(loc, "
[src] is permanently sealed, [sliver] is safely contained.")
@@ -260,6 +260,6 @@
"
Everything suddenly goes silent.")
user.dust()
radiation_pulse(src, 500, 2)
- playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE)
QDEL_NULL(sliver)
update_icon()
diff --git a/code/game/objects/items/tools/crowbar.dm b/code/game/objects/items/tools/crowbar.dm
index 12eb2d3a284..deac62c8f47 100644
--- a/code/game/objects/items/tools/crowbar.dm
+++ b/code/game/objects/items/tools/crowbar.dm
@@ -20,7 +20,7 @@
/obj/item/crowbar/suicide_act(mob/user)
user.visible_message("
[user] is beating [user.p_them()]self to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/weapons/genhit.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/genhit.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/crowbar/red
@@ -69,11 +69,11 @@
/obj/item/crowbar/power/suicide_act(mob/user)
user.visible_message("
[user] is putting [user.p_their()] head in [src], it looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/items/jaws_pry.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/jaws_pry.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/crowbar/power/attack_self(mob/user)
- playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, TRUE)
var/obj/item/wirecutters/power/cutjaws = new /obj/item/wirecutters/power(drop_location())
to_chat(user, "
You attach the cutting jaws to [src].")
qdel(src)
diff --git a/code/game/objects/items/tools/screwdriver.dm b/code/game/objects/items/tools/screwdriver.dm
index a433330aa1f..b42bc14ac88 100644
--- a/code/game/objects/items/tools/screwdriver.dm
+++ b/code/game/objects/items/tools/screwdriver.dm
@@ -128,7 +128,7 @@
return(BRUTELOSS)
/obj/item/screwdriver/power/attack_self(mob/user)
- playsound(get_turf(user),'sound/items/change_drill.ogg',50,1)
+ playsound(get_turf(user),'sound/items/change_drill.ogg',50,TRUE)
var/obj/item/wrench/power/b_drill = new /obj/item/wrench/power(drop_location())
to_chat(user, "
You attach the bolt driver bit to [src].")
qdel(src)
diff --git a/code/game/objects/items/tools/weldingtool.dm b/code/game/objects/items/tools/weldingtool.dm
index f208d5891e2..49a9ab06a84 100644
--- a/code/game/objects/items/tools/weldingtool.dm
+++ b/code/game/objects/items/tools/weldingtool.dm
@@ -194,7 +194,7 @@
if(welding)
if(get_fuel() >= 1)
to_chat(user, "
You switch [src] on.")
- playsound(loc, acti_sound, 50, 1)
+ playsound(loc, acti_sound, 50, TRUE)
force = 15
damtype = "fire"
hitsound = 'sound/items/welder.ogg'
@@ -205,7 +205,7 @@
switched_off(user)
else
to_chat(user, "
You switch [src] off.")
- playsound(loc, deac_sound, 50, 1)
+ playsound(loc, deac_sound, 50, TRUE)
switched_off(user)
//Switches the welder off
@@ -377,4 +377,4 @@
nextrefueltick = world.time + 10
reagents.add_reagent(/datum/reagent/fuel, 1)
-#undef WELDER_FUEL_BURN_INTERVAL
\ No newline at end of file
+#undef WELDER_FUEL_BURN_INTERVAL
diff --git a/code/game/objects/items/tools/wirecutters.dm b/code/game/objects/items/tools/wirecutters.dm
index b21f2898647..80938c68407 100644
--- a/code/game/objects/items/tools/wirecutters.dm
+++ b/code/game/objects/items/tools/wirecutters.dm
@@ -63,7 +63,7 @@
/obj/item/wirecutters/suicide_act(mob/user)
user.visible_message("
[user] is cutting at [user.p_their()] arteries with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, usesound, 50, 1, -1)
+ playsound(loc, usesound, 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/wirecutters/brass
@@ -96,17 +96,17 @@
/obj/item/wirecutters/power/suicide_act(mob/user)
user.visible_message("
[user] is wrapping \the [src] around [user.p_their()] neck. It looks like [user.p_theyre()] trying to rip [user.p_their()] head off!")
- playsound(loc, 'sound/items/jaws_cut.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/jaws_cut.ogg', 50, TRUE, -1)
if(iscarbon(user))
var/mob/living/carbon/C = user
var/obj/item/bodypart/BP = C.get_bodypart(BODY_ZONE_HEAD)
if(BP)
BP.drop_limb()
- playsound(loc,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(loc, "desceration", 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/wirecutters/power/attack_self(mob/user)
- playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, TRUE)
var/obj/item/crowbar/power/pryjaws = new /obj/item/crowbar/power(drop_location())
to_chat(user, "
You attach the pry jaws to [src].")
qdel(src)
@@ -127,4 +127,4 @@
icon = 'icons/obj/items_cyborg.dmi'
icon_state = "wirecutters_cyborg"
toolspeed = 0.5
- random_color = FALSE
\ No newline at end of file
+ random_color = FALSE
diff --git a/code/game/objects/items/tools/wrench.dm b/code/game/objects/items/tools/wrench.dm
index 19b0d11ce1a..84bb5893560 100644
--- a/code/game/objects/items/tools/wrench.dm
+++ b/code/game/objects/items/tools/wrench.dm
@@ -20,7 +20,7 @@
/obj/item/wrench/suicide_act(mob/user)
user.visible_message("
[user] is beating [user.p_them()]self to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/weapons/genhit.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/genhit.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/wrench/brass
@@ -56,7 +56,7 @@
toolspeed = 0.7
/obj/item/wrench/power/attack_self(mob/user)
- playsound(get_turf(user),'sound/items/change_drill.ogg',50,1)
+ playsound(get_turf(user),'sound/items/change_drill.ogg',50,TRUE)
var/obj/item/wirecutters/power/s_drill = new /obj/item/screwdriver/power(drop_location())
to_chat(user, "
You attach the screw driver bit to [src].")
qdel(src)
@@ -82,7 +82,7 @@
// Stun stops them from wandering off
user.Stun(100, ignore_canstun = TRUE)
- playsound(loc, 'sound/effects/pray.ogg', 50, 1, -1)
+ playsound(loc, 'sound/effects/pray.ogg', 50, TRUE, -1)
// Let the sound effect finish playing
sleep(20)
@@ -109,4 +109,4 @@
desc = "An advanced robotic wrench, powered by internal hydraulics. Twice as fast as the handheld version."
icon = 'icons/obj/items_cyborg.dmi'
icon_state = "wrench_cyborg"
- toolspeed = 0.5
\ No newline at end of file
+ toolspeed = 0.5
diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm
index cb962f0bb6e..dadf9c988cb 100644
--- a/code/game/objects/items/toys.dm
+++ b/code/game/objects/items/toys.dm
@@ -230,7 +230,7 @@
user.show_message("
*click*", 2)
playsound(src, 'sound/weapons/gun_dry_fire.ogg', 30, TRUE)
return
- playsound(user, 'sound/weapons/gunshot.ogg', 100, 1)
+ playsound(user, 'sound/weapons/gunshot.ogg', 100, TRUE)
src.bullets--
user.visible_message("
[user] fires [src] at [target]!", \
"
You fire [src] at [target]!", \
@@ -273,7 +273,7 @@
active = !( active )
if (active)
to_chat(user, "
You extend the plastic blade with a quick flick of your wrist.")
- playsound(user, 'sound/weapons/saberon.ogg', 20, 1)
+ playsound(user, 'sound/weapons/saberon.ogg', 20, TRUE)
if(hacked)
icon_state = "swordrainbow"
item_state = "swordrainbow"
@@ -283,7 +283,7 @@
w_class = WEIGHT_CLASS_BULKY
else
to_chat(user, "
You push the plastic blade back down into the handle.")
- playsound(user, 'sound/weapons/saberoff.ogg', 20, 1)
+ playsound(user, 'sound/weapons/saberoff.ogg', 20, TRUE)
icon_state = "sword0"
item_state = "sword0"
w_class = WEIGHT_CLASS_SMALL
@@ -412,7 +412,7 @@
new ash_type(loc)
visible_message("
[src] explodes!",
"
You hear a snap!")
- playsound(src, 'sound/effects/snap.ogg', 50, 1)
+ playsound(src, 'sound/effects/snap.ogg', 50, TRUE)
qdel(src)
/obj/item/toy/snappop/fire_act(exposed_temperature, exposed_volume)
@@ -462,7 +462,7 @@
to_chat(user, "
You play with [src].")
timer = world.time + cooldown
if(!quiet)
- playsound(user, 'sound/mecha/mechstep.ogg', 20, 1)
+ playsound(user, 'sound/mecha/mechstep.ogg', 20, TRUE)
else
. = ..()
@@ -555,7 +555,7 @@
/obj/item/toy/talking/attack_self(mob/user)
if(!cooldown)
activation_message(user)
- playsound(loc, 'sound/machines/click.ogg', 20, 1)
+ playsound(loc, 'sound/machines/click.ogg', 20, TRUE)
INVOKE_ASYNC(src, .proc/do_toy_talk, user)
@@ -657,7 +657,7 @@
/obj/item/toy/cards/suicide_act(mob/living/carbon/user)
user.visible_message("
[user] is slitting [user.p_their()] wrists with \the [src]! It looks like [user.p_they()] [user.p_have()] a crummy hand!")
- playsound(src, 'sound/items/cardshuffle.ogg', 50, 1)
+ playsound(src, 'sound/items/cardshuffle.ogg', 50, TRUE)
return BRUTELOSS
/obj/item/toy/cards/proc/apply_card_vars(obj/item/toy/cards/newobj, obj/item/toy/cards/sourceobj) // Applies variables for supporting multiple types of card deck
@@ -730,7 +730,7 @@
/obj/item/toy/cards/deck/attack_self(mob/user)
if(cooldown < world.time - 50)
cards = shuffle(cards)
- playsound(src, 'sound/items/cardshuffle.ogg', 50, 1)
+ playsound(src, 'sound/items/cardshuffle.ogg', 50, TRUE)
user.visible_message("
[user] shuffles the deck.", "
You shuffle the deck.")
cooldown = world.time
@@ -1013,7 +1013,7 @@
user.visible_message("
[user] presses a button on [src].", "
You activate [src], it plays a loud noise!", "
You hear the click of a button.")
sleep(5)
icon_state = "nuketoy"
- playsound(src, 'sound/machines/alarm.ogg', 100, 0)
+ playsound(src, 'sound/machines/alarm.ogg', 100, FALSE)
sleep(135)
icon_state = "nuketoycool"
sleep(cooldown - world.time)
@@ -1035,7 +1035,7 @@
/obj/item/toy/minimeteor/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(!..())
- playsound(src, 'sound/effects/meteorimpact.ogg', 40, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 40, TRUE)
for(var/mob/M in urange(10, src))
if(!M.stat && !isAI(M))
shake_camera(M, 3, 1)
@@ -1056,7 +1056,7 @@
if (cooldown < world.time)
cooldown = (world.time + 300) // Sets cooldown at 30 seconds
user.visible_message("
[user] presses the big red button.", "
You press the button, it plays a loud noise!", "
The button clicks loudly.")
- playsound(src, 'sound/effects/explosionfar.ogg', 50, 0)
+ playsound(src, 'sound/effects/explosionfar.ogg', 50, FALSE)
for(var/mob/M in urange(10, src)) // Checks range
if(!M.stat && !isAI(M)) // Checks to make sure whoever's getting shaken is alive/not the AI
sleep(8) // Short delay to match up with the explosion sound
@@ -1083,7 +1083,7 @@
/obj/item/toy/snowball/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(!..())
- playsound(src, 'sound/effects/pop.ogg', 20, 1)
+ playsound(src, 'sound/effects/pop.ogg', 20, TRUE)
qdel(src)
/*
@@ -1118,7 +1118,7 @@
if (cooldown < world.time)
cooldown = world.time + 1800 //3 minutes
user.visible_message("
[user] rotates a cogwheel on [src].", "
You rotate a cogwheel on [src], it plays a loud noise!", "
You hear cogwheels turning.")
- playsound(src, 'sound/magic/clockwork/ark_activation.ogg', 50, 0)
+ playsound(src, 'sound/magic/clockwork/ark_activation.ogg', 50, FALSE)
else
to_chat(user, "
The cogwheels are already turning!")
@@ -1161,7 +1161,7 @@
audible_message("
[icon2html(src, viewers(src))] Hiss!")
var/list/possible_sounds = list('sound/voice/hiss1.ogg', 'sound/voice/hiss2.ogg', 'sound/voice/hiss3.ogg', 'sound/voice/hiss4.ogg')
var/chosen_sound = pick(possible_sounds)
- playsound(get_turf(src), chosen_sound, 50, 1)
+ playsound(get_turf(src), chosen_sound, 50, TRUE)
addtimer(VARSET_CALLBACK(src, icon_state, "[initial(icon_state)]"), 4.5 SECONDS)
else
to_chat(user, "
The string on [src] hasn't rewound all the way!")
@@ -1200,7 +1200,7 @@
if(cooldown <= world.time)
cooldown = world.time + 50
to_chat(user, "
[src] says \"[toysay]\"")
- playsound(user, toysound, 20, 1)
+ playsound(user, toysound, 20, TRUE)
/obj/item/toy/figure/cmo
name = "Chief Medical Officer action figure"
diff --git a/code/game/objects/items/twohanded.dm b/code/game/objects/items/twohanded.dm
index 63da83fb556..214eaed6bbd 100644
--- a/code/game/objects/items/twohanded.dm
+++ b/code/game/objects/items/twohanded.dm
@@ -51,7 +51,7 @@
else
to_chat(user, "
You are now carrying [src] with one hand.")
if(unwieldsound)
- playsound(loc, unwieldsound, 50, 1)
+ playsound(loc, unwieldsound, 50, TRUE)
var/obj/item/twohanded/offhand/O = user.get_inactive_held_item()
if(O && istype(O))
O.unwield()
@@ -79,7 +79,7 @@
else
to_chat(user, "
You grab [src] with both hands.")
if (wieldsound)
- playsound(loc, wieldsound, 50, 1)
+ playsound(loc, wieldsound, 50, TRUE)
var/obj/item/twohanded/offhand/O = new(user) ////Let's reserve his other hand~
O.name = "[name] - offhand"
O.desc = "Your second grip on [src]."
@@ -417,7 +417,7 @@
if(C.wear_mask)
in_mouth = ", barely missing [user.p_their()] nose"
. = "
[user] swings [user.p_their()] [name][in_mouth]. [user.p_they(TRUE)] light[user.p_s()] [user.p_their()] [A.name] in the process."
- playsound(loc, hitsound, get_clamped_volume(), 1, -1)
+ playsound(loc, hitsound, get_clamped_volume(), TRUE, -1)
add_fingerprint(user)
// Light your candles while spinning around the room
INVOKE_ASYNC(src, .proc/jedi_spin, user)
@@ -582,13 +582,13 @@
/obj/item/twohanded/required/chainsaw/suicide_act(mob/living/carbon/user)
if(on)
user.visible_message("
[user] begins to tear [user.p_their()] head off with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/weapons/chainsawhit.ogg', 100, 1)
+ playsound(src, 'sound/weapons/chainsawhit.ogg', 100, TRUE)
var/obj/item/bodypart/head/myhead = user.get_bodypart(BODY_ZONE_HEAD)
if(myhead)
myhead.dismember()
else
user.visible_message("
[user] smashes [src] into [user.p_their()] neck, destroying [user.p_their()] esophagus! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/weapons/genhit1.ogg', 100, 1)
+ playsound(src, 'sound/weapons/genhit1.ogg', 100, TRUE)
return(BRUTELOSS)
/obj/item/twohanded/required/chainsaw/attack_self(mob/user)
@@ -624,7 +624,7 @@
/obj/item/twohanded/required/chainsaw/doomslayer/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
if(attack_type == PROJECTILE_ATTACK)
owner.visible_message("
Ranged attacks just make [owner] angrier!")
- playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, 1)
+ playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, TRUE)
return 1
return 0
@@ -727,7 +727,7 @@
if(iswallturf(target))
var/turf/closed/wall/W = target
user.visible_message("
[user] blasts \the [target] with \the [src]!")
- playsound(target, 'sound/magic/disintegrate.ogg', 100, 1)
+ playsound(target, 'sound/magic/disintegrate.ogg', 100, TRUE)
W.break_wall()
W.ScrapeAway(flags = CHANGETURF_INHERIT_AIR)
return
@@ -763,7 +763,7 @@
if(prob(final_block_chance))
if(attack_type == PROJECTILE_ATTACK)
owner.visible_message("
[owner] deflects [attack_text] with [src]!")
- playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, 1)
+ playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, TRUE)
return 1
else
owner.visible_message("
[owner] parries [attack_text] with [src]!")
diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm
index 84edd98cd37..6b25bbd3ff0 100644
--- a/code/game/objects/items/weaponry.dm
+++ b/code/game/objects/items/weaponry.dm
@@ -201,7 +201,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
remove_atom_colour(ADMIN_COLOUR_PRIORITY)
name = new_name
- playsound(user, 'sound/items/screwdriver2.ogg', 50, 1)
+ playsound(user, 'sound/items/screwdriver2.ogg', 50, TRUE)
/obj/item/katana
name = "katana"
@@ -317,7 +317,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
/obj/item/switchblade/attack_self(mob/user)
extended = !extended
- playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/batonextend.ogg', 50, TRUE)
if(extended)
force = 20
w_class = WEIGHT_CLASS_NORMAL
@@ -569,7 +569,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
..()
return
to_chat(user, "
You begin gathering strength...")
- playsound(get_turf(src), 'sound/magic/lightning_chargeup.ogg', 65, 1)
+ playsound(get_turf(src), 'sound/magic/lightning_chargeup.ogg', 65, TRUE)
if(do_after(user, 90, target = src))
to_chat(user, "
You gather power! Time for a home run!")
homerun_ready = 1
@@ -582,7 +582,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
user.visible_message("
It's a home run!")
target.throw_at(throw_target, rand(8,10), 14, user)
target.ex_act(EXPLODE_HEAVY)
- playsound(get_turf(src), 'sound/weapons/homerun.ogg', 100, 1)
+ playsound(get_turf(src), 'sound/weapons/homerun.ogg', 100, TRUE)
homerun_ready = 0
return
else if(!target.anchored)
@@ -600,9 +600,9 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
var/picksound = rand(1,2)
var/turf = get_turf(src)
if(picksound == 1)
- playsound(turf, 'sound/weapons/effects/batreflect1.ogg', 50, 1)
+ playsound(turf, 'sound/weapons/effects/batreflect1.ogg', 50, TRUE)
if(picksound == 2)
- playsound(turf, 'sound/weapons/effects/batreflect2.ogg', 50, 1)
+ playsound(turf, 'sound/weapons/effects/batreflect2.ogg', 50, TRUE)
return 1
/obj/item/melee/flyswatter
@@ -669,7 +669,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
if(L && L.dna && L.dna.species)
L.dna.species.stop_wagging_tail(M)
user.do_attack_animation(M)
- playsound(M, 'sound/weapons/slap.ogg', 50, 1, -1)
+ playsound(M, 'sound/weapons/slap.ogg', 50, TRUE, -1)
user.visible_message("
[user] slaps [M]!",
"
You slap [M]!",\
"
You hear a slap.")
diff --git a/code/game/objects/obj_defense.dm b/code/game/objects/obj_defense.dm
index 0cc18d3786a..73a151886c0 100644
--- a/code/game/objects/obj_defense.dm
+++ b/code/game/objects/obj_defense.dm
@@ -41,11 +41,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src, 'sound/weapons/smash.ogg', 50, 1)
+ playsound(src, 'sound/weapons/smash.ogg', 50, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/hitby(atom/movable/AM, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum)
..()
@@ -68,7 +68,7 @@
/obj/bullet_act(obj/item/projectile/P)
. = ..()
- playsound(src, P.hitsound, 50, 1)
+ playsound(src, P.hitsound, 50, TRUE)
visible_message("
[src] is hit by \a [P]!", null, null, COMBAT_MESSAGE_RANGE)
if(!QDELETED(src)) //Bullet on_hit effect might have already destroyed this object
take_damage(P.damage, P.damage_type, P.flag, 0, turn(P.dir, 180), P.armour_penetration)
@@ -81,9 +81,9 @@
..()
user.visible_message("
[user] smashes [src]!", "
You smash [src]!", null, COMBAT_MESSAGE_RANGE)
if(density)
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
else
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
take_damage(hulk_damage(), BRUTE, "melee", 0, get_dir(src, user))
return TRUE
@@ -101,7 +101,7 @@
/obj/attack_alien(mob/living/carbon/alien/humanoid/user)
if(attack_generic(user, 60, BRUTE, "melee", 0))
- playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1)
+ playsound(src.loc, 'sound/weapons/slash.ogg', 100, TRUE)
/obj/attack_animal(mob/living/simple_animal/M)
if(!M.melee_damage_upper && !M.obj_damage)
@@ -116,7 +116,7 @@
else
. = attack_generic(M, rand(M.melee_damage_lower,M.melee_damage_upper), M.melee_damage_type, "melee", play_soundeffect, M.armour_penetration)
if(. && !play_soundeffect)
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
/obj/force_pushed(atom/movable/pusher, force = MOVE_FORCE_DEFAULT, direction)
return TRUE
@@ -144,11 +144,11 @@
else
switch(M.damtype)
if(BRUTE)
- playsound(src, 'sound/weapons/punch4.ogg', 50, 1)
+ playsound(src, 'sound/weapons/punch4.ogg', 50, TRUE)
if(BURN)
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
if(TOX)
- playsound(src, 'sound/effects/spray2.ogg', 50, 1)
+ playsound(src, 'sound/effects/spray2.ogg', 50, TRUE)
return 0
else
return 0
@@ -186,7 +186,7 @@ GLOBAL_DATUM_INIT(acid_overlay, /mutable_appearance, mutable_appearance('icons/e
if(armour_value != "acid" && armour_value != "fire")
armor = armor.modifyAllRatings(0 - round(sqrt(acid_level)*0.1))
if(prob(33))
- playsound(loc, 'sound/items/welder.ogg', 150, 1)
+ playsound(loc, 'sound/items/welder.ogg', 150, TRUE)
take_damage(min(1 + round(sqrt(acid_level)*0.3), 300), BURN, "acid", 0)
acid_level = max(acid_level - (5 + 3*round(sqrt(acid_level))), 0)
diff --git a/code/game/objects/structures/ai_core.dm b/code/game/objects/structures/ai_core.dm
index 69ce261e1d4..3d16cdbc36a 100644
--- a/code/game/objects/structures/ai_core.dm
+++ b/code/game/objects/structures/ai_core.dm
@@ -110,7 +110,7 @@
if(istype(P, /obj/item/circuitboard/aicore))
if(!user.transferItemToLoc(P, src))
return
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
to_chat(user, "
You place the circuit board inside the frame.")
update_icon()
state = CIRCUIT_CORE
@@ -141,7 +141,7 @@
if(istype(P, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = P
if(C.get_amount() >= 5)
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
to_chat(user, "
You start to add cables to the frame...")
if(do_after(user, 20, target = src) && state == SCREWED_CORE && C.use(5))
to_chat(user, "
You add cables to the frame.")
@@ -165,7 +165,7 @@
if(istype(P, /obj/item/stack/sheet/rglass))
var/obj/item/stack/sheet/rglass/G = P
if(G.get_amount() >= 2)
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
to_chat(user, "
You start to put in the glass panel...")
if(do_after(user, 20, target = src) && state == CABLED_CORE && G.use(2))
to_chat(user, "
You put in the glass panel.")
diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm
index 3cc40c84158..24a68286159 100644
--- a/code/game/objects/structures/aliens.dm
+++ b/code/game/objects/structures/aliens.dm
@@ -24,12 +24,12 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
+ playsound(loc, 'sound/effects/attackblob.ogg', 100, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
if(damage_amount)
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
/*
* Generic alien stuff, not related to the purple lizards but still alien-like
@@ -258,7 +258,7 @@
switch(status)
if(BURST)
to_chat(user, "
You clear the hatched egg.")
- playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
+ playsound(loc, 'sound/effects/attackblob.ogg', 100, TRUE)
qdel(src)
return
if(GROWING)
diff --git a/code/game/objects/structures/barsigns.dm b/code/game/objects/structures/barsigns.dm
index 20241df7d5b..3facd006c9b 100644
--- a/code/game/objects/structures/barsigns.dm
+++ b/code/game/objects/structures/barsigns.dm
@@ -54,9 +54,9 @@
/obj/structure/sign/barsign/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
+ playsound(src.loc, 'sound/effects/glasshit.ogg', 75, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/sign/barsign/attack_ai(mob/user)
return attack_hand(user)
diff --git a/code/game/objects/structures/beds_chairs/alien_nest.dm b/code/game/objects/structures/beds_chairs/alien_nest.dm
index 1208fadc77d..141cabb331a 100644
--- a/code/game/objects/structures/beds_chairs/alien_nest.dm
+++ b/code/game/objects/structures/beds_chairs/alien_nest.dm
@@ -77,9 +77,9 @@
/obj/structure/bed/nest/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(loc, 'sound/effects/attackblob.ogg', 100, 1)
+ playsound(loc, 'sound/effects/attackblob.ogg', 100, TRUE)
if(BURN)
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/bed/nest/attack_alien(mob/living/carbon/alien/user)
if(user.a_intent != INTENT_HARM)
diff --git a/code/game/objects/structures/beds_chairs/bed.dm b/code/game/objects/structures/beds_chairs/bed.dm
index 930f0defb47..034f46aebe9 100644
--- a/code/game/objects/structures/beds_chairs/bed.dm
+++ b/code/game/objects/structures/beds_chairs/bed.dm
@@ -95,7 +95,7 @@
/obj/structure/bed/roller/Moved()
. = ..()
if(has_gravity())
- playsound(src, 'sound/effects/roll.ogg', 100, 1)
+ playsound(src, 'sound/effects/roll.ogg', 100, TRUE)
/obj/structure/bed/roller/post_unbuckle_mob(mob/living/M)
density = FALSE
diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm
index 8737055c479..68bc39c9f46 100644
--- a/code/game/objects/structures/beds_chairs/chair.dm
+++ b/code/game/objects/structures/beds_chairs/chair.dm
@@ -79,7 +79,7 @@
return
var/obj/item/assembly/shock_kit/SK = W
var/obj/structure/chair/e_chair/E = new /obj/structure/chair/e_chair(src.loc)
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
E.setDir(dir)
E.part = SK
SK.forceMove(E)
@@ -210,7 +210,7 @@
/obj/structure/chair/office/Moved()
. = ..()
if(has_gravity())
- playsound(src, 'sound/effects/roll.ogg', 100, 1)
+ playsound(src, 'sound/effects/roll.ogg', 100, TRUE)
/obj/structure/chair/office/light
icon_state = "officechair_white"
@@ -267,7 +267,7 @@
/obj/item/chair/suicide_act(mob/living/carbon/user)
user.visible_message("
[user] begins hitting [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src,hitsound,50,1)
+ playsound(src,hitsound,50,TRUE)
return BRUTELOSS
/obj/item/chair/narsie_act()
diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm
index d1e760490c8..636cc505232 100644
--- a/code/game/objects/structures/crates_lockers/closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets.dm
@@ -136,7 +136,7 @@
/obj/structure/closet/proc/open(mob/living/user)
if(opened || !can_open(user))
return
- playsound(loc, open_sound, open_sound_volume, 1, -3)
+ playsound(loc, open_sound, open_sound_volume, TRUE, -3)
opened = TRUE
if(!dense_when_open)
density = FALSE
@@ -190,7 +190,7 @@
if(!opened || !can_close(user))
return FALSE
take_contents()
- playsound(loc, close_sound, close_sound_volume, 1, -3)
+ playsound(loc, close_sound, close_sound_volume, TRUE, -3)
climb_time = initial(climb_time)
opened = FALSE
density = TRUE
@@ -441,7 +441,7 @@
user.visible_message("
Sparks fly from [src]!",
"
You scramble [src]'s lock, breaking it open!",
"
You hear a faint electrical spark.")
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
broken = TRUE
locked = FALSE
update_icon()
diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm
index e38b58886d5..87700d0d236 100644
--- a/code/game/objects/structures/crates_lockers/crates.dm
+++ b/code/game/objects/structures/crates_lockers/crates.dm
@@ -53,14 +53,14 @@
. = ..()
if(. && manifest)
to_chat(user, "
The manifest is torn off [src].")
- playsound(src, 'sound/items/poster_ripped.ogg', 75, 1)
+ playsound(src, 'sound/items/poster_ripped.ogg', 75, TRUE)
manifest.forceMove(get_turf(src))
manifest = null
update_icon()
/obj/structure/closet/crate/proc/tear_manifest(mob/user)
to_chat(user, "
You tear the manifest off of [src].")
- playsound(src, 'sound/items/poster_ripped.ogg', 75, 1)
+ playsound(src, 'sound/items/poster_ripped.ogg', 75, TRUE)
manifest.forceMove(loc)
if(ishuman(user))
diff --git a/code/game/objects/structures/crates_lockers/crates/bins.dm b/code/game/objects/structures/crates_lockers/crates/bins.dm
index 5737ffb38ec..8ec91148181 100644
--- a/code/game/objects/structures/crates_lockers/crates/bins.dm
+++ b/code/game/objects/structures/crates_lockers/crates/bins.dm
@@ -35,8 +35,8 @@
return ..()
/obj/structure/closet/crate/bin/proc/do_animate()
- playsound(loc, open_sound, 15, 1, -3)
+ playsound(loc, open_sound, 15, TRUE, -3)
flick("animate_largebins", src)
spawn(13)
- playsound(loc, close_sound, 15, 1, -3)
+ playsound(loc, close_sound, 15, TRUE, -3)
update_icon()
diff --git a/code/game/objects/structures/crates_lockers/crates/large.dm b/code/game/objects/structures/crates_lockers/crates/large.dm
index a6f74f8c655..a6be66620a2 100644
--- a/code/game/objects/structures/crates_lockers/crates/large.dm
+++ b/code/game/objects/structures/crates_lockers/crates/large.dm
@@ -27,7 +27,7 @@
user.visible_message("
[user] pries \the [src] open.", \
"
You pry open \the [src].", \
"
You hear splitting wood.")
- playsound(src.loc, 'sound/weapons/slashmiss.ogg', 75, 1)
+ playsound(src.loc, 'sound/weapons/slashmiss.ogg', 75, TRUE)
var/turf/T = get_turf(src)
for(var/i in 1 to material_drop_amount)
diff --git a/code/game/objects/structures/destructible_structures.dm b/code/game/objects/structures/destructible_structures.dm
index cfed4561d49..5c515f54688 100644
--- a/code/game/objects/structures/destructible_structures.dm
+++ b/code/game/objects/structures/destructible_structures.dm
@@ -14,6 +14,6 @@
if(break_message)
visible_message(break_message)
if(break_sound)
- playsound(src, break_sound, 50, 1)
+ playsound(src, break_sound, 50, TRUE)
qdel(src)
return 1
diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm
index 0b73da03c7f..7358db38af0 100644
--- a/code/game/objects/structures/displaycase.dm
+++ b/code/game/objects/structures/displaycase.dm
@@ -55,9 +55,9 @@
/obj/structure/displaycase/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
+ playsound(src.loc, 'sound/effects/glasshit.ogg', 75, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/displaycase/deconstruct(disassembled = TRUE)
if(!(flags_1 & NODECONSTRUCT_1))
@@ -72,7 +72,7 @@
density = FALSE
broken = 1
new /obj/item/shard( src.loc )
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
update_icon()
trigger_alarm()
@@ -81,7 +81,7 @@
if(alert)
var/area/alarmed = get_area(src)
alarmed.burglaralert(src)
- playsound(src, 'sound/effects/alert.ogg', 50, 1)
+ playsound(src, 'sound/effects/alert.ogg', 50, TRUE)
/obj/structure/displaycase/update_icon()
var/icon/I
@@ -195,7 +195,7 @@
to_chat(user, "
You start disassembling [src]...")
I.play_tool_sound(src)
if(I.use_tool(src, user, 30))
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
new /obj/item/stack/sheet/mineral/wood(get_turf(src), 5)
qdel(src)
diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm
index 6a3c3c9630e..7de5940ba43 100644
--- a/code/game/objects/structures/door_assembly.dm
+++ b/code/game/objects/structures/door_assembly.dm
@@ -187,7 +187,7 @@
if(!noglass)
if(!glass)
if(istype(G, /obj/item/stack/sheet/rglass) || istype(G, /obj/item/stack/sheet/glass))
- playsound(src, 'sound/items/crowbar.ogg', 100, 1)
+ playsound(src, 'sound/items/crowbar.ogg', 100, TRUE)
user.visible_message("
[user] adds [G.name] to the airlock assembly.", \
"
You start to install [G.name] into the airlock assembly...")
if(do_after(user, 40, target = src))
@@ -206,7 +206,7 @@
if(istype(G, /obj/item/stack/sheet/mineral) && G.sheettype)
var/M = G.sheettype
if(G.get_amount() >= 2)
- playsound(src, 'sound/items/crowbar.ogg', 100, 1)
+ playsound(src, 'sound/items/crowbar.ogg', 100, TRUE)
user.visible_message("
[user] adds [G.name] to the airlock assembly.", \
"
You start to install [G.name] into the airlock assembly...")
if(do_after(user, 40, target = src))
diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm
index 762a4b10837..adec4b2ae45 100644
--- a/code/game/objects/structures/extinguisher.dm
+++ b/code/game/objects/structures/extinguisher.dm
@@ -45,7 +45,7 @@
to_chat(user, "
You start unsecuring [name]...")
I.play_tool_sound(src)
if(I.use_tool(src, user, 60))
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
to_chat(user, "
You unsecure [name].")
deconstruct(TRUE)
return
@@ -80,7 +80,7 @@
stored_extinguisher = null
if(!opened)
opened = 1
- playsound(loc, 'sound/machines/click.ogg', 15, 1, -3)
+ playsound(loc, 'sound/machines/click.ogg', 15, TRUE, -3)
update_icon()
else
toggle_cabinet(user)
@@ -92,7 +92,7 @@
to_chat(user, "
You telekinetically remove [stored_extinguisher] from [src].")
stored_extinguisher = null
opened = 1
- playsound(loc, 'sound/machines/click.ogg', 15, 1, -3)
+ playsound(loc, 'sound/machines/click.ogg', 15, TRUE, -3)
update_icon()
else
toggle_cabinet(user)
@@ -110,7 +110,7 @@
if(opened && broken)
to_chat(user, "
[src] is broken open.")
else
- playsound(loc, 'sound/machines/click.ogg', 15, 1, -3)
+ playsound(loc, 'sound/machines/click.ogg', 15, TRUE, -3)
opened = !opened
update_icon()
diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm
index 5f09727e896..884b392cf55 100644
--- a/code/game/objects/structures/false_walls.dm
+++ b/code/game/objects/structures/false_walls.dm
@@ -118,7 +118,7 @@
if(tool)
tool.play_tool_sound(src, 100)
else
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
deconstruct(disassembled)
/obj/structure/falsewall/deconstruct(disassembled = TRUE)
@@ -243,7 +243,7 @@
return ..()
/obj/structure/falsewall/plasma/proc/burnbabyburn(user)
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
atmos_spawn_air("plasma=400;TEMP=1000")
new /obj/structure/girder/displaced(loc)
qdel(src)
diff --git a/code/game/objects/structures/fence.dm b/code/game/objects/structures/fence.dm
index 195f5ee3688..9683bf4a953 100644
--- a/code/game/objects/structures/fence.dm
+++ b/code/game/objects/structures/fence.dm
@@ -137,7 +137,7 @@
open = FALSE
update_door_status()
- playsound(src, 'sound/machines/click.ogg', 100, 1)
+ playsound(src, 'sound/machines/click.ogg', 100, TRUE)
/obj/structure/fence/door/proc/update_door_status()
switch(open)
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index c97306cb3d8..cbc194a50d4 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -69,11 +69,11 @@
switch(damage_type)
if(BRUTE)
if(broken)
- playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 90, 1)
+ playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 90, TRUE)
else
- playsound(loc, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(loc, 'sound/effects/glasshit.ogg', 90, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/fireaxecabinet/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir)
if(open)
@@ -86,7 +86,7 @@
if(!broken && !(flags_1 & NODECONSTRUCT_1))
update_icon()
broken = TRUE
- playsound(src, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(src, 'sound/effects/glassbr3.ogg', 100, TRUE)
new /obj/item/shard(loc)
new /obj/item/shard(loc)
@@ -167,7 +167,7 @@
/obj/structure/fireaxecabinet/proc/toggle_lock(mob/user)
to_chat(user, "
Resetting circuitry...")
- playsound(src, 'sound/machines/locktoggle.ogg', 50, 1)
+ playsound(src, 'sound/machines/locktoggle.ogg', 50, TRUE)
if(do_after(user, 20, target = src))
to_chat(user, "
You [locked ? "disable" : "re-enable"] the locking modules.")
locked = !locked
diff --git a/code/game/objects/structures/fireplace.dm b/code/game/objects/structures/fireplace.dm
index 2735bd7e81a..0366e9bf134 100644
--- a/code/game/objects/structures/fireplace.dm
+++ b/code/game/objects/structures/fireplace.dm
@@ -109,7 +109,7 @@
put_out()
return
- playsound(src, 'sound/effects/comfyfire.ogg',50,0, 0, 1)
+ playsound(src, 'sound/effects/comfyfire.ogg',50,FALSE, FALSE, TRUE)
var/turf/T = get_turf(src)
T.hotspot_expose(700, 5)
update_icon()
diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm
index a9d7dd40fd2..253d27c8e1c 100644
--- a/code/game/objects/structures/flora.dm
+++ b/code/game/objects/structures/flora.dm
@@ -16,11 +16,11 @@
if(log_amount && (!(flags_1 & NODECONSTRUCT_1)))
if(W.is_sharp() && W.force > 0)
if(W.hitsound)
- playsound(get_turf(src), W.hitsound, 100, 0, 0)
+ playsound(get_turf(src), W.hitsound, 100, FALSE, FALSE)
user.visible_message("
[user] begins to cut down [src] with [W].","
You begin to cut down [src] with [W].", "
You hear the sound of sawing.")
if(do_after(user, 1000/W.force, target = src)) //5 seconds with 20 force, 8 seconds with a hatchet, 20 seconds with a shard.
user.visible_message("
[user] fells [src] with the [W].","
You fell [src] with the [W].", "
You hear the sound of a tree falling.")
- playsound(get_turf(src), 'sound/effects/meteorimpact.ogg', 100 , 0, 0)
+ playsound(get_turf(src), 'sound/effects/meteorimpact.ogg', 100 , FALSE, FALSE)
for(var/i=1 to log_amount)
new /obj/item/grown/log/tree(get_turf(src))
diff --git a/code/game/objects/structures/fluff.dm b/code/game/objects/structures/fluff.dm
index 1e5cb365f44..e950dac2162 100644
--- a/code/game/objects/structures/fluff.dm
+++ b/code/game/objects/structures/fluff.dm
@@ -16,7 +16,7 @@
I.play_tool_sound(src)
if(I.use_tool(src, user, 50))
user.visible_message("
[user] disassembles [src]!", "
You break down [src] into scrap metal.")
- playsound(user, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(user, 'sound/items/deconstruct.ogg', 50, TRUE)
new/obj/item/stack/sheet/metal(drop_location())
qdel(src)
return
@@ -104,7 +104,7 @@
icon_state = "driverseat"
/obj/structure/fluff/bus/passable/seat/driver/attack_hand(mob/user)
- playsound(src, 'sound/items/carhorn.ogg', 50, 1)
+ playsound(src, 'sound/items/carhorn.ogg', 50, TRUE)
. = ..()
/obj/structure/fluff/paper
diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm
index cfaf063143e..0f4b2feed60 100644
--- a/code/game/objects/structures/grille.dm
+++ b/code/game/objects/structures/grille.dm
@@ -208,11 +208,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src, 'sound/effects/grillehit.ogg', 80, 1)
+ playsound(src, 'sound/effects/grillehit.ogg', 80, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src, 'sound/items/welder.ogg', 80, 1)
+ playsound(src, 'sound/items/welder.ogg', 80, TRUE)
/obj/structure/grille/deconstruct(disassembled = TRUE)
@@ -268,7 +268,7 @@
var/turf/T = get_turf(src)
var/obj/structure/cable/C = T.get_cable_node()
if(C)
- playsound(src, 'sound/magic/lightningshock.ogg', 100, 1, extrarange = 5)
+ playsound(src, 'sound/magic/lightningshock.ogg', 100, TRUE, extrarange = 5)
tesla_zap(src, 3, C.newavail() * 0.01, TESLA_MOB_DAMAGE | TESLA_OBJ_DAMAGE | TESLA_MOB_STUN | TESLA_ALLOW_DUPLICATES) //Zap for 1/100 of the amount of power. At a million watts in the grid, it will be as powerful as a tesla revolver shot.
C.add_delayedload(C.newavail() * 0.0375) // you can gain up to 3.5 via the 4x upgrades power is halved by the pole so thats 2x then 1X then .5X for 3.5x the 3 bounces shock.
return ..()
diff --git a/code/game/objects/structures/guillotine.dm b/code/game/objects/structures/guillotine.dm
index 127776613af..6f6a14308f6 100644
--- a/code/game/objects/structures/guillotine.dm
+++ b/code/game/objects/structures/guillotine.dm
@@ -123,7 +123,7 @@
if (QDELETED(head))
return
- playsound(src, 'sound/weapons/bladeslice.ogg', 100, 1)
+ playsound(src, 'sound/weapons/bladeslice.ogg', 100, TRUE)
if (blade_sharpness >= GUILLOTINE_DECAP_MIN_SHARP || head.brute_dam >= 100)
head.dismember()
log_combat(user, H, "beheaded", src)
@@ -175,7 +175,7 @@
user.visible_message("
[user] sharpens the large blade of the guillotine.",
"
You sharpen the large blade of the guillotine.")
blade_sharpness += 1
- playsound(src, 'sound/items/unsheath.ogg', 100, 1)
+ playsound(src, 'sound/items/unsheath.ogg', 100, TRUE)
return
else
blade_status = GUILLOTINE_BLADE_RAISED
diff --git a/code/game/objects/structures/hivebot.dm b/code/game/objects/structures/hivebot.dm
index 741b24b6e97..6813b6f3848 100644
--- a/code/game/objects/structures/hivebot.dm
+++ b/code/game/objects/structures/hivebot.dm
@@ -14,7 +14,7 @@
smoke.set_up(2, loc)
smoke.start()
visible_message("
[src] warps in!")
- playsound(src.loc, 'sound/effects/empulse.ogg', 25, 1)
+ playsound(src.loc, 'sound/effects/empulse.ogg', 25, TRUE)
addtimer(CALLBACK(src, .proc/warpbots), rand(10, 600))
/obj/structure/hivebot_beacon/proc/warpbots()
@@ -31,6 +31,6 @@
new /mob/living/simple_animal/hostile/hivebot/rapid(get_turf(src))
sleep(100)
visible_message("
[src] warps out!")
- playsound(src.loc, 'sound/effects/empulse.ogg', 25, 1)
+ playsound(src.loc, 'sound/effects/empulse.ogg', 25, TRUE)
qdel(src)
return
diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm
index 66cf99b0c99..dcc440de297 100644
--- a/code/game/objects/structures/holosign.dm
+++ b/code/game/objects/structures/holosign.dm
@@ -37,9 +37,9 @@
/obj/structure/holosign/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(loc, 'sound/weapons/egloves.ogg', 80, 1)
+ playsound(loc, 'sound/weapons/egloves.ogg', 80, TRUE)
if(BURN)
- playsound(loc, 'sound/weapons/egloves.ogg', 80, 1)
+ playsound(loc, 'sound/weapons/egloves.ogg', 80, TRUE)
/obj/structure/holosign/wetsign
name = "wet floor sign"
@@ -133,7 +133,7 @@
var/threat = sickboi.check_virus()
if(get_disease_severity_value(threat) > get_disease_severity_value(DISEASE_SEVERITY_MINOR))
if(buzzcd < world.time)
- playsound(get_turf(src),'sound/machines/buzz-sigh.ogg',65,1,4)
+ playsound(get_turf(src),'sound/machines/buzz-sigh.ogg',65,TRUE,4)
buzzcd = (world.time + 60)
icon_state = "holo_medical-deny"
return FALSE
diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm
index 97010a77295..e322a863afc 100644
--- a/code/game/objects/structures/janicart.dm
+++ b/code/game/objects/structures/janicart.dm
@@ -27,7 +27,7 @@
var/obj/item/mop/M = mop
reagents.trans_to(mop, M.mopcap, transfered_by = user)
to_chat(user, "
You wet [mop] in [src].")
- playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
+ playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
return 1
/obj/structure/janitorialcart/proc/put_in_cart(obj/item/I, mob/user)
diff --git a/code/game/objects/structures/kitchen_spike.dm b/code/game/objects/structures/kitchen_spike.dm
index 4234de76065..95829f32e52 100644
--- a/code/game/objects/structures/kitchen_spike.dm
+++ b/code/game/objects/structures/kitchen_spike.dm
@@ -71,7 +71,7 @@
return
if(user.pulling != L)
return
- playsound(src.loc, 'sound/effects/splat.ogg', 25, 1)
+ playsound(src.loc, 'sound/effects/splat.ogg', 25, TRUE)
L.visible_message("
[user] slams [L] onto the meat spike!", "
[user] slams you onto the meat spike!", "
You hear a squishy wet noise.")
L.forceMove(drop_location())
L.emote("scream")
diff --git a/code/game/objects/structures/lavaland/necropolis_tendril.dm b/code/game/objects/structures/lavaland/necropolis_tendril.dm
index edea07c1324..485630839dc 100644
--- a/code/game/objects/structures/lavaland/necropolis_tendril.dm
+++ b/code/game/objects/structures/lavaland/necropolis_tendril.dm
@@ -79,7 +79,7 @@ GLOBAL_LIST_INIT(tendrils, list())
emitted_light = new(loc)
visible_message("
The tendril writhes in fury as the earth around it begins to crack and break apart! Get back!")
visible_message("
Something falls free of the tendril!")
- playsound(loc,'sound/effects/tendril_destroyed.ogg', 200, 0, 50, 1, 1)
+ playsound(loc,'sound/effects/tendril_destroyed.ogg', 200, FALSE, 50, TRUE, TRUE)
addtimer(CALLBACK(src, .proc/collapse), 50)
/obj/effect/collapse/Destroy()
@@ -89,7 +89,7 @@ GLOBAL_LIST_INIT(tendrils, list())
/obj/effect/collapse/proc/collapse()
for(var/mob/M in range(7,src))
shake_camera(M, 15, 1)
- playsound(get_turf(src),'sound/effects/explosionfar.ogg', 200, 1)
+ playsound(get_turf(src),'sound/effects/explosionfar.ogg', 200, TRUE)
visible_message("
The tendril falls inward, the ground around it widening into a yawning chasm!")
for(var/turf/T in range(2,src))
if(!T.density)
diff --git a/code/game/objects/structures/life_candle.dm b/code/game/objects/structures/life_candle.dm
index 0ae0e29459a..247e03f7f02 100644
--- a/code/game/objects/structures/life_candle.dm
+++ b/code/game/objects/structures/life_candle.dm
@@ -91,4 +91,4 @@
if(ishuman(body) && istype(outfit))
outfit.equip(body)
- playsound(T, respawn_sound, 50, 1)
+ playsound(T, respawn_sound, 50, TRUE)
diff --git a/code/game/objects/structures/manned_turret.dm b/code/game/objects/structures/manned_turret.dm
index 80ffced5a2b..a8c8d6e7314 100644
--- a/code/game/objects/structures/manned_turret.dm
+++ b/code/game/objects/structures/manned_turret.dm
@@ -30,7 +30,7 @@
//BUCKLE HOOKS
/obj/machinery/manned_turret/unbuckle_mob(mob/living/buckled_mob,force = FALSE)
- playsound(src,'sound/mecha/mechmove01.ogg', 50, 1)
+ playsound(src,'sound/mecha/mechmove01.ogg', 50, TRUE)
for(var/obj/item/I in buckled_mob.held_items)
if(istype(I, /obj/item/gun_control))
qdel(I)
@@ -62,7 +62,7 @@
M.pixel_y = 14
layer = ABOVE_MOB_LAYER
setDir(SOUTH)
- playsound(src,'sound/mecha/mechmove01.ogg', 50, 1)
+ playsound(src,'sound/mecha/mechmove01.ogg', 50, TRUE)
anchored = TRUE
if(M.client)
M.client.change_view(view_range)
@@ -132,7 +132,7 @@
if(world.time < cooldown)
if(!warned && world.time > (cooldown - cooldown_duration + rate_of_fire*number_of_shots)) // To capture the window where one is done firing
warned = TRUE
- playsound(src, 'sound/weapons/sear.ogg', 100, 1)
+ playsound(src, 'sound/weapons/sear.ogg', 100, TRUE)
return
else
cooldown = world.time + cooldown_duration
@@ -155,7 +155,7 @@
P.starting = targets_from
P.firer = user
P.original = target
- playsound(src, 'sound/weapons/gunshot_smg.ogg', 75, 1)
+ playsound(src, 'sound/weapons/gunshot_smg.ogg', 75, TRUE)
P.xo = target.x - targets_from.x
P.yo = target.y - targets_from.y
P.Angle = calculated_projectile_vars[1] + rand(-9, 9)
diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm
index 462aa1d8a33..61d49f4c1d1 100644
--- a/code/game/objects/structures/mineral_doors.dm
+++ b/code/game/objects/structures/mineral_doors.dm
@@ -87,7 +87,7 @@
/obj/structure/mineral_door/proc/Open()
isSwitchingStates = TRUE
- playsound(src, openSound, 100, 1)
+ playsound(src, openSound, 100, TRUE)
set_opacity(FALSE)
flick("[initial(icon_state)]opening",src)
sleep(10)
@@ -108,7 +108,7 @@
for(var/mob/living/L in T)
return
isSwitchingStates = TRUE
- playsound(src, closeSound, 100, 1)
+ playsound(src, closeSound, 100, TRUE)
flick("[initial(icon_state)]closing",src)
sleep(10)
density = TRUE
diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm
index 095992a8c19..45f64500fd6 100644
--- a/code/game/objects/structures/mirror.dm
+++ b/code/game/objects/structures/mirror.dm
@@ -55,7 +55,7 @@
if(!broken && !(flags_1 & NODECONSTRUCT_1))
icon_state = "mirror_broke"
if(!mapload)
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
if(desc == initial(desc))
desc = "Oh no, seven years of bad luck!"
broken = TRUE
@@ -89,9 +89,9 @@
/obj/structure/mirror/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1)
+ playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, TRUE)
if(BURN)
- playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1)
+ playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, TRUE)
/obj/structure/mirror/magic
diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm
index bb34ecfec7d..2dffd042499 100644
--- a/code/game/objects/structures/mop_bucket.dm
+++ b/code/game/objects/structures/mop_bucket.dm
@@ -18,7 +18,7 @@
else
reagents.trans_to(I, 5, transfered_by = user)
to_chat(user, "
You wet [I] in [src].")
- playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
+ playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
update_icon()
else
. = ..()
diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm
index 4017584f05e..7be151cb34c 100644
--- a/code/game/objects/structures/morgue.dm
+++ b/code/game/objects/structures/morgue.dm
@@ -123,8 +123,8 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
/obj/structure/bodycontainer/proc/open()
recursive_organ_check(src)
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
- playsound(src, 'sound/effects/roll.ogg', 5, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
+ playsound(src, 'sound/effects/roll.ogg', 5, TRUE)
var/turf/T = get_step(src, dir)
connected.setDir(dir)
for(var/atom/movable/AM in src)
@@ -132,8 +132,8 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
update_icon()
/obj/structure/bodycontainer/proc/close()
- playsound(src, 'sound/effects/roll.ogg', 5, 1)
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/effects/roll.ogg', 5, TRUE)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
for(var/atom/movable/AM in connected.loc)
if(!AM.anchored || AM == connected)
if(ismob(AM) && !isliving(AM))
@@ -192,7 +192,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
icon_state = "morgue4" // Cloneable
if(mob_occupant.stat == DEAD && beeper)
if(world.time > next_beep)
- playsound(src, 'sound/weapons/smg_empty_alarm.ogg', 50, 0) //Clone them you blind fucks
+ playsound(src, 'sound/weapons/smg_empty_alarm.ogg', 50, FALSE) //Clone them you blind fucks
next_beep = world.time + beep_cooldown
break
@@ -287,7 +287,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
if(!QDELETED(src))
locked = FALSE
update_icon()
- playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) //you horrible people
+ playsound(src.loc, 'sound/machines/ding.ogg', 50, TRUE) //you horrible people
/obj/structure/bodycontainer/crematorium/creamatorium
name = "creamatorium"
diff --git a/code/game/objects/structures/signs/_signs.dm b/code/game/objects/structures/signs/_signs.dm
index ef7e29d03e0..daed91e31c8 100644
--- a/code/game/objects/structures/signs/_signs.dm
+++ b/code/game/objects/structures/signs/_signs.dm
@@ -18,11 +18,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src.loc, 'sound/weapons/slash.ogg', 80, 1)
+ playsound(src.loc, 'sound/weapons/slash.ogg', 80, TRUE)
else
- playsound(loc, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(loc, 'sound/items/welder.ogg', 80, 1)
+ playsound(loc, 'sound/items/welder.ogg', 80, TRUE)
/obj/structure/sign/attackby(obj/item/I, mob/user, params)
if(I.tool_behaviour == TOOL_WRENCH && buildable_sign)
@@ -30,7 +30,7 @@
"
You start unfastening [src].")
I.play_tool_sound(src)
if(I.use_tool(src, user, 40))
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("
[user] unfastens [src].", \
"
You unfasten [src].")
var/obj/item/sign_backing/SB = new (get_turf(user))
@@ -105,7 +105,7 @@
var/turf/T = target
user.visible_message("
[user] fastens [src] to [T].", \
"
You attach the sign to [T].")
- playsound(T, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(T, 'sound/items/deconstruct.ogg', 50, TRUE)
var/obj/structure/sign/S = new sign_path(T)
S.setDir(dir)
qdel(src)
diff --git a/code/game/objects/structures/statues.dm b/code/game/objects/structures/statues.dm
index b44f19982d5..a67ec4fe66d 100644
--- a/code/game/objects/structures/statues.dm
+++ b/code/game/objects/structures/statues.dm
@@ -255,7 +255,7 @@
/obj/structure/statue/bananium/proc/honk()
if(!spam_flag)
spam_flag = TRUE
- playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/bikehorn.ogg', 50, TRUE)
addtimer(VARSET_CALLBACK(src, spam_flag, FALSE), 2 SECONDS)
/////////////////////sandstone/////////////////////////////////////////
diff --git a/code/game/objects/structures/table_frames.dm b/code/game/objects/structures/table_frames.dm
index 5d0f1cd5273..9520fc76ae2 100644
--- a/code/game/objects/structures/table_frames.dm
+++ b/code/game/objects/structures/table_frames.dm
@@ -26,7 +26,7 @@
to_chat(user, "
You start disassembling [src]...")
I.play_tool_sound(src)
if(I.use_tool(src, user, 30))
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
deconstruct(TRUE)
else if(istype(I, /obj/item/stack/sheet/plasteel))
var/obj/item/stack/sheet/plasteel/P = I
diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm
index 0481f9cd957..98e6484c0c1 100644
--- a/code/game/objects/structures/tables_racks.dm
+++ b/code/game/objects/structures/tables_racks.dm
@@ -146,7 +146,7 @@
if(I.tool_behaviour == TOOL_WRENCH && deconstruction_ready)
to_chat(user, "
You start deconstructing [src]...")
if(I.use_tool(src, user, 40, volume=50))
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
deconstruct(TRUE, 1)
return
@@ -231,7 +231,7 @@
visible_message("
[src] breaks!",
"
You hear breaking glass.")
var/turf/T = get_turf(src)
- playsound(T, "shatter", 50, 1)
+ playsound(T, "shatter", 50, TRUE)
for(var/I in debris)
var/atom/movable/AM = I
AM.forceMove(T)
@@ -248,7 +248,7 @@
return
else
var/turf/T = get_turf(src)
- playsound(T, "shatter", 50, 1)
+ playsound(T, "shatter", 50, TRUE)
for(var/X in debris)
var/atom/movable/AM = X
AM.forceMove(T)
@@ -514,11 +514,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(loc, 'sound/items/dodgeball.ogg', 80, 1)
+ playsound(loc, 'sound/items/dodgeball.ogg', 80, TRUE)
else
- playsound(loc, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(loc, 'sound/items/welder.ogg', 40, 1)
+ playsound(loc, 'sound/items/welder.ogg', 40, TRUE)
/*
* Rack destruction
diff --git a/code/game/objects/structures/traps.dm b/code/game/objects/structures/traps.dm
index 4d8d29d0d81..83b6f71bc5c 100644
--- a/code/game/objects/structures/traps.dm
+++ b/code/game/objects/structures/traps.dm
@@ -149,7 +149,7 @@
/obj/item/bountytrap/proc/announce_fugitive()
spark_system.start()
- playsound(src, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src, 'sound/machines/ding.ogg', 50, TRUE)
radio.talk_into(src, "Fugitive has triggered this trap in the [get_area_name(src)]!", RADIO_CHANNEL_COMMON)
/obj/item/bountytrap/attack_self(mob/living/user)
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index 8df9e9b4bea..d098ccb79fe 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -23,7 +23,7 @@
return
if(swirlie)
user.changeNext_move(CLICK_CD_MELEE)
- playsound(src.loc, "swing_hit", 25, 1)
+ playsound(src.loc, "swing_hit", 25, TRUE)
swirlie.visible_message("
[user] slams the toilet seat onto [swirlie]'s head!", "
[user] slams the toilet seat onto your head!", "
You hear reverberating porcelain.")
swirlie.adjustBruteLoss(5)
@@ -48,7 +48,7 @@
GM.adjustOxyLoss(5)
swirlie = null
else
- playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
+ playsound(src.loc, 'sound/effects/bang.ogg', 25, TRUE)
GM.visible_message("
[user] slams [GM.name] into [src]!", "
[user] slams you into [src]!")
GM.adjustBruteLoss(5)
else
@@ -77,7 +77,7 @@
/obj/structure/toilet/attackby(obj/item/I, mob/living/user, params)
if(I.tool_behaviour == TOOL_CROWBAR)
to_chat(user, "
You start to [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]...")
- playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, 1)
+ playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, TRUE)
if(I.use_tool(src, user, 30))
user.visible_message("
[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!", "
You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!", "
You hear grinding porcelain.")
cistern = !cistern
@@ -184,7 +184,7 @@
if(..())
return TRUE
to_chat(user, "
You start to [exposed ? "screw the cap back into place" : "unscrew the cap to the drain protector"]...")
- playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, 1)
+ playsound(loc, 'sound/effects/stonedoor_openclose.ogg', 50, TRUE)
if(I.use_tool(src, user, 20))
user.visible_message("
[user] [exposed ? "screws the cap back into place" : "unscrew the cap to the drain protector"]!",
"
You [exposed ? "screw the cap back into place" : "unscrew the cap on the drain"]!",
@@ -291,13 +291,13 @@
B.deductcharge(B.hitcost)
user.visible_message("
[user] shocks [user.p_them()]self while attempting to wash the active [B.name]!", \
"
You unwisely attempt to wash [B] while it's still on.")
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
return
if(istype(O, /obj/item/mop))
O.reagents.add_reagent(dispensedreagent, 5)
to_chat(user, "
You wet [O] in [src].")
- playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
+ playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
return
if(istype(O, /obj/item/stack/medical/gauze))
@@ -426,7 +426,7 @@
. = ..()
if(.)
return
- playsound(loc, 'sound/effects/curtain.ogg', 50, 1)
+ playsound(loc, 'sound/effects/curtain.ogg', 50, TRUE)
toggle()
/obj/structure/curtain/deconstruct(disassembled = TRUE)
@@ -439,11 +439,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src.loc, 'sound/weapons/slash.ogg', 80, 1)
+ playsound(src.loc, 'sound/weapons/slash.ogg', 80, TRUE)
else
- playsound(loc, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(loc, 'sound/items/welder.ogg', 80, 1)
+ playsound(loc, 'sound/items/welder.ogg', 80, TRUE)
/obj/structure/curtain/bounty
icon_type = "bounty"
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index 9a50c7646e4..29d63a4da59 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -132,7 +132,7 @@
user.changeNext_move(CLICK_CD_MELEE)
user.visible_message("
Something knocks on [src].")
add_fingerprint(user)
- playsound(src, 'sound/effects/Glassknock.ogg', 50, 1)
+ playsound(src, 'sound/effects/Glassknock.ogg', 50, TRUE)
/obj/structure/window/attack_hulk(mob/living/carbon/human/user, does_attack_animation = 0)
if(!can_be_reached(user))
@@ -149,7 +149,7 @@
user.visible_message("
[user] knocks on [src].", \
"
You knock on [src].")
add_fingerprint(user)
- playsound(src, 'sound/effects/Glassknock.ogg', 50, 1)
+ playsound(src, 'sound/effects/Glassknock.ogg', 50, TRUE)
/obj/structure/window/attack_paw(mob/user)
return attack_hand(user)
@@ -242,18 +242,18 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src, hitsound, 75, 1)
+ playsound(src, hitsound, 75, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src, 'sound/items/Welder.ogg', 100, 1)
+ playsound(src, 'sound/items/Welder.ogg', 100, TRUE)
/obj/structure/window/deconstruct(disassembled = TRUE)
if(QDELETED(src))
return
if(!disassembled)
- playsound(src, breaksound, 70, 1)
+ playsound(src, breaksound, 70, TRUE)
if(!(flags_1 & NODECONSTRUCT_1))
for(var/obj/item/shard/debris in spawnDebris(drop_location()))
transfer_fingerprints_to(debris) // transfer fingerprints to shards only
@@ -838,10 +838,10 @@
if(user.a_intent != INTENT_HARM)
user.changeNext_move(CLICK_CD_MELEE)
user.visible_message("
[user] knocks on [src].")
- playsound(src, "pageturn", 50, 1)
+ playsound(src, "pageturn", 50, TRUE)
else
take_damage(4,BRUTE,"melee", 0)
- playsound(src, hitsound, 50, 1)
+ playsound(src, hitsound, 50, TRUE)
if(!QDELETED(src))
user.visible_message("
[user] tears a hole in [src].")
update_icon()
diff --git a/code/game/turfs/open.dm b/code/game/turfs/open.dm
index 2efd51a6bae..fd80a5c9494 100644
--- a/code/game/turfs/open.dm
+++ b/code/game/turfs/open.dm
@@ -63,7 +63,7 @@
/turf/open/indestructible/sound/Entered(var/mob/AM)
..()
if(istype(AM))
- playsound(src,sound,50,1)
+ playsound(src,sound,50,TRUE)
/turf/open/indestructible/necropolis
name = "necropolis floor"
@@ -232,7 +232,7 @@
return 0
if(!(lube&SLIDE_ICE))
to_chat(C, "
You slipped[ O ? " on the [O.name]" : ""]!")
- playsound(C.loc, 'sound/misc/slip.ogg', 50, 1, -3)
+ playsound(C.loc, 'sound/misc/slip.ogg', 50, TRUE, -3)
SEND_SIGNAL(C, COMSIG_ADD_MOOD_EVENT, "slipped", /datum/mood_event/slipped)
if(force_drop)
diff --git a/code/game/turfs/openspace/openspace.dm b/code/game/turfs/openspace/openspace.dm
index 5b0ca7151a6..6a0e5d0f928 100644
--- a/code/game/turfs/openspace/openspace.dm
+++ b/code/game/turfs/openspace/openspace.dm
@@ -79,14 +79,14 @@
if(L)
if(R.use(1))
to_chat(user, "
You construct a catwalk.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
new/obj/structure/lattice/catwalk(src)
else
to_chat(user, "
You need two rods to build a catwalk!")
return
if(R.use(1))
to_chat(user, "
You construct a lattice.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
ReplaceWithLattice()
else
to_chat(user, "
You need one rod to build a lattice.")
@@ -99,7 +99,7 @@
var/obj/item/stack/tile/plasteel/S = C
if(S.use(1))
qdel(L)
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
to_chat(user, "
You build a floor.")
PlaceOnTop(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
else
diff --git a/code/game/turfs/simulated/chasm.dm b/code/game/turfs/simulated/chasm.dm
index ee283b8dd30..ff7b8141af9 100644
--- a/code/game/turfs/simulated/chasm.dm
+++ b/code/game/turfs/simulated/chasm.dm
@@ -55,7 +55,7 @@
if(!L)
if(R.use(1))
to_chat(user, "
You construct a lattice.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
// Create a lattice, without reverting to our baseturf
new /obj/structure/lattice(src)
else
@@ -67,7 +67,7 @@
var/obj/item/stack/tile/plasteel/S = C
if(S.use(1))
qdel(L)
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
to_chat(user, "
You build a floor.")
// Create a floor, which has this chasm underneath it
PlaceOnTop(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
diff --git a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm
index 267d176bf9a..04953472222 100644
--- a/code/game/turfs/simulated/floor/fancy_floor.dm
+++ b/code/game/turfs/simulated/floor/fancy_floor.dm
@@ -91,7 +91,7 @@
if((C.tool_behaviour == TOOL_SHOVEL) && params)
new ore_type(src, 2)
user.visible_message("
[user] digs up [src].", "
You [turfverb] [src].")
- playsound(src, 'sound/effects/shovel_dig.ogg', 50, 1)
+ playsound(src, 'sound/effects/shovel_dig.ogg', 50, TRUE)
make_plating()
if(..())
return
diff --git a/code/game/turfs/simulated/floor/mineral_floor.dm b/code/game/turfs/simulated/floor/mineral_floor.dm
index c1466b11e61..5ff37504b52 100644
--- a/code/game/turfs/simulated/floor/mineral_floor.dm
+++ b/code/game/turfs/simulated/floor/mineral_floor.dm
@@ -161,12 +161,12 @@
/turf/open/floor/mineral/bananium/proc/honk()
if(spam_flag < world.time)
- playsound(src, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)
spam_flag = world.time + 20
/turf/open/floor/mineral/bananium/proc/squeak()
if(spam_flag < world.time)
- playsound(src, "clownstep", 50, 1)
+ playsound(src, "clownstep", 50, TRUE)
spam_flag = world.time + 10
/turf/open/floor/mineral/bananium/airless
diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm
index 16d74d708f6..f4b50c1bae5 100644
--- a/code/game/turfs/simulated/floor/plating.dm
+++ b/code/game/turfs/simulated/floor/plating.dm
@@ -62,7 +62,7 @@
if(do_after(user, 30, target = src))
if (R.get_amount() >= 2 && !istype(src, /turf/open/floor/engine))
PlaceOnTop(/turf/open/floor/engine, flags = CHANGETURF_INHERIT_AIR)
- playsound(src, 'sound/items/deconstruct.ogg', 80, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 80, TRUE)
R.use(2)
to_chat(user, "
You reinforce the floor.")
return
@@ -81,7 +81,7 @@
var/obj/item/stack/tile/light/L = W
var/turf/open/floor/light/F = T
F.state = L.state
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
else
to_chat(user, "
This section is too damaged to support a tile! Use a welder to fix the damage.")
diff --git a/code/game/turfs/simulated/minerals.dm b/code/game/turfs/simulated/minerals.dm
index c7c1f502572..38c133b2d77 100644
--- a/code/game/turfs/simulated/minerals.dm
+++ b/code/game/turfs/simulated/minerals.dm
@@ -80,7 +80,7 @@
flags = CHANGETURF_DEFER_CHANGE
ScrapeAway(null, flags)
addtimer(CALLBACK(src, .proc/AfterChange), 1, TIMER_UNIQUE)
- playsound(src, 'sound/effects/break_stone.ogg', 50, 1) //beautiful destruction
+ playsound(src, 'sound/effects/break_stone.ogg', 50, TRUE) //beautiful destruction
/turf/closed/mineral/attack_animal(mob/living/simple_animal/user)
if((user.environment_smash & ENVIRONMENT_SMASH_WALLS) || (user.environment_smash & ENVIRONMENT_SMASH_RWALLS))
@@ -89,7 +89,7 @@
/turf/closed/mineral/attack_alien(mob/living/carbon/alien/M)
to_chat(M, "
You start digging into the rock...")
- playsound(src, 'sound/effects/break_stone.ogg', 50, 1)
+ playsound(src, 'sound/effects/break_stone.ogg', 50, TRUE)
if(do_after(M, 40, target = src))
to_chat(M, "
You tunnel into the rock.")
gets_drilled(M)
@@ -487,7 +487,7 @@
/turf/closed/mineral/gibtonite/gets_drilled(mob/user, triggered_by_explosion = 0)
if(stage == GIBTONITE_UNSTRUCK && mineralAmt >= 1) //Gibtonite deposit is activated
- playsound(src,'sound/effects/hit_on_shattered_glass.ogg',50,1)
+ playsound(src,'sound/effects/hit_on_shattered_glass.ogg',50,TRUE)
explosive_reaction(user, triggered_by_explosion)
return
if(stage == GIBTONITE_ACTIVE && mineralAmt >= 1) //Gibtonite deposit goes kaboom
diff --git a/code/game/turfs/simulated/wall/misc_walls.dm b/code/game/turfs/simulated/wall/misc_walls.dm
index 00a66c3d725..a2f3fcc51fc 100644
--- a/code/game/turfs/simulated/wall/misc_walls.dm
+++ b/code/game/turfs/simulated/wall/misc_walls.dm
@@ -95,7 +95,7 @@
devastate_wall()
ScrapeAway()
else
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
var/newgirder = break_wall()
if(newgirder) //maybe we want a gear!
transfer_fingerprints_to(newgirder)
diff --git a/code/game/turfs/simulated/wall/reinf_walls.dm b/code/game/turfs/simulated/wall/reinf_walls.dm
index 95daf50deda..98870292f7c 100644
--- a/code/game/turfs/simulated/wall/reinf_walls.dm
+++ b/code/game/turfs/simulated/wall/reinf_walls.dm
@@ -42,9 +42,9 @@
return
if(M.environment_smash & ENVIRONMENT_SMASH_RWALLS)
dismantle_wall(1)
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
else
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
to_chat(M, "
This wall is far too strong for you to destroy.")
/turf/closed/wall/r_wall/try_decon(obj/item/W, mob/user, turf/T)
diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm
index b636204bb8e..48090bb2f27 100644
--- a/code/game/turfs/simulated/walls.dm
+++ b/code/game/turfs/simulated/walls.dm
@@ -56,7 +56,7 @@
if(devastated)
devastate_wall()
else
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
var/newgirder = break_wall()
if(newgirder) //maybe we don't /want/ a girder!
transfer_fingerprints_to(newgirder)
@@ -109,18 +109,18 @@
M.do_attack_animation(src)
switch(M.damtype)
if(BRUTE)
- playsound(src, 'sound/weapons/punch4.ogg', 50, 1)
+ playsound(src, 'sound/weapons/punch4.ogg', 50, TRUE)
M.visible_message("
[M.name] hits [src]!", \
"
You hit [src]!", null, COMBAT_MESSAGE_RANGE)
if(prob(hardness + M.force) && M.force > 20)
dismantle_wall(1)
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
else
add_dent(WALL_DENT_HIT)
if(BURN)
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
if(TOX)
- playsound(src, 'sound/effects/spray2.ogg', 100, 1)
+ playsound(src, 'sound/effects/spray2.ogg', 100, TRUE)
return FALSE
/turf/closed/wall/attack_paw(mob/living/user)
@@ -132,18 +132,18 @@
M.changeNext_move(CLICK_CD_MELEE)
M.do_attack_animation(src)
if((M.environment_smash & ENVIRONMENT_SMASH_WALLS) || (M.environment_smash & ENVIRONMENT_SMASH_RWALLS))
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
dismantle_wall(1)
return
/turf/closed/wall/attack_hulk(mob/user)
..()
if(prob(hardness))
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ), forced = "hulk")
dismantle_wall(1)
else
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
add_dent(WALL_DENT_HIT)
user.visible_message("
[user] smashes \the [src]!", \
"
You smash \the [src]!", \
@@ -156,7 +156,7 @@
return
user.changeNext_move(CLICK_CD_MELEE)
to_chat(user, "
You push the wall but nothing happens!")
- playsound(src, 'sound/weapons/genhit.ogg', 25, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 25, TRUE)
add_fingerprint(user)
/turf/closed/wall/attackby(obj/item/W, mob/user, params)
diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm
index e1cfc27545f..c25ef34bf3b 100644
--- a/code/game/turfs/space/space.dm
+++ b/code/game/turfs/space/space.dm
@@ -104,14 +104,14 @@
if(L)
if(R.use(1))
to_chat(user, "
You construct a catwalk.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
new/obj/structure/lattice/catwalk(src)
else
to_chat(user, "
You need two rods to build a catwalk!")
return
if(R.use(1))
to_chat(user, "
You construct a lattice.")
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
ReplaceWithLattice()
else
to_chat(user, "
You need one rod to build a lattice.")
@@ -122,7 +122,7 @@
var/obj/item/stack/tile/plasteel/S = C
if(S.use(1))
qdel(L)
- playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
+ playsound(src, 'sound/weapons/genhit.ogg', 50, TRUE)
to_chat(user, "
You build a floor.")
PlaceOnTop(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR)
else
diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm
index e4d56e15bfb..c0c336a108c 100755
--- a/code/game/turfs/turf.dm
+++ b/code/game/turfs/turf.dm
@@ -517,7 +517,7 @@
if(!forced)
return
if(has_gravity(src))
- playsound(src, "bodyfall", 50, 1)
+ playsound(src, "bodyfall", 50, TRUE)
faller.drop_all_held_items()
/turf/proc/photograph(limit=20)
diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm
index f0590ca2ade..b946cac71f1 100644
--- a/code/modules/admin/fun_balloon.dm
+++ b/code/modules/admin/fun_balloon.dm
@@ -28,7 +28,7 @@
/obj/effect/fun_balloon/proc/pop()
visible_message("
[src] pops!")
- playsound(get_turf(src), 'sound/items/party_horn.ogg', 50, 1, -1)
+ playsound(get_turf(src), 'sound/items/party_horn.ogg', 50, TRUE, -1)
qdel(src)
//ATTACK GHOST IGNORING PARENT RETURN VALUE
diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm
index 4745a4c51e9..2a0ab48bb69 100644
--- a/code/modules/admin/secrets.dm
+++ b/code/modules/admin/secrets.dm
@@ -752,4 +752,4 @@
H.equipOutfit(humanoutfit)
var/turf/T = get_step(loc, SOUTHWEST)
flick_overlay_static(portal_appearance, T, 15)
- playsound(T, 'sound/magic/lightningbolt.ogg', rand(80, 100), 1)
+ playsound(T, 'sound/magic/lightningbolt.ogg', rand(80, 100), TRUE)
diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm
index c47d7dda9d7..e582284929c 100644
--- a/code/modules/admin/verbs/playsound.dm
+++ b/code/modules/admin/verbs/playsound.dm
@@ -49,7 +49,7 @@
log_admin("[key_name(src)] played a local sound [S]")
message_admins("[key_name_admin(src)] played a local sound [S]")
- playsound(get_turf(src.mob), S, 50, 0, 0)
+ playsound(get_turf(src.mob), S, 50, FALSE, FALSE)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Play Local Sound") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/play_web_sound()
diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm
index 601442ed197..aac0bfc55ad 100644
--- a/code/modules/admin/verbs/randomverbs.dm
+++ b/code/modules/admin/verbs/randomverbs.dm
@@ -969,7 +969,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
continue
M.audible_message("
...wabbajack...wabbajack...")
- playsound(M.loc, 'sound/magic/staff_change.ogg', 50, 1, -1)
+ playsound(M.loc, 'sound/magic/staff_change.ogg', 50, TRUE, -1)
wabbajack(M)
diff --git a/code/modules/antagonists/_common/antag_spawner.dm b/code/modules/antagonists/_common/antag_spawner.dm
index 954968365fb..397b473c468 100644
--- a/code/modules/antagonists/_common/antag_spawner.dm
+++ b/code/modules/antagonists/_common/antag_spawner.dm
@@ -250,7 +250,7 @@
spawn_antag(C.client, get_turf(src), initial(demon_type.name),user.mind)
to_chat(user, shatter_msg)
to_chat(user, veil_msg)
- playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, 1)
+ playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, TRUE)
qdel(src)
else
to_chat(user, "
You can't seem to work up the nerve to shatter the bottle! Perhaps you should try again later.")
diff --git a/code/modules/antagonists/abductor/equipment/glands/electric.dm b/code/modules/antagonists/abductor/equipment/glands/electric.dm
index ce42bc9f36c..8997dbc817a 100644
--- a/code/modules/antagonists/abductor/equipment/glands/electric.dm
+++ b/code/modules/antagonists/abductor/equipment/glands/electric.dm
@@ -18,9 +18,9 @@
/obj/item/organ/heart/gland/electric/activate()
owner.visible_message("
[owner]'s skin starts emitting electric arcs!",\
"
You feel electric energy building up inside you!")
- playsound(get_turf(owner), "sparks", 100, 1, -1)
+ playsound(get_turf(owner), "sparks", 100, TRUE, -1)
addtimer(CALLBACK(src, .proc/zap), rand(30, 100))
/obj/item/organ/heart/gland/electric/proc/zap()
tesla_zap(owner, 4, 8000, TESLA_MOB_DAMAGE | TESLA_OBJ_DAMAGE | TESLA_MOB_STUN)
- playsound(get_turf(owner), 'sound/magic/lightningshock.ogg', 50, 1)
+ playsound(get_turf(owner), 'sound/magic/lightningshock.ogg', 50, TRUE)
diff --git a/code/modules/antagonists/abductor/equipment/glands/heal.dm b/code/modules/antagonists/abductor/equipment/glands/heal.dm
index 4b1449d3e7d..69ecba9f7c8 100644
--- a/code/modules/antagonists/abductor/equipment/glands/heal.dm
+++ b/code/modules/antagonists/abductor/equipment/glands/heal.dm
@@ -101,7 +101,7 @@
/obj/item/organ/heart/gland/heal/proc/replace_eyes(obj/item/organ/eyes/eyes)
if(eyes)
owner.visible_message("
[owner]'s [eyes.name] fall out of their sockets!", "
Your [eyes.name] fall out of their sockets!")
- playsound(owner, 'sound/effects/splat.ogg', 50, 1)
+ playsound(owner, 'sound/effects/splat.ogg', 50, TRUE)
eyes.Remove(owner)
eyes.forceMove(owner.drop_location())
else
@@ -120,7 +120,7 @@
/obj/item/organ/heart/gland/heal/proc/replace_limb(body_zone, obj/item/bodypart/limb)
if(limb)
owner.visible_message("
[owner]'s [limb.name] suddenly detaches from [owner.p_their()] body!", "
Your [limb.name] suddenly detaches from your body!")
- playsound(owner,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(owner, "desceration", 50, TRUE, -1)
limb.drop_limb()
else
to_chat(owner, "
You feel a weird tingle in your [parse_zone(body_zone)]... even if you don't have one.")
@@ -131,7 +131,7 @@
owner.visible_message("
With a loud snap, [owner]'s [parse_zone(body_zone)] rapidly grows back from [owner.p_their()] body!",
"
With a loud snap, your [parse_zone(body_zone)] rapidly grows back from your body!",
"
Your hear a loud snap.")
- playsound(owner, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(owner, 'sound/magic/demon_consume.ogg', 50, TRUE)
owner.regenerate_limb(body_zone)
/obj/item/organ/heart/gland/heal/proc/replace_blood()
@@ -160,14 +160,14 @@
/obj/item/organ/heart/gland/heal/proc/replace_chest(obj/item/bodypart/chest/chest)
if(chest.status == BODYPART_ROBOTIC)
owner.visible_message("
[owner]'s [chest.name] rapidly expels its mechanical components, replacing them with flesh!", "
Your [chest.name] rapidly expels its mechanical components, replacing them with flesh!")
- playsound(owner, 'sound/magic/clockwork/anima_fragment_attack.ogg', 50, 1)
+ playsound(owner, 'sound/magic/clockwork/anima_fragment_attack.ogg', 50, TRUE)
var/list/dirs = GLOB.alldirs.Copy()
for(var/i in 1 to 3)
var/obj/effect/decal/cleanable/robot_debris/debris = new(get_turf(owner))
debris.streak(dirs)
else
owner.visible_message("
[owner]'s [chest.name] sheds off its damaged flesh, rapidly replacing it!", "
Your [chest.name] sheds off its damaged flesh, rapidly replacing it!")
- playsound(owner, 'sound/effects/splat.ogg', 50, 1)
+ playsound(owner, 'sound/effects/splat.ogg', 50, TRUE)
var/list/dirs = GLOB.alldirs.Copy()
for(var/i in 1 to 3)
var/obj/effect/decal/cleanable/blood/gibs/gibs = new(get_turf(owner))
diff --git a/code/modules/antagonists/abductor/machinery/experiment.dm b/code/modules/antagonists/abductor/machinery/experiment.dm
index e6c69d27ed4..c96fddc7617 100644
--- a/code/modules/antagonists/abductor/machinery/experiment.dm
+++ b/code/modules/antagonists/abductor/machinery/experiment.dm
@@ -198,12 +198,12 @@
if(point_reward > 0)
open_machine()
SendBack(H)
- playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/ding.ogg', 50, TRUE)
points += point_reward
credits += point_reward
return "
Experiment successful! [point_reward] new data-points collected."
else
- playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, TRUE)
return "
Experiment failed! No replacement organ detected."
else
say("Brain activity nonexistent - disposing sample...")
diff --git a/code/modules/antagonists/blob/overmind.dm b/code/modules/antagonists/blob/overmind.dm
index 3542b38ec1a..817be20ff3c 100644
--- a/code/modules/antagonists/blob/overmind.dm
+++ b/code/modules/antagonists/blob/overmind.dm
@@ -136,7 +136,7 @@ GLOBAL_LIST_EMPTY(blob_nodes)
continue
if(!(ROLE_BLOB in L.faction))
- playsound(L, 'sound/effects/splat.ogg', 50, 1)
+ playsound(L, 'sound/effects/splat.ogg', 50, TRUE)
L.death()
new/mob/living/simple_animal/hostile/blob/blobspore(T)
else
diff --git a/code/modules/antagonists/blob/powers.dm b/code/modules/antagonists/blob/powers.dm
index e3962d05125..b95b5343b89 100644
--- a/code/modules/antagonists/blob/powers.dm
+++ b/code/modules/antagonists/blob/powers.dm
@@ -175,7 +175,7 @@
B.obj_integrity = min(B.obj_integrity, B.max_integrity)
B.update_icon()
B.visible_message("
The blobbernaut [pick("rips", "tears", "shreds")] its way out of the factory blob!")
- playsound(B.loc, 'sound/effects/splat.ogg', 50, 1)
+ playsound(B.loc, 'sound/effects/splat.ogg', 50, TRUE)
var/mob/living/simple_animal/hostile/blob/blobbernaut/blobber = new /mob/living/simple_animal/hostile/blob/blobbernaut(get_turf(B))
flick("blobbernaut_produce", blobber)
B.naut = blobber
@@ -296,7 +296,7 @@
OB = pick(diagonalblobs)
if(attacksuccess)
OB.blob_attack_animation(T, src)
- playsound(OB, 'sound/effects/splat.ogg', 50, 1)
+ playsound(OB, 'sound/effects/splat.ogg', 50, TRUE)
add_points(BLOB_ATTACK_REFUND)
else
add_points(BLOB_SPREAD_COST) //if we're attacking diagonally and didn't hit anything, refund
diff --git a/code/modules/antagonists/blob/structures/_blob.dm b/code/modules/antagonists/blob/structures/_blob.dm
index c3cd66b181f..17523c17d6c 100644
--- a/code/modules/antagonists/blob/structures/_blob.dm
+++ b/code/modules/antagonists/blob/structures/_blob.dm
@@ -44,7 +44,7 @@
if(overmind)
overmind.blobs_legit -= src //if it was in the legit blobs list, it isn't now
GLOB.blobs -= src //it's no longer in the all blobs list either
- playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) //Expand() is no longer broken, no check necessary.
+ playsound(src.loc, 'sound/effects/splat.ogg', 50, TRUE) //Expand() is no longer broken, no check necessary.
return ..()
/obj/structure/blob/blob_act()
@@ -167,7 +167,7 @@
if(isspaceturf(T) && !(locate(/obj/structure/lattice) in T) && prob(80))
make_blob = FALSE
- playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) //Let's give some feedback that we DID try to spawn in space, since players are used to it
+ playsound(src.loc, 'sound/effects/splat.ogg', 50, TRUE) //Let's give some feedback that we DID try to spawn in space, since players are used to it
ConsumeTile() //hit the tile we're in, making sure there are no border objects blocking us
if(!T.CanPass(src, T)) //is the target turf impassable
@@ -263,11 +263,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1)
+ playsound(src.loc, 'sound/effects/attackblob.ogg', 50, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/blob/run_obj_armor(damage_amount, damage_type, damage_flag = 0, attack_dir)
switch(damage_type)
diff --git a/code/modules/antagonists/changeling/powers/fakedeath.dm b/code/modules/antagonists/changeling/powers/fakedeath.dm
index 3532a76936f..798d751e1d3 100644
--- a/code/modules/antagonists/changeling/powers/fakedeath.dm
+++ b/code/modules/antagonists/changeling/powers/fakedeath.dm
@@ -40,7 +40,7 @@
var/list/missing = user.get_missing_limbs()
missing -= BODY_ZONE_HEAD // headless changelings are funny
if(missing.len)
- playsound(user, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(user, 'sound/magic/demon_consume.ogg', 50, TRUE)
user.visible_message("
[user]'s missing limbs \
reform, making a loud, grotesque sound!",
"
Your limbs regrow, making a \
diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm
index 8c16ca4463a..68d042ce4f4 100644
--- a/code/modules/antagonists/changeling/powers/mutations.dm
+++ b/code/modules/antagonists/changeling/powers/mutations.dm
@@ -31,7 +31,7 @@
if(istype(hand_item, weapon_type))
user.temporarilyRemoveItemFromInventory(hand_item, TRUE) //DROPDEL will delete the item
if(!silent)
- playsound(user, 'sound/effects/blobattack.ogg', 30, 1)
+ playsound(user, 'sound/effects/blobattack.ogg', 30, TRUE)
user.visible_message("With a sickening crunch, [user] reforms [user.p_their()] [weapon_name_simple] into an arm!", "We assimilate the [weapon_name_simple] back into our body.", "[user] jams [src] into the airlock and starts prying it open!", "We start forcing the [A] open.", \
"You hear a metal screeching sound.")
- playsound(A, 'sound/machines/airlock_alien_prying.ogg', 100, 1)
+ playsound(A, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE)
if(!do_after(user, 100, target = A))
return
//user.say("Heeeeeeeeeerrre's Johnny!")
@@ -331,7 +331,7 @@
C.apply_damage(I.force, BRUTE, BODY_ZONE_CHEST)
H.do_item_attack_animation(C, used_item = I)
H.add_mob_blood(C)
- playsound(get_turf(H),I.hitsound,75,1)
+ playsound(get_turf(H),I.hitsound,75,TRUE)
return
/obj/item/projectile/tentacle/on_hit(atom/target, blocked = FALSE)
diff --git a/code/modules/antagonists/changeling/powers/regenerate.dm b/code/modules/antagonists/changeling/powers/regenerate.dm
index bd023bb5b2e..5cd617a47a3 100644
--- a/code/modules/antagonists/changeling/powers/regenerate.dm
+++ b/code/modules/antagonists/changeling/powers/regenerate.dm
@@ -15,7 +15,7 @@
var/mob/living/carbon/C = user
var/list/missing = C.get_missing_limbs()
if(missing.len)
- playsound(user, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(user, 'sound/magic/demon_consume.ogg', 50, TRUE)
C.visible_message("[user]'s missing limbs \
reform, making a loud, grotesque sound!",
"Your limbs regrow, making a \
diff --git a/code/modules/antagonists/changeling/powers/tiny_prick.dm b/code/modules/antagonists/changeling/powers/tiny_prick.dm
index c1cef024ed1..cc0e0027aec 100644
--- a/code/modules/antagonists/changeling/powers/tiny_prick.dm
+++ b/code/modules/antagonists/changeling/powers/tiny_prick.dm
@@ -148,13 +148,13 @@
var/obj/item/melee/arm_blade/false/blade = new(target,1)
target.put_in_hands(blade)
target.visible_message("A grotesque blade forms around [target.name]\'s arm!", "Your arm twists and mutates, transforming into a horrific monstrosity!", "You hear organic matter ripping and tearing!")
- playsound(target, 'sound/effects/blobattack.ogg', 30, 1)
+ playsound(target, 'sound/effects/blobattack.ogg', 30, TRUE)
addtimer(CALLBACK(src, .proc/remove_fake, target, blade), 600)
return TRUE
/datum/action/changeling/sting/false_armblade/proc/remove_fake(mob/target, obj/item/melee/arm_blade/false/blade)
- playsound(target, 'sound/effects/blobattack.ogg', 30, 1)
+ playsound(target, 'sound/effects/blobattack.ogg', 30, TRUE)
target.visible_message("With a sickening crunch, \
[target] reforms [target.p_their()] [blade.name] into an arm!",
"[blade] reforms back to normal.",
diff --git a/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm b/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm
index 84880a09ca7..b42690f926e 100644
--- a/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm
+++ b/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm
@@ -302,7 +302,7 @@
vitality_drained = L.maxHealth
var/obj/effect/temp_visual/ratvar/sigil/vitality/V = new /obj/effect/temp_visual/ratvar/sigil/vitality(get_turf(src))
animate(V, alpha = 0, transform = matrix()*2, time = 8)
- playsound(L, 'sound/magic/wandodeath.ogg', 50, 1)
+ playsound(L, 'sound/magic/wandodeath.ogg', 50, TRUE)
L.visible_message("[L] collapses in on [L.p_them()]self as [src] flares bright blue!")
to_chat(L, "\"[text2ratvar("Your life will not be wasted.")]\"")
for(var/obj/item/W in L)
@@ -336,7 +336,7 @@
L.revive(1, 1)
var/obj/effect/temp_visual/ratvar/sigil/vitality/V = new /obj/effect/temp_visual/ratvar/sigil/vitality(get_turf(src))
animate(V, alpha = 0, transform = matrix()*2, time = 8)
- playsound(L, 'sound/magic/staff_healing.ogg', 50, 1)
+ playsound(L, 'sound/magic/staff_healing.ogg', 50, TRUE)
to_chat(L, "\"[text2ratvar("You will be okay, child.")]\"")
L.apply_status_effect(STATUS_EFFECT_ICHORIAL_STAIN)
GLOB.clockwork_vitality -= revival_cost
@@ -352,7 +352,7 @@
L.key = C.key
var/obj/effect/temp_visual/ratvar/sigil/vitality/V = new /obj/effect/temp_visual/ratvar/sigil/vitality(get_turf(src))
animate(V, alpha = 0, transform = matrix()*2, time = 8)
- playsound(L, 'sound/magic/staff_healing.ogg', 50, 1)
+ playsound(L, 'sound/magic/staff_healing.ogg', 50, TRUE)
L.visible_message("[L]'s eyes suddenly open wide, gleaming with renewed vigor for the cause!", "\"[text2ratvar("Awaken!")]\"")
break
var/vitality_for_cycle = 3
diff --git a/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm b/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm
index f0d4192db34..5d053a112ab 100644
--- a/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm
+++ b/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm
@@ -140,8 +140,8 @@
var/mob/living/user = A
to_chat(user, "You pass through [src] and appear elsewhere!")
linked_gateway.visible_message("A shape appears in [linked_gateway] before emerging!")
- playsound(src, 'sound/effects/empulse.ogg', 50, 1)
- playsound(linked_gateway, 'sound/effects/empulse.ogg', 50, 1)
+ playsound(src, 'sound/effects/empulse.ogg', 50, TRUE)
+ playsound(linked_gateway, 'sound/effects/empulse.ogg', 50, TRUE)
transform = matrix() * 1.5
linked_gateway.transform = matrix() * 1.5
diff --git a/code/modules/antagonists/clockcult/clock_helpers/clock_powerdrain.dm b/code/modules/antagonists/clockcult/clock_helpers/clock_powerdrain.dm
index 7658f7e715e..18517c63197 100644
--- a/code/modules/antagonists/clockcult/clock_helpers/clock_powerdrain.dm
+++ b/code/modules/antagonists/clockcult/clock_helpers/clock_powerdrain.dm
@@ -13,7 +13,7 @@
/obj/machinery/power/apc/power_drain(clockcult_user)
if(cell && cell.charge)
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
flick("apc-spark", src)
. = min(cell.charge, MIN_CLOCKCULT_POWER*3)
cell.use(.) //Better than a power sink!
diff --git a/code/modules/antagonists/clockcult/clock_helpers/fabrication_helpers.dm b/code/modules/antagonists/clockcult/clock_helpers/fabrication_helpers.dm
index bd986bac253..f005c625a48 100644
--- a/code/modules/antagonists/clockcult/clock_helpers/fabrication_helpers.dm
+++ b/code/modules/antagonists/clockcult/clock_helpers/fabrication_helpers.dm
@@ -37,7 +37,7 @@
if(floor_tile == /obj/item/stack/tile/plasteel)
new floor_tile(src)
make_plating()
- playsound(src, 'sound/items/crowbar.ogg', 10, 1) //clink
+ playsound(src, 'sound/items/crowbar.ogg', 10, TRUE) //clink
return list("operation_time" = 30, "new_obj_type" = /turf/open/floor/clockwork, "power_cost" = POWER_FLOOR, "spawn_dir" = SOUTH)
/turf/open/floor/plating/asteroid/fabrication_vals(mob/living/user, obj/item/clockwork/replica_fabricator/fabricator, silent)
@@ -241,7 +241,7 @@
break
obj_integrity = CLAMP(obj_integrity + repair_values["healing_for_cycle"], 0, max_integrity)
adjust_clockwork_power(-repair_values["power_required"])
- playsound(src, 'sound/machines/click.ogg', 50, 1)
+ playsound(src, 'sound/machines/click.ogg', 50, TRUE)
if(fabricator)
fabricator.repairing = null
@@ -263,7 +263,7 @@
break
fabricator_heal_tick(repair_values["healing_for_cycle"])
adjust_clockwork_power(-repair_values["power_required"])
- playsound(src, 'sound/machines/click.ogg', 50, 1)
+ playsound(src, 'sound/machines/click.ogg', 50, TRUE)
if(fabricator)
fabricator.repairing = null
diff --git a/code/modules/antagonists/clockcult/clock_helpers/slab_abilities.dm b/code/modules/antagonists/clockcult/clock_helpers/slab_abilities.dm
index a1482c81878..f3f7a231bec 100644
--- a/code/modules/antagonists/clockcult/clock_helpers/slab_abilities.dm
+++ b/code/modules/antagonists/clockcult/clock_helpers/slab_abilities.dm
@@ -125,7 +125,7 @@
log_combat(ranged_ability_user, L, "purged of holy water with Sentinel's Compromise")
L.visible_message("A blue light washes over [L], causing [L.p_them()] to briefly glow!", \
"You feel Inath-neq's power purging the darkness within you!")
- playsound(targetturf, 'sound/magic/staff_healing.ogg', 50, 1)
+ playsound(targetturf, 'sound/magic/staff_healing.ogg', 50, TRUE)
if(has_holy_water)
L.reagents.remove_reagent(/datum/reagent/water/holywater, 1000)
diff --git a/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm b/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm
index 402f8e10931..67d134fc562 100644
--- a/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm
+++ b/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm
@@ -141,7 +141,7 @@
if(iscultist(user))
to_chat(user, "\"You reek of blood. You've got a lot of nerve to even look at that slab.\"")
user.visible_message("A sizzling sound comes from [user]'s hands!", "[src] suddenly grows extremely hot in your hands!")
- playsound(get_turf(user), 'sound/weapons/sear.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/weapons/sear.ogg', 50, TRUE)
user.dropItemToGround(src)
user.emote("scream")
user.apply_damage(5, BURN, BODY_ZONE_L_ARM)
diff --git a/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm b/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm
index 3f71d65017d..f392e66b619 100644
--- a/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm
+++ b/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm
@@ -170,7 +170,7 @@
return
/obj/effect/clockwork/judicial_marker/proc/judicialblast()
- playsound(src, 'sound/magic/magic_missile.ogg', 50, 1, 1, 1)
+ playsound(src, 'sound/magic/magic_missile.ogg', 50, TRUE, TRUE, TRUE)
flick("judicial_marker", src)
for(var/mob/living/carbon/C in range(1, src))
var/datum/status_effect/belligerent/B = C.apply_status_effect(STATUS_EFFECT_BELLIGERENT)
@@ -185,7 +185,7 @@
sleep(13)
name = "judicial explosion"
var/targetsjudged = 0
- playsound(src, 'sound/effects/explosion_distant.ogg', 100, 1, 1, 1)
+ playsound(src, 'sound/effects/explosion_distant.ogg', 100, TRUE, TRUE, TRUE)
set_light(0)
for(var/mob/living/L in range(1, src))
if(is_servant_of_ratvar(L))
diff --git a/code/modules/antagonists/clockcult/clock_items/replica_fabricator.dm b/code/modules/antagonists/clockcult/clock_items/replica_fabricator.dm
index 66b1341b83b..29ad8e2e39a 100644
--- a/code/modules/antagonists/clockcult/clock_items/replica_fabricator.dm
+++ b/code/modules/antagonists/clockcult/clock_items/replica_fabricator.dm
@@ -62,7 +62,7 @@
to_chat(user, "[src] requires [DisplayPower(POWER_WALL_TOTAL)] of power to produce brass sheets!")
return
adjust_clockwork_power(-POWER_WALL_TOTAL)
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
new/obj/item/stack/tile/brass(user.loc, 5)
to_chat(user, "You use [get_clockwork_power() ? "some":"all"] of [src]'s power to produce 5 brass sheets. It now has access to [DisplayPower(get_clockwork_power())] of power.")
@@ -105,7 +105,7 @@
fabrication_values["operation_time"] *= speed_multiplier
- playsound(target, 'sound/machines/click.ogg', 50, 1)
+ playsound(target, 'sound/machines/click.ogg', 50, TRUE)
if(fabrication_values["operation_time"])
if(!silent)
var/atom/A = fabrication_values["new_obj_type"]
@@ -135,7 +135,7 @@
user.visible_message("[user]'s [name] rapidly consumes [target]!", \
"Your [name] consumes [target].")
- playsound(target, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(target, 'sound/items/deconstruct.ogg', 50, TRUE)
var/new_thing_type = fabrication_values["new_obj_type"]
if(isturf(target)) //if our target is a turf, we're just going to ChangeTurf it and assume it'll work out.
var/turf/T = target
diff --git a/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm b/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm
index cac3ea30edf..2ea39818e79 100644
--- a/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm
+++ b/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm
@@ -98,8 +98,8 @@
return
if(brainmob.suiciding)
brainmob.set_suicide(FALSE)
- playsound(H, 'sound/misc/splort.ogg', 60, 1, -1)
- playsound(H, 'sound/magic/clockwork/anima_fragment_attack.ogg', 40, 1, -1)
+ playsound(H, 'sound/misc/splort.ogg', 60, TRUE, -1)
+ playsound(H, 'sound/magic/clockwork/anima_fragment_attack.ogg', 40, TRUE, -1)
H.fakedeath("soul_vessel") //we want to make sure they don't deathgasp and maybe possibly explode
H.death()
H.cure_fakedeath("soul_vessel")
diff --git a/code/modules/antagonists/clockcult/clock_structure.dm b/code/modules/antagonists/clockcult/clock_structure.dm
index 8b3cb2576c6..b7c67e45265 100644
--- a/code/modules/antagonists/clockcult/clock_structure.dm
+++ b/code/modules/antagonists/clockcult/clock_structure.dm
@@ -112,7 +112,7 @@
else
icon_state = unanchored_icon
if(do_damage)
- playsound(src, break_sound, 10 * (40 * (1 - get_efficiency_mod())), 1)
+ playsound(src, break_sound, 10 * (40 * (1 - get_efficiency_mod())), TRUE)
take_damage(round(max_integrity * 0.25, 1), BRUTE)
to_chat(user, "As you unsecure [src] from the floor, you see cracks appear in its surface!")
diff --git a/code/modules/antagonists/clockcult/clock_structures/mania_motor.dm b/code/modules/antagonists/clockcult/clock_structures/mania_motor.dm
index 9b4ac8085c0..b899509fada 100644
--- a/code/modules/antagonists/clockcult/clock_structures/mania_motor.dm
+++ b/code/modules/antagonists/clockcult/clock_structures/mania_motor.dm
@@ -26,7 +26,7 @@
if(bad_effects)
try_use_power(MIN_CLOCKCULT_POWER*4)
visible_message("[src] hums loudly, then the sockets at its base fall dark!")
- playsound(src, 'sound/effects/screech.ogg', 40, 1)
+ playsound(src, 'sound/effects/screech.ogg', 40, TRUE)
toggle()
return TRUE
diff --git a/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm b/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm
index 9b4689ef315..21435ad1eca 100644
--- a/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm
+++ b/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm
@@ -85,7 +85,7 @@
if(!target)
if(validtargets.len)
target = pick(validtargets)
- playsound(src,'sound/machines/clockcult/ocularwarden-target.ogg',50,1)
+ playsound(src,'sound/machines/clockcult/ocularwarden-target.ogg',50,TRUE)
visible_message("[src] swivels to face [target]!")
if(isliving(target))
var/mob/living/L = target
diff --git a/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm b/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm
index 2ee76329d57..c8b28fc43aa 100644
--- a/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm
+++ b/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm
@@ -34,7 +34,7 @@
return ..()
/obj/structure/destructible/clockwork/taunting_trail/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
/obj/structure/destructible/clockwork/taunting_trail/CanPass(atom/movable/mover, turf/target)
return TRUE
diff --git a/code/modules/antagonists/cult/blood_magic.dm b/code/modules/antagonists/cult/blood_magic.dm
index 47b20ee98c5..c1e9a433009 100644
--- a/code/modules/antagonists/cult/blood_magic.dm
+++ b/code/modules/antagonists/cult/blood_magic.dm
@@ -517,7 +517,7 @@
/obj/item/melee/blood_magic/shackles/proc/CuffAttack(mob/living/carbon/C, mob/living/user)
if(!C.handcuffed)
- playsound(loc, 'sound/weapons/cablecuff.ogg', 30, 1, -2)
+ playsound(loc, 'sound/weapons/cablecuff.ogg', 30, TRUE, -2)
C.visible_message("[user] begins restraining [C] with dark magic!", \
"[user] begins shaping dark magic shackles around your wrists!")
if(do_mob(user, C, 30))
@@ -594,7 +594,7 @@
if(candidate.mmi)
channeling = TRUE
user.visible_message("A dark cloud emanates from [user]'s hand and swirls around [candidate]!")
- playsound(T, 'sound/machines/airlock_alien_prying.ogg', 80, 1)
+ playsound(T, 'sound/machines/airlock_alien_prying.ogg', 80, TRUE)
var/prev_color = candidate.color
candidate.color = "black"
if(do_after(user, 90, target = candidate))
@@ -628,7 +628,7 @@
qdel(candidate)
else if(istype(target,/obj/machinery/door/airlock))
channeling = TRUE
- playsound(T, 'sound/machines/airlockforced.ogg', 50, 1)
+ playsound(T, 'sound/machines/airlockforced.ogg', 50, TRUE)
do_sparks(5, TRUE, target)
if(do_after(user, 50, target = user))
if(QDELETED(target))
diff --git a/code/modules/antagonists/cult/cult_comms.dm b/code/modules/antagonists/cult/cult_comms.dm
index 858a1eb21b8..c23ba5dd8c7 100644
--- a/code/modules/antagonists/cult/cult_comms.dm
+++ b/code/modules/antagonists/cult/cult_comms.dm
@@ -167,15 +167,15 @@
switch(i)
if(1)
new /obj/effect/temp_visual/cult/sparks(mobloc, B.current.dir)
- playsound(mobloc, "sparks", 50, 1)
+ playsound(mobloc, "sparks", 50, TRUE)
if(2)
new /obj/effect/temp_visual/dir_setting/cult/phase/out(mobloc, B.current.dir)
- playsound(mobloc, "sparks", 75, 1)
+ playsound(mobloc, "sparks", 75, TRUE)
if(3)
new /obj/effect/temp_visual/dir_setting/cult/phase(mobloc, B.current.dir)
- playsound(mobloc, "sparks", 100, 1)
+ playsound(mobloc, "sparks", 100, TRUE)
if(4)
- playsound(mobloc, 'sound/magic/exit_blood.ogg', 100, 1)
+ playsound(mobloc, 'sound/magic/exit_blood.ogg', 100, TRUE)
if(B.current != owner)
var/turf/final = pick(destinations)
if(istype(B.current.loc, /obj/item/soulstone))
@@ -199,13 +199,13 @@
owner.say("C'arta forbici!", language = /datum/language/common, forced = "cult invocation")
if(2)
owner.say("Pleggh e'ntrath!", language = /datum/language/common, forced = "cult invocation")
- playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 50, 1)
+ playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 50, TRUE)
if(3)
owner.say("Barhah hra zar'garis!", language = /datum/language/common, forced = "cult invocation")
- playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 75, 1)
+ playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 75, TRUE)
if(4)
owner.say("N'ath reth sh'yro eth d'rekkathnor!!!", language = /datum/language/common, forced = "cult invocation")
- playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 100, 1)
+ playsound(get_turf(owner),'sound/magic/clockwork/narsie_attack.ogg', 100, TRUE)
/datum/action/innate/cult/master/cultmark
name = "Mark Target"
diff --git a/code/modules/antagonists/cult/cult_items.dm b/code/modules/antagonists/cult/cult_items.dm
index fd4228bc6f6..e6eaf3cd201 100644
--- a/code/modules/antagonists/cult/cult_items.dm
+++ b/code/modules/antagonists/cult/cult_items.dm
@@ -163,7 +163,7 @@
/obj/item/twohanded/required/cult_bastard/IsReflect()
if(spinning)
- playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, 1)
+ playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, TRUE)
return TRUE
else
..()
@@ -172,10 +172,10 @@
if(prob(final_block_chance))
if(attack_type == PROJECTILE_ATTACK)
owner.visible_message("[owner] deflects [attack_text] with [src]!")
- playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, 1)
+ playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, TRUE)
return TRUE
else
- playsound(src, 'sound/weapons/parry.ogg', 75, 1)
+ playsound(src, 'sound/weapons/parry.ogg', 75, TRUE)
owner.visible_message("[owner] parries [attack_text] with [src]!")
return TRUE
return FALSE
@@ -510,7 +510,7 @@
if(surplus > 0)
SSshuttle.block_recall(surplus)
to_chat(user, "You shatter the orb! A dark essence spirals into the air, then disappears.")
- playsound(user.loc, 'sound/effects/glassbr1.ogg', 50, 1)
+ playsound(user.loc, 'sound/effects/glassbr1.ogg', 50, TRUE)
qdel(src)
sleep(20)
var/global/list/curses
@@ -566,7 +566,7 @@
uses--
if(uses <= 0)
icon_state ="shifter_drained"
- playsound(mobloc, "sparks", 50, 1)
+ playsound(mobloc, "sparks", 50, TRUE)
new /obj/effect/temp_visual/dir_setting/cult/phase/out(mobloc, C.dir)
var/atom/movable/pulled = handle_teleport_grab(destination, C)
@@ -574,8 +574,8 @@
if(pulled)
C.start_pulling(pulled) //forcemove resets pulls, so we need to re-pull
new /obj/effect/temp_visual/dir_setting/cult/phase(destination, C.dir)
- playsound(destination, 'sound/effects/phasein.ogg', 25, 1)
- playsound(destination, "sparks", 50, 1)
+ playsound(destination, 'sound/effects/phasein.ogg', 25, TRUE)
+ playsound(destination, "sparks", 50, TRUE)
else
to_chat(C, "The veil cannot be torn here!")
@@ -703,10 +703,10 @@
if(prob(final_block_chance))
if(attack_type == PROJECTILE_ATTACK)
owner.visible_message("[owner] deflects [attack_text] with [src]!")
- playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, 1)
+ playsound(src, pick('sound/weapons/effects/ric1.ogg', 'sound/weapons/effects/ric2.ogg', 'sound/weapons/effects/ric3.ogg', 'sound/weapons/effects/ric4.ogg', 'sound/weapons/effects/ric5.ogg'), 100, TRUE)
return TRUE
else
- playsound(src, 'sound/weapons/parry.ogg', 100, 1)
+ playsound(src, 'sound/weapons/parry.ogg', 100, TRUE)
owner.visible_message("[owner] parries [attack_text] with [src]!")
return TRUE
return FALSE
@@ -830,7 +830,7 @@
/obj/item/blood_beam/proc/charge(mob/user)
var/obj/O
- playsound(src, 'sound/magic/lightning_chargeup.ogg', 100, 1)
+ playsound(src, 'sound/magic/lightning_chargeup.ogg', 100, TRUE)
for(var/i in 1 to 12)
if(!charging)
break
@@ -859,13 +859,13 @@
second = !second //Handles beam firing in pairs
if(!firing)
break
- playsound(src, 'sound/magic/exit_blood.ogg', 75, 1)
+ playsound(src, 'sound/magic/exit_blood.ogg', 75, TRUE)
new /obj/effect/temp_visual/dir_setting/cult/phase(user.loc, user.dir)
var/turf/temp_target = get_turf_in_angle(set_angle, targets_from, 40)
for(var/turf/T in getline(targets_from,temp_target))
if (locate(/obj/effect/blessing, T))
temp_target = T
- playsound(T, 'sound/machines/clockcult/ark_damage.ogg', 50, 1)
+ playsound(T, 'sound/machines/clockcult/ark_damage.ogg', 50, TRUE)
new /obj/effect/temp_visual/at_shield(T, T)
break
T.narsie_act(TRUE, TRUE)
@@ -887,7 +887,7 @@
if(L.density)
L.Paralyze(20)
L.adjustBruteLoss(45)
- playsound(L, 'sound/hallucinations/wail.ogg', 50, 1)
+ playsound(L, 'sound/hallucinations/wail.ogg', 50, TRUE)
L.emote("scream")
var/datum/beam/current_beam = new(user,temp_target,time=7,beam_icon_state="blood_beam",btype=/obj/effect/ebeam/blood)
INVOKE_ASYNC(current_beam, /datum/beam.proc/Start)
@@ -928,7 +928,7 @@
return FALSE //To avoid reflection chance double-dipping with block chance
. = ..()
if(.)
- playsound(src, 'sound/weapons/parry.ogg', 100, 1)
+ playsound(src, 'sound/weapons/parry.ogg', 100, TRUE)
if(illusions > 0)
illusions--
addtimer(CALLBACK(src, /obj/item/shield/mirror.proc/readd), 450)
diff --git a/code/modules/antagonists/cult/runes.dm b/code/modules/antagonists/cult/runes.dm
index da8db63a49f..8a2054cb2e3 100644
--- a/code/modules/antagonists/cult/runes.dm
+++ b/code/modules/antagonists/cult/runes.dm
@@ -307,10 +307,10 @@ structure_check() searches for nearby cultist structures required for the invoca
if(sacrificial)
if(iscyborg(sacrificial))
- playsound(sacrificial, 'sound/magic/disable_tech.ogg', 100, 1)
+ playsound(sacrificial, 'sound/magic/disable_tech.ogg', 100, TRUE)
sacrificial.dust() //To prevent the MMI from remaining
else
- playsound(sacrificial, 'sound/magic/disintegrate.ogg', 100, 1)
+ playsound(sacrificial, 'sound/magic/disintegrate.ogg', 100, TRUE)
sacrificial.gib()
return TRUE
@@ -868,7 +868,7 @@ structure_check() searches for nearby cultist structures required for the invoca
new_human.apply_status_effect(STATUS_EFFECT_SUMMONEDGHOST) //ghosts can't summon more ghosts
new_human.see_invisible = SEE_INVISIBLE_OBSERVER
ghosts++
- playsound(src, 'sound/magic/exit_blood.ogg', 50, 1)
+ playsound(src, 'sound/magic/exit_blood.ogg', 50, TRUE)
visible_message("A cloud of red mist forms above [src], and from within steps... a [new_human.gender == FEMALE ? "wo":""]man.")
to_chat(user, "Your blood begins flowing into [src]. You must remain in place and conscious to maintain the forms of those summoned. This will hurt you slowly but surely...")
var/obj/structure/emergency_shield/invoker/N = new(T)
@@ -969,7 +969,7 @@ structure_check() searches for nearby cultist structures required for the invoca
intensity++
intensity = max(60, 360 - (360*(intensity/GLOB.player_list.len + 0.3)**2)) //significantly lower intensity for "winning" cults
var/duration = intensity*10
- playsound(T, 'sound/magic/enter_blood.ogg', 100, 1)
+ playsound(T, 'sound/magic/enter_blood.ogg', 100, TRUE)
visible_message("A colossal shockwave of energy bursts from the rune, disintegrating it in the process!")
for(var/mob/living/L in range(src, 3))
L.Paralyze(30)
diff --git a/code/modules/antagonists/devil/true_devil/_true_devil.dm b/code/modules/antagonists/devil/true_devil/_true_devil.dm
index affe1609465..3c39e91397e 100644
--- a/code/modules/antagonists/devil/true_devil/_true_devil.dm
+++ b/code/modules/antagonists/devil/true_devil/_true_devil.dm
@@ -164,7 +164,7 @@
switch(M.a_intent)
if ("harm")
var/damage = rand(1, 5)
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
visible_message("[M] punches [src]!", \
"[M] punches you!")
adjustBruteLoss(damage)
@@ -174,18 +174,18 @@
if (!(mobility_flags & MOBILITY_STAND) && !ascended) //No stealing the arch devil's pitchfork.
if (prob(5))
Unconscious(40)
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
log_combat(M, src, "pushed")
visible_message("[M] pushes [src] down!", \
"[M] pushes you down!")
else
if (prob(25))
dropItemToGround(get_active_held_item())
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
visible_message("[M] disarms [src]!", \
"[M] disarms you!")
else
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
visible_message("[M] fails to disarm [src]!", \
"[M] fails to disarm you!")
diff --git a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm
index e101b4cdcf8..b465de96737 100644
--- a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm
+++ b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm
@@ -54,7 +54,7 @@
/obj/item/borg_chameleon/proc/toggle(mob/living/silicon/robot/user)
if(active)
- playsound(src, 'sound/effects/pop.ogg', 100, 1, -6)
+ playsound(src, 'sound/effects/pop.ogg', 100, TRUE, -6)
to_chat(user, "You deactivate \the [src].")
deactivate(user)
else
@@ -63,7 +63,7 @@
return
animation_playing = TRUE
to_chat(user, "You activate \the [src].")
- playsound(src, 'sound/effects/seedling_chargeup.ogg', 100, 1, -6)
+ playsound(src, 'sound/effects/seedling_chargeup.ogg', 100, TRUE, -6)
var/start = user.filters.len
var/X,Y,rsq,i,f
for(i=1, i<=7, ++i)
@@ -78,7 +78,7 @@
animate(f, offset=f:offset, time=0, loop=3, flags=ANIMATION_PARALLEL)
animate(offset=f:offset-1, time=rand()*20+10)
if (do_after(user, 50, target=user) && user.cell.use(activationCost))
- playsound(src, 'sound/effects/bamf.ogg', 100, 1, -6)
+ playsound(src, 'sound/effects/bamf.ogg', 100, TRUE, -6)
to_chat(user, "You are now disguised as the Nanotrasen engineering borg \"[friendlyName]\".")
activate(user)
else
diff --git a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
index 9c94000c625..0b7ba59e55f 100644
--- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
+++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm
@@ -233,7 +233,7 @@
explode()
else
var/volume = (get_time_left() <= 20 ? 30 : 5)
- playsound(loc, 'sound/items/timer.ogg', volume, 0)
+ playsound(loc, 'sound/items/timer.ogg', volume, FALSE)
/obj/machinery/nuclearbomb/ui_interact(mob/user, ui_key="main", datum/tgui/ui=null, force_open=0, datum/tgui/master_ui=null, datum/ui_state/state=GLOB.default_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
@@ -637,7 +637,7 @@ This is here to make the tiles around the station mininuke change when it's arme
/obj/item/disk/nuclear/suicide_act(mob/user)
user.visible_message("[user] is going delta! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/machines/alarm.ogg', 50, -1, 1)
+ playsound(src, 'sound/machines/alarm.ogg', 50, -1, TRUE)
for(var/i in 1 to 100)
addtimer(CALLBACK(user, /atom/proc/add_atom_colour, (i % 2)? "#00FF00" : "#FF0000", ADMIN_COLOUR_PRIORITY), i)
addtimer(CALLBACK(src, .proc/manual_suicide, user), 101)
diff --git a/code/modules/antagonists/nukeop/equipment/pinpointer.dm b/code/modules/antagonists/nukeop/equipment/pinpointer.dm
index ffdb1ea6300..8a88d68514e 100644
--- a/code/modules/antagonists/nukeop/equipment/pinpointer.dm
+++ b/code/modules/antagonists/nukeop/equipment/pinpointer.dm
@@ -25,7 +25,7 @@
if(bomb.timing)
if(!alert)
alert = TRUE
- playsound(src, 'sound/items/nuke_toy_lowpower.ogg', 50, 0)
+ playsound(src, 'sound/items/nuke_toy_lowpower.ogg', 50, FALSE)
if(isliving(loc))
var/mob/living/L = loc
to_chat(L, "Your [name] vibrates and lets out a tinny alarm. Uh oh.")
@@ -53,7 +53,7 @@
if(isliving(loc))
var/mob/living/L = loc
to_chat(L, "Your [name] beeps as it reconfigures it's tracking algorithms.")
- playsound(L, 'sound/machines/triple_beep.ogg', 50, 1)
+ playsound(L, 'sound/machines/triple_beep.ogg', 50, TRUE)
mode = new_mode
scan_for_target()
diff --git a/code/modules/antagonists/revenant/revenant.dm b/code/modules/antagonists/revenant/revenant.dm
index 4d2a69ec0ea..e64126849e8 100644
--- a/code/modules/antagonists/revenant/revenant.dm
+++ b/code/modules/antagonists/revenant/revenant.dm
@@ -225,7 +225,7 @@
notransform = TRUE
revealed = TRUE
invisibility = 0
- playsound(src, 'sound/effects/screech.ogg', 100, 1)
+ playsound(src, 'sound/effects/screech.ogg', 100, TRUE)
visible_message("[src] lets out a waning screech as violet mist swirls around its dissolving body!")
icon_state = "revenant_draining"
for(var/i = alpha, i > 0, i -= 10)
diff --git a/code/modules/antagonists/revenant/revenant_abilities.dm b/code/modules/antagonists/revenant/revenant_abilities.dm
index fc3fd2208d5..995ab043c49 100644
--- a/code/modules/antagonists/revenant/revenant_abilities.dm
+++ b/code/modules/antagonists/revenant/revenant_abilities.dm
@@ -218,7 +218,7 @@
if(!M.anti_magic_check(FALSE, TRUE))
M.electrocute_act(shock_damage, L, safety=TRUE)
do_sparks(4, FALSE, M)
- playsound(M, 'sound/machines/defib_zap.ogg', 50, 1, -1)
+ playsound(M, 'sound/machines/defib_zap.ogg', 50, TRUE, -1)
//Defile: Corrupts nearby stuff, unblesses floor tiles.
/obj/effect/proc_holder/spell/aoe_turf/revenant/defile
@@ -314,7 +314,7 @@
if(!istype(thing, /obj/machinery/clonepod)) //I hate everything but mostly the fact there's no better way to do this without just not affecting it at all
thing.emp_act(EMP_HEAVY)
for(var/mob/living/silicon/robot/S in T) //Only works on cyborgs, not AI
- playsound(S, 'sound/machines/warning-buzzer.ogg', 50, 1)
+ playsound(S, 'sound/machines/warning-buzzer.ogg', 50, TRUE)
new /obj/effect/temp_visual/revenant(S.loc)
S.spark_system.start()
S.emp_act(EMP_HEAVY)
diff --git a/code/modules/antagonists/slaughter/slaughter.dm b/code/modules/antagonists/slaughter/slaughter.dm
index b70d7037e74..3c50fe03b89 100644
--- a/code/modules/antagonists/slaughter/slaughter.dm
+++ b/code/modules/antagonists/slaughter/slaughter.dm
@@ -83,7 +83,7 @@
return ..()
user.visible_message("[user] raises [src] to [user.p_their()] mouth and tears into it with [user.p_their()] teeth!", \
"An unnatural hunger consumes you. You raise [src] your mouth and devour it!")
- playsound(user, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(user, 'sound/magic/demon_consume.ogg', 50, TRUE)
for(var/obj/effect/proc_holder/spell/knownspell in user.mind.spell_list)
if(knownspell.type == /obj/effect/proc_holder/spell/bloodcrawl)
to_chat(user, "...and you don't feel any different.")
@@ -171,7 +171,7 @@
M.forceMove(T)
if(M.revive(full_heal = TRUE, admin_revive = TRUE))
M.grab_ghost(force = TRUE)
- playsound(T, feast_sound, 50, 1, -1)
+ playsound(T, feast_sound, 50, TRUE, -1)
to_chat(M, "You leave [src]'s warm embrace, and feel ready to take on the world.")
/mob/living/simple_animal/slaughter/laughter/bloodcrawl_swallow(var/mob/living/victim)
diff --git a/code/modules/antagonists/swarmer/swarmer.dm b/code/modules/antagonists/swarmer/swarmer.dm
index 17b73f80519..2224e457fb2 100644
--- a/code/modules/antagonists/swarmer/swarmer.dm
+++ b/code/modules/antagonists/swarmer/swarmer.dm
@@ -498,7 +498,7 @@
var/datum/effect_system/spark_spread/S = new
S.set_up(4,0,get_turf(target))
S.start()
- playsound(src,'sound/effects/sparks4.ogg',50,1)
+ playsound(src,'sound/effects/sparks4.ogg',50,TRUE)
do_teleport(target, F, 0, channel = TELEPORT_CHANNEL_BLUESPACE)
/mob/living/simple_animal/hostile/swarmer/electrocute_act(shock_damage, source, siemens_coeff = 1, safety = FALSE, tesla_shock = FALSE, illusion = FALSE, stun = TRUE)
@@ -541,7 +541,7 @@
/obj/effect/temp_visual/swarmer/disintegration/Initialize()
. = ..()
- playsound(loc, "sparks", 100, 1)
+ playsound(loc, "sparks", 100, TRUE)
/obj/effect/temp_visual/swarmer/dismantle
icon_state = "dismantle"
@@ -571,9 +571,9 @@
/obj/structure/swarmer/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src, 'sound/weapons/egloves.ogg', 80, 1)
+ playsound(src, 'sound/weapons/egloves.ogg', 80, TRUE)
if(BURN)
- playsound(src, 'sound/items/welder.ogg', 100, 1)
+ playsound(src, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/swarmer/emp_act()
. = ..()
@@ -592,7 +592,7 @@
if(isliving(AM))
var/mob/living/L = AM
if(!istype(L, /mob/living/simple_animal/hostile/swarmer))
- playsound(loc,'sound/effects/snap.ogg',50, 1, -1)
+ playsound(loc,'sound/effects/snap.ogg',50, TRUE, -1)
L.electrocute_act(0, src, 1, 1, 1)
if(iscyborg(L))
L.Paralyze(100)
@@ -650,7 +650,7 @@
if(do_mob(src, src, 100))
var/createtype = SwarmerTypeToCreate()
if(createtype && Fabricate(createtype, 50))
- playsound(loc,'sound/items/poster_being_created.ogg',50, 1, -1)
+ playsound(loc,'sound/items/poster_being_created.ogg',50, TRUE, -1)
/mob/living/simple_animal/hostile/swarmer/proc/SwarmerTypeToCreate()
diff --git a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm
index 0404adf248f..629580d379f 100644
--- a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm
+++ b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm
@@ -693,7 +693,7 @@ GLOBAL_LIST_INIT(blacklisted_malf_machines, typecacheof(list(
var/turf/T = get_turf(owner_AI.eyeobj)
var/obj/machinery/transformer/conveyor = new(T)
conveyor.masterAI = owner
- playsound(T, 'sound/effects/phasein.ogg', 100, 1)
+ playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
owner_AI.can_shunt = FALSE
to_chat(owner, "You are no longer able to shunt your core to APCs.")
adjust_uses(-1)
diff --git a/code/modules/antagonists/wizard/equipment/artefact.dm b/code/modules/antagonists/wizard/equipment/artefact.dm
index 988db98584b..ee7bfce740f 100644
--- a/code/modules/antagonists/wizard/equipment/artefact.dm
+++ b/code/modules/antagonists/wizard/equipment/artefact.dm
@@ -422,7 +422,7 @@
on_cooldown = TRUE
last_user = user
var/turf/T = get_turf(user)
- playsound(T,'sound/magic/warpwhistle.ogg', 200, 1)
+ playsound(T,'sound/magic/warpwhistle.ogg', 200, TRUE)
user.mobility_flags &= ~MOBILITY_MOVE
new /obj/effect/temp_visual/tornado(T)
sleep(20)
diff --git a/code/modules/antagonists/wizard/equipment/spellbook.dm b/code/modules/antagonists/wizard/equipment/spellbook.dm
index 7e88701d0f6..eed8e40ddc5 100644
--- a/code/modules/antagonists/wizard/equipment/spellbook.dm
+++ b/code/modules/antagonists/wizard/equipment/spellbook.dm
@@ -478,7 +478,7 @@
new /datum/round_event/wizard/ghost()
active = TRUE
to_chat(user, "You have cast summon ghosts!")
- playsound(get_turf(user), 'sound/effects/ghost2.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/effects/ghost2.ogg', 50, TRUE)
return TRUE
/datum/spellbook_entry/summon/guns
@@ -494,7 +494,7 @@
SSblackbox.record_feedback("tally", "wizard_spell_learned", 1, name)
rightandwrong(SUMMON_GUNS, user, 10)
active = TRUE
- playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, TRUE)
to_chat(user, "You have cast summon guns!")
return TRUE
@@ -511,7 +511,7 @@
SSblackbox.record_feedback("tally", "wizard_spell_learned", 1, name)
rightandwrong(SUMMON_MAGIC, user, 10)
active = TRUE
- playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, TRUE)
to_chat(user, "You have cast summon magic!")
return TRUE
@@ -529,7 +529,7 @@
SSblackbox.record_feedback("tally", "wizard_spell_learned", 1, name)
summonevents()
times++
- playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/magic/castsummon.ogg', 50, TRUE)
to_chat(user, "You have cast summon events.")
return TRUE
@@ -552,7 +552,7 @@
return FALSE
curse_of_madness(user, message)
to_chat(user, "You have cast the curse of insanity!")
- playsound(user, 'sound/magic/mandswap.ogg', 50, 1)
+ playsound(user, 'sound/magic/mandswap.ogg', 50, TRUE)
return TRUE
/obj/item/spellbook
diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm
index dd98a5ad3c2..14eee74d150 100644
--- a/code/modules/atmospherics/machinery/airalarm.dm
+++ b/code/modules/atmospherics/machinery/airalarm.dm
@@ -737,7 +737,7 @@
if (buildstage == 1)
to_chat(user, "You remove the air alarm electronics.")
new /obj/item/electronics/airalarm( src.loc )
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
buildstage = 0
update_icon()
return
@@ -833,7 +833,7 @@
return
obj_flags |= EMAGGED
visible_message("Sparks fly out of [src]!", "You emag [src], disabling its safeties.")
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
/obj/machinery/airalarm/obj_break(damage_flag)
..()
diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm
index 674fbb648d9..7e3a0b7ebea 100644
--- a/code/modules/atmospherics/machinery/atmosmachinery.dm
+++ b/code/modules/atmospherics/machinery/atmosmachinery.dm
@@ -308,7 +308,7 @@
user.client.eye = target_move //Byond only updates the eye every tick, This smooths out the movement
if(world.time - user.last_played_vent > VENT_SOUND_DELAY)
user.last_played_vent = world.time
- playsound(src, 'sound/machines/ventcrawl.ogg', 50, 1, -3)
+ playsound(src, 'sound/machines/ventcrawl.ogg', 50, TRUE, -3)
else if(is_type_in_typecache(src, GLOB.ventcrawl_machinery) && can_crawl_through()) //if we move in a way the pipe can connect, but doesn't - or we're in a vent
user.forceMove(loc)
user.visible_message("You hear something squeezing through the ducts...", "You climb out the ventilation system.")
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
index 443ebefa7cc..1b6c6482f0e 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
@@ -291,7 +291,7 @@
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
- playsound(loc, 'sound/weapons/bladeslice.ogg', 100, 1)
+ playsound(loc, 'sound/weapons/bladeslice.ogg', 100, TRUE)
/obj/machinery/atmospherics/components/unary/vent_pump/high_volume
name = "large air vent"
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
index 98ff14e894f..747b26e81b8 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
@@ -303,7 +303,7 @@
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
- playsound(loc, 'sound/weapons/bladeslice.ogg', 100, 1)
+ playsound(loc, 'sound/weapons/bladeslice.ogg', 100, TRUE)
/obj/machinery/atmospherics/components/unary/vent_scrubber/layer1
diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm
index 33b6c9d9c33..6358eaaa33d 100644
--- a/code/modules/atmospherics/machinery/portable/canister.dm
+++ b/code/modules/atmospherics/machinery/portable/canister.dm
@@ -58,7 +58,7 @@
/obj/machinery/portable_atmospherics/canister/interact(mob/user)
if(!allowed(user))
to_chat(user, "Error - Unauthorized User")
- playsound(src, 'sound/misc/compiler-failure.ogg', 50, 1)
+ playsound(src, 'sound/misc/compiler-failure.ogg', 50, TRUE)
return
..()
@@ -320,7 +320,7 @@
stat |= BROKEN
density = FALSE
- playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3)
+ playsound(src.loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
update_icon()
investigate_log("was destroyed.", INVESTIGATE_ATMOS)
diff --git a/code/modules/awaymissions/capture_the_flag.dm b/code/modules/awaymissions/capture_the_flag.dm
index 310e78d4256..9777071e81b 100644
--- a/code/modules/awaymissions/capture_the_flag.dm
+++ b/code/modules/awaymissions/capture_the_flag.dm
@@ -628,7 +628,7 @@
qdel(G)
O.equip(M)
to_chat(M, "Ammunition reloaded!")
- playsound(get_turf(M), 'sound/weapons/shotgunpump.ogg', 50, 1, -1)
+ playsound(get_turf(M), 'sound/weapons/shotgunpump.ogg', 50, TRUE, -1)
qdel(src)
break
diff --git a/code/modules/awaymissions/super_secret_room.dm b/code/modules/awaymissions/super_secret_room.dm
index de4ad67ed74..fca227cf8bc 100644
--- a/code/modules/awaymissions/super_secret_room.dm
+++ b/code/modules/awaymissions/super_secret_room.dm
@@ -139,7 +139,7 @@
..()
/obj/item/rupee/equipped(mob/user, slot)
- playsound(get_turf(loc), 'sound/misc/server-ready.ogg', 50, 1, -1)
+ playsound(get_turf(loc), 'sound/misc/server-ready.ogg', 50, TRUE, -1)
..()
/obj/effect/landmark/error
diff --git a/code/modules/cargo/bounty_console.dm b/code/modules/cargo/bounty_console.dm
index ea98605506d..95437036bf1 100644
--- a/code/modules/cargo/bounty_console.dm
+++ b/code/modules/cargo/bounty_console.dm
@@ -91,6 +91,6 @@
B.claim()
if(href_list["refresh"])
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
updateUsrDialog()
diff --git a/code/modules/cargo/supplypod.dm b/code/modules/cargo/supplypod.dm
index 853e17e75c5..114e8f14fd9 100644
--- a/code/modules/cargo/supplypod.dm
+++ b/code/modules/cargo/supplypod.dm
@@ -147,7 +147,7 @@
var/turf/T = get_turf(src)
var/list/B = explosionSize //Mostly because B is more readable than explosionSize :p
if (landingSound)
- playsound(get_turf(src), landingSound, soundVolume, 0, 0)
+ playsound(get_turf(src), landingSound, soundVolume, FALSE, FALSE)
for (var/mob/living/M in T)
if (effectLimb && iscarbon(M)) //If effectLimb is true (which means we pop limbs off when we hit people):
var/mob/living/carbon/CM = M
@@ -180,7 +180,7 @@
if (explosion_sum != 0) //If the explosion list isn't all zeroes, call an explosion
explosion(get_turf(src), B[1], B[2], B[3], flame_range = B[4], silent = effectQuiet, ignorecap = istype(src, /obj/structure/closet/supplypod/centcompod)) //less advanced equipment than bluespace pod, so larger explosion when landing
else if (!effectQuiet) //If our explosion list IS all zeroes, we still make a nice explosion sound (unless the effectQuiet var is true)
- playsound(src, "explosion", landingSound ? 15 : 80, 1)
+ playsound(src, "explosion", landingSound ? 15 : 80, TRUE)
if (effectMissile) //If we are acting like a missile, then right after we land and finish fucking shit up w explosions, we should delete
opened = TRUE //We set opened to TRUE to avoid spending time trying to open (due to being deleted) during the Destroy() proc
qdel(src)
@@ -207,14 +207,14 @@
if (M.key && !forced && !broken) //If we are player controlled, then we shouldnt open unless the opening is manual, or if it is due to being destroyed (represented by the "broken" parameter)
return
if (openingSound)
- playsound(get_turf(holder), openingSound, soundVolume, 0, 0) //Special admin sound to play
+ playsound(get_turf(holder), openingSound, soundVolume, FALSE, FALSE) //Special admin sound to play
INVOKE_ASYNC(holder, .proc/setOpened) //Use the INVOKE_ASYNC proc to call setOpened() on whatever the holder may be, without giving the atom/movable base class a setOpened() proc definition
if (style == STYLE_SEETHROUGH)
update_icon()
for (var/atom/movable/O in holder.contents) //Go through the contents of the holder
O.forceMove(T) //move everything from the contents of the holder to the turf of the holder
if (!effectQuiet && !openingSound && style != STYLE_SEETHROUGH) //If we aren't being quiet, play the default pod open sound
- playsound(get_turf(holder), open_sound, 15, 1, -3)
+ playsound(get_turf(holder), open_sound, 15, TRUE, -3)
if (broken) //If the pod is opening because it's been destroyed, we end here
return
if (style == STYLE_SEETHROUGH)
@@ -225,7 +225,7 @@
/obj/structure/closet/supplypod/proc/depart(atom/movable/holder)
if (leavingSound)
- playsound(get_turf(holder), leavingSound, soundVolume, 0, 0)
+ playsound(get_turf(holder), leavingSound, soundVolume, FALSE, FALSE)
if (reversing) //If we're reversing, we call the close proc. This sends the pod back up to centcom
close(holder)
else if (bluespace) //If we're a bluespace pod, then delete ourselves (along with our holder, if a seperate holder exists)
@@ -247,7 +247,7 @@
holder = src
if (leavingSound)
- playsound(get_turf(holder), leavingSound, soundVolume, 0, 0)
+ playsound(get_turf(holder), leavingSound, soundVolume, FALSE, FALSE)
handleReturningClose(holder, FALSE)
@@ -328,7 +328,7 @@
addtimer(CALLBACK(src, .proc/beginLaunch, pod.effectCircle), pod.landingDelay)
/obj/effect/DPtarget/proc/playFallingSound()
- playsound(src, pod.fallingSound, pod.soundVolume, 1, 6)
+ playsound(src, pod.fallingSound, pod.soundVolume, TRUE, 6)
/obj/effect/DPtarget/proc/beginLaunch(effectCircle) //Begin the animation for the pod falling. The effectCircle param determines whether the pod gets to come in from any descent angle
fallingPod = new /obj/effect/DPfall(drop_location(), pod)
diff --git a/code/modules/cargo/supplypod_beacon.dm b/code/modules/cargo/supplypod_beacon.dm
index 8544574c3b2..8ca30de9619 100644
--- a/code/modules/cargo/supplypod_beacon.dm
+++ b/code/modules/cargo/supplypod_beacon.dm
@@ -16,17 +16,17 @@
switch(consoleStatus)
if (SP_LINKED)
linked = TRUE
- playsound(src,'sound/machines/twobeep.ogg',50,0)
+ playsound(src,'sound/machines/twobeep.ogg',50,FALSE)
if (SP_READY)
ready = TRUE
if (SP_LAUNCH)
launched = TRUE
- playsound(src,'sound/machines/triple_beep.ogg',50,0)
- playsound(src,'sound/machines/warning-buzzer.ogg',50,0)
+ playsound(src,'sound/machines/triple_beep.ogg',50,FALSE)
+ playsound(src,'sound/machines/warning-buzzer.ogg',50,FALSE)
addtimer(CALLBACK(src, .proc/endLaunch), 33)//wait 3.3 seconds (time it takes for supplypod to land), then update icon
if (SP_UNLINK)
linked = FALSE
- playsound(src,'sound/machines/synth_no.ogg',50,0)
+ playsound(src,'sound/machines/synth_no.ogg',50,FALSE)
if (SP_UNREADY)
ready = FALSE
update_icon()
diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm
index 17803a3ba32..af5d362bbfd 100644
--- a/code/modules/clothing/head/hardhat.dm
+++ b/code/modules/clothing/head/hardhat.dm
@@ -119,7 +119,7 @@
/obj/item/clothing/head/hardhat/weldhat/proc/toggle_welding_screen(mob/living/user)
if(weldingvisortoggle(user))
- playsound(src, 'sound/mecha/mechmove03.ogg', 50, 1) //Visors don't just come from nothing
+ playsound(src, 'sound/mecha/mechmove03.ogg', 50, TRUE) //Visors don't just come from nothing
update_icon()
/obj/item/clothing/head/hardhat/weldhat/worn_overlays(isinhands)
diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm
index cd242e2853b..defe74090bf 100644
--- a/code/modules/clothing/head/jobs.dm
+++ b/code/modules/clothing/head/jobs.dm
@@ -21,7 +21,7 @@
sleep(20)
user.visible_message("[user] climbs into an imaginary oven!")
user.say("BOOORK!", forced = "chef hat suicide")
- playsound(user, 'sound/machines/ding.ogg', 50, 1)
+ playsound(user, 'sound/machines/ding.ogg', 50, TRUE)
return(FIRELOSS)
//Captain
diff --git a/code/modules/clothing/masks/hailer.dm b/code/modules/clothing/masks/hailer.dm
index 848fd92a292..99757d5f028 100644
--- a/code/modules/clothing/masks/hailer.dm
+++ b/code/modules/clothing/masks/hailer.dm
@@ -187,6 +187,6 @@
phrase_sound = "dredd"
usr.audible_message("[usr]'s Compli-o-Nator: [phrase_text]")
- playsound(src.loc, "sound/voice/complionator/[phrase_sound].ogg", 100, 0, 4)
+ playsound(src.loc, "sound/voice/complionator/[phrase_sound].ogg", 100, FALSE, 4)
cooldown = world.time
cooldown_special = world.time
diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm
index 71f7bbcdff7..f2a8ee5c14d 100644
--- a/code/modules/clothing/masks/miscellaneous.dm
+++ b/code/modules/clothing/masks/miscellaneous.dm
@@ -92,7 +92,7 @@
/obj/item/clothing/mask/pig/cursed/Initialize()
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT)
- playsound(get_turf(src), 'sound/magic/pighead_curse.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/magic/pighead_curse.ogg', 50, TRUE)
///frog mask - reeee!!
/obj/item/clothing/mask/frog
@@ -147,7 +147,7 @@
/obj/item/clothing/mask/cowmask/cursed/Initialize()
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT)
- playsound(get_turf(src), 'sound/magic/cowhead_curse.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/magic/cowhead_curse.ogg', 50, TRUE)
/obj/item/clothing/mask/horsehead
name = "horse head mask"
@@ -171,7 +171,7 @@
/obj/item/clothing/mask/horsehead/cursed/Initialize()
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT)
- playsound(get_turf(src), 'sound/magic/horsehead_curse.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/magic/horsehead_curse.ogg', 50, TRUE)
/obj/item/clothing/mask/rat
name = "rat mask"
diff --git a/code/modules/clothing/shoes/_shoes.dm b/code/modules/clothing/shoes/_shoes.dm
index 9720066857c..e260af23a56 100644
--- a/code/modules/clothing/shoes/_shoes.dm
+++ b/code/modules/clothing/shoes/_shoes.dm
@@ -27,16 +27,15 @@
var/obj/item/bodypart/r_leg = user.get_bodypart(BODY_ZONE_R_LEG)
if(l_leg)
l_leg.dismember()
- playsound(user,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
if(r_leg)
r_leg.dismember()
- playsound(user,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(user, "desceration", 50, TRUE, -1)
return BRUTELOSS
else//didnt realize this suicide act existed (was in miscellaneous.dm) and didnt want to remove it, so made it a 50/50 chance. Why not!
user.visible_message("[user] is bashing [user.p_their()] own head in with [src]! Ain't that a kick in the head?")
for(var/i = 0, i < 3, i++)
sleep(3)
- playsound(user, 'sound/weapons/genhit2.ogg', 50, 1)
+ playsound(user, 'sound/weapons/genhit2.ogg', 50, TRUE)
return(BRUTELOSS)
/obj/item/clothing/shoes/worn_overlays(isinhands = FALSE)
diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm
index 824d25cc568..7b26658054b 100644
--- a/code/modules/clothing/shoes/miscellaneous.dm
+++ b/code/modules/clothing/shoes/miscellaneous.dm
@@ -232,7 +232,7 @@
var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction
if (user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE))
- playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1)
+ playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, TRUE)
user.visible_message("[usr] dashes forward into the air!")
recharging_time = world.time + recharging_rate
else
diff --git a/code/modules/clothing/spacesuits/hardsuit.dm b/code/modules/clothing/spacesuits/hardsuit.dm
index 422d729d521..e58ae2cb365 100644
--- a/code/modules/clothing/spacesuits/hardsuit.dm
+++ b/code/modules/clothing/spacesuits/hardsuit.dm
@@ -307,7 +307,7 @@
flags_inv &= ~visor_flags_inv
cold_protection &= ~HEAD
update_icon()
- playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, 1)
+ playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, TRUE)
toggle_hardsuit_mode(user)
user.update_inv_head()
if(iscarbon(user))
@@ -627,7 +627,7 @@
if(!istype(H) || H.wear_suit != src)
return
if(footstep > 1)
- playsound(src, 'sound/effects/servostep.ogg', 100, 1)
+ playsound(src, 'sound/effects/servostep.ogg', 100, TRUE)
footstep = 0
else
footstep++
@@ -702,9 +702,9 @@
/obj/item/clothing/suit/space/hardsuit/shielded/process()
if(world.time > recharge_cooldown && current_charges < max_charges)
current_charges = CLAMP((current_charges + recharge_rate), 0, max_charges)
- playsound(loc, 'sound/magic/charge.ogg', 50, 1)
+ playsound(loc, 'sound/magic/charge.ogg', 50, TRUE)
if(current_charges == max_charges)
- playsound(loc, 'sound/machines/ding.ogg', 50, 1)
+ playsound(loc, 'sound/machines/ding.ogg', 50, TRUE)
STOP_PROCESSING(SSobj, src)
shield_state = "[shield_on]"
if(ishuman(loc))
diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm
index 9ad806b7daf..b57e9cd8491 100644
--- a/code/modules/clothing/spacesuits/miscellaneous.dm
+++ b/code/modules/clothing/spacesuits/miscellaneous.dm
@@ -389,8 +389,8 @@ Contains:
name = "torn [src]."
desc = "A bulky suit meant to protect the user during emergency situations, at least until someone tore a hole in the suit."
torn = TRUE
- playsound(loc, 'sound/weapons/slashmiss.ogg', 50, 1)
- playsound(loc, 'sound/effects/refill.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/slashmiss.ogg', 50, TRUE)
+ playsound(loc, 'sound/effects/refill.ogg', 50, TRUE)
/obj/item/clothing/suit/space/hunter
name = "bounty hunting suit"
diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm
index ae715a007e9..50cefdcd9ed 100644
--- a/code/modules/clothing/spacesuits/plasmamen.dm
+++ b/code/modules/clothing/spacesuits/plasmamen.dm
@@ -72,10 +72,10 @@
if(on)
to_chat(user, "Your helmet's torch can't pass through your welding visor!")
on = FALSE
- playsound(src, 'sound/mecha/mechmove03.ogg', 50, 1) //Visors don't just come from nothing
+ playsound(src, 'sound/mecha/mechmove03.ogg', 50, TRUE) //Visors don't just come from nothing
update_icon()
else
- playsound(src, 'sound/mecha/mechmove03.ogg', 50, 1) //Visors don't just come from nothing
+ playsound(src, 'sound/mecha/mechmove03.ogg', 50, TRUE) //Visors don't just come from nothing
update_icon()
/obj/item/clothing/head/helmet/space/plasmaman/worn_overlays(isinhands)
diff --git a/code/modules/clothing/suits/reactive_armour.dm b/code/modules/clothing/suits/reactive_armour.dm
index fec931d54e9..3fd1dc6388a 100644
--- a/code/modules/clothing/suits/reactive_armour.dm
+++ b/code/modules/clothing/suits/reactive_armour.dm
@@ -77,7 +77,7 @@
owner.visible_message("The reactive teleport system is still recharging! It fails to teleport [H]!")
return
owner.visible_message("The reactive teleport system flings [H] clear of [attack_text], shutting itself off in the process!")
- playsound(get_turf(owner),'sound/magic/blink.ogg', 100, 1)
+ playsound(get_turf(owner),'sound/magic/blink.ogg', 100, TRUE)
var/list/turfs = new/list()
for(var/turf/T in orange(tele_range, H))
if(T.density)
@@ -112,7 +112,7 @@
owner.visible_message("The reactive incendiary armor on [owner] activates, but fails to send out flames as it is still recharging its flame jets!")
return
owner.visible_message("[src] blocks [attack_text], sending out jets of flame!")
- playsound(get_turf(owner),'sound/magic/fireball.ogg', 100, 1)
+ playsound(get_turf(owner),'sound/magic/fireball.ogg', 100, TRUE)
for(var/mob/living/carbon/C in range(6, owner))
if(C != owner)
C.fire_stacks += 8
@@ -194,7 +194,7 @@
if(world.time < reactivearmor_cooldown)
owner.visible_message("The repulse generator is still recharging!")
return 0
- playsound(get_turf(owner),'sound/magic/repulse.ogg', 100, 1)
+ playsound(get_turf(owner),'sound/magic/repulse.ogg', 100, TRUE)
owner.visible_message("[src] blocks [attack_text], converting the attack into a wave of force!")
var/turf/T = get_turf(owner)
var/list/thrown_items = list()
diff --git a/code/modules/clothing/suits/toggles.dm b/code/modules/clothing/suits/toggles.dm
index fd6e90d48df..5299a9d266c 100644
--- a/code/modules/clothing/suits/toggles.dm
+++ b/code/modules/clothing/suits/toggles.dm
@@ -171,7 +171,7 @@
H.transferItemToLoc(helmet, src, TRUE)
H.update_inv_wear_suit()
to_chat(H, "The helmet on the hardsuit disengages.")
- playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, 1)
+ playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, TRUE)
else
helmet.forceMove(src)
@@ -197,6 +197,6 @@
to_chat(H, "You engage the helmet on the hardsuit.")
suittoggled = TRUE
H.update_inv_wear_suit()
- playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, 1)
+ playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, TRUE)
else
RemoveHelmet()
diff --git a/code/modules/clothing/suits/wiz_robe.dm b/code/modules/clothing/suits/wiz_robe.dm
index 975cc1bc6e2..31f50d37315 100644
--- a/code/modules/clothing/suits/wiz_robe.dm
+++ b/code/modules/clothing/suits/wiz_robe.dm
@@ -170,7 +170,7 @@
return
usr.say("Rise, my creation! Off your page into this realm!", forced = "stickman summoning")
- playsound(src.loc, 'sound/magic/summon_magic.ogg', 50, 1, 1)
+ playsound(src.loc, 'sound/magic/summon_magic.ogg', 50, TRUE, TRUE)
var/mob/living/M = new /mob/living/simple_animal/hostile/stickman(get_turf(usr))
var/list/factions = usr.faction
M.faction = factions
diff --git a/code/modules/events/fugitive_spawning.dm b/code/modules/events/fugitive_spawning.dm
index 491e94166de..a9bd298b1e1 100644
--- a/code/modules/events/fugitive_spawning.dm
+++ b/code/modules/events/fugitive_spawning.dm
@@ -53,7 +53,7 @@
gear_fugitive_leader(leader, landing_turf, backstory)
//after spawning
- playsound(src, 'sound/weapons/emitter.ogg', 50, 1)
+ playsound(src, 'sound/weapons/emitter.ogg', 50, TRUE)
new /obj/item/storage/toolbox/mechanical(landing_turf) //so they can actually escape maint
addtimer(CALLBACK(src, .proc/spawn_hunters), 10 MINUTES)
role_name = "fugitive hunter"
diff --git a/code/modules/events/holiday/xmas.dm b/code/modules/events/holiday/xmas.dm
index 06757b49917..e10e86cb4c9 100644
--- a/code/modules/events/holiday/xmas.dm
+++ b/code/modules/events/holiday/xmas.dm
@@ -28,7 +28,7 @@
other_half.cracked = 1
other_half.icon_state = "cracker2"
target.put_in_active_hand(other_half)
- playsound(user, 'sound/effects/snap.ogg', 50, 1)
+ playsound(user, 'sound/effects/snap.ogg', 50, TRUE)
return 1
return ..()
diff --git a/code/modules/events/immovable_rod.dm b/code/modules/events/immovable_rod.dm
index 3c6f86406df..424f3cda329 100644
--- a/code/modules/events/immovable_rod.dm
+++ b/code/modules/events/immovable_rod.dm
@@ -111,7 +111,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
/obj/effect/immovablerod/Bump(atom/clong)
if(prob(10))
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
audible_message("You hear a CLANG!")
if(clong && prob(25))
@@ -149,7 +149,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
if(ishuman(user))
var/mob/living/carbon/human/U = user
if(U.job in list("Research Director"))
- playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 100, TRUE)
for(var/mob/M in urange(8, src))
if(!M.stat)
shake_camera(M, 2, 3)
@@ -164,4 +164,4 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
U.visible_message("[U] suplexes [src] into the ground!", "You suplex [src] into the ground!")
new /obj/structure/festivus/anchored(drop_location())
new /obj/effect/anomaly/flux(drop_location())
- qdel(src)
\ No newline at end of file
+ qdel(src)
diff --git a/code/modules/events/nightmare.dm b/code/modules/events/nightmare.dm
index 698f5130f16..ac3a1da8b80 100644
--- a/code/modules/events/nightmare.dm
+++ b/code/modules/events/nightmare.dm
@@ -36,7 +36,7 @@
player_mind.special_role = "Nightmare"
player_mind.add_antag_datum(/datum/antagonist/nightmare)
S.set_species(/datum/species/shadow/nightmare)
- playsound(S, 'sound/magic/ethereal_exit.ogg', 50, 1, -1)
+ playsound(S, 'sound/magic/ethereal_exit.ogg', 50, TRUE, -1)
message_admins("[ADMIN_LOOKUPFLW(S)] has been made into a Nightmare by an event.")
log_game("[key_name(S)] was spawned as a Nightmare by an event.")
spawned_mobs += S
diff --git a/code/modules/events/portal_storm.dm b/code/modules/events/portal_storm.dm
index 5ef30d00307..505a844f9a1 100644
--- a/code/modules/events/portal_storm.dm
+++ b/code/modules/events/portal_storm.dm
@@ -97,7 +97,7 @@
return
T = get_step(T, SOUTHWEST) //align center of image with turf
flick_overlay_static(storm, T, 15)
- playsound(T, 'sound/magic/lightningbolt.ogg', rand(80, 100), 1)
+ playsound(T, 'sound/magic/lightningbolt.ogg', rand(80, 100), TRUE)
/datum/round_event/portal_storm/proc/spawn_hostile()
if(!hostile_types || !hostile_types.len)
diff --git a/code/modules/events/space_dragon.dm b/code/modules/events/space_dragon.dm
index d2f0196aa97..6cf69b15c0d 100644
--- a/code/modules/events/space_dragon.dm
+++ b/code/modules/events/space_dragon.dm
@@ -36,7 +36,7 @@
player_mind.assigned_role = "Space Dragon"
player_mind.special_role = "Space Dragon"
player_mind.add_antag_datum(/datum/antagonist/space_dragon)
- playsound(S, 'sound/magic/ethereal_exit.ogg', 50, 1, -1)
+ playsound(S, 'sound/magic/ethereal_exit.ogg', 50, TRUE, -1)
message_admins("[ADMIN_LOOKUPFLW(S)] has been made into a Space Dragon by an event.")
log_game("[key_name(S)] was spawned as a Space Dragon by an event.")
spawned_mobs += S
diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm
index 82674d4dbdd..993dd8824ab 100644
--- a/code/modules/events/spacevine.dm
+++ b/code/modules/events/spacevine.dm
@@ -344,11 +344,11 @@
switch(damage_type)
if(BRUTE)
if(damage_amount)
- playsound(src, 'sound/weapons/slash.ogg', 50, 1)
+ playsound(src, 'sound/weapons/slash.ogg', 50, TRUE)
else
- playsound(src, 'sound/weapons/tap.ogg', 50, 1)
+ playsound(src, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/structure/spacevine/Crossed(mob/crosser)
if(isliving(crosser))
diff --git a/code/modules/fields/timestop.dm b/code/modules/fields/timestop.dm
index ed38b73771e..dab32711768 100644
--- a/code/modules/fields/timestop.dm
+++ b/code/modules/fields/timestop.dm
@@ -42,7 +42,7 @@
/obj/effect/timestop/proc/timestop()
target = get_turf(src)
- playsound(src, 'sound/magic/timeparadox2.ogg', 75, 1, -1)
+ playsound(src, 'sound/magic/timeparadox2.ogg', 75, TRUE, -1)
chronofield = make_field(/datum/proximity_monitor/advanced/timestop, list("current_range" = freezerange, "host" = src, "immune" = immune, "check_anti_magic" = check_anti_magic, "check_holy" = check_holy))
QDEL_IN(src, duration)
diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm
index ae875c69682..3b91a3640c2 100644
--- a/code/modules/food_and_drinks/drinks/drinks.dm
+++ b/code/modules/food_and_drinks/drinks/drinks.dm
@@ -55,7 +55,7 @@
checkLiked(fraction, M)
reagents.reaction(M, INGEST, fraction)
reagents.trans_to(M, gulp_size, transfered_by = user)
- playsound(M.loc,'sound/items/drink.ogg', rand(10,50), 1)
+ playsound(M.loc,'sound/items/drink.ogg', rand(10,50), TRUE)
return 1
/obj/item/reagent_containers/food/drinks/afterattack(obj/target, mob/user , proximity)
@@ -126,7 +126,7 @@
if(prob(33))
var/obj/item/shard/S = new(drop_location())
target.Bumped(S)
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
transfer_fingerprints_to(B)
qdel(src)
target.Bumped(B)
@@ -420,14 +420,14 @@
open_soda()
sleep(10)
H.visible_message("[H] takes a big sip from [src]! It looks like [H.p_theyre()] trying to commit suicide!")
- playsound(H,'sound/items/drink.ogg', 80, 1)
+ playsound(H,'sound/items/drink.ogg', 80, TRUE)
reagents.trans_to(H, src.reagents.total_volume, transfered_by = H) //a big sip
sleep(5)
H.say(pick("Now, Outbomb Cuban Pete, THAT was a game.", "All these new fangled arcade games are too slow. I prefer the classics.", "They don't make 'em like Orion Trail anymore.", "You know what they say. Worst day of spess carp fishing is better than the best day at work.", "They don't make 'em like good old fashioned singularity engines anymore."))
if(H.age >= 30)
H.Stun(50)
sleep(50)
- playsound(H,'sound/items/drink.ogg', 80, 1)
+ playsound(H,'sound/items/drink.ogg', 80, TRUE)
H.say(pick("Another day, another dollar.", "I wonder if I should hold?", "Diversifying is for young'ns.", "Yeap, times were good back then."))
return MANUAL_SUICIDE_NONLETHAL
sleep(20) //dramatic pause
@@ -436,7 +436,7 @@
/obj/item/reagent_containers/food/drinks/soda_cans/attack(mob/M, mob/user)
if(M == user && !src.reagents.total_volume && user.a_intent == INTENT_HARM && user.zone_selected == BODY_ZONE_HEAD)
user.visible_message("[user] crushes the can of [src] on [user.p_their()] forehead!", "You crush the can of [src] on your forehead.")
- playsound(user.loc,'sound/weapons/pierce.ogg', rand(10,50), 1)
+ playsound(user.loc,'sound/weapons/pierce.ogg', rand(10,50), TRUE)
var/obj/item/trash/can/crushed_can = new /obj/item/trash/can(user.loc)
crushed_can.icon_state = icon_state
qdel(src)
@@ -455,7 +455,7 @@
/obj/item/reagent_containers/food/drinks/soda_cans/proc/open_soda(mob/user)
to_chat(user, "You pull back the tab of \the [src] with a satisfying pop.") //Ahhhhhhhh
ENABLE_BITFIELD(reagents.flags, OPENCONTAINER)
- playsound(src, "can_open", 50, 1)
+ playsound(src, "can_open", 50, TRUE)
spillable = TRUE
/obj/item/reagent_containers/food/drinks/soda_cans/attack_self(mob/user)
diff --git a/code/modules/food_and_drinks/drinks/drinks/bottle.dm b/code/modules/food_and_drinks/drinks/drinks/bottle.dm
index 97829dda188..8a17182a407 100644
--- a/code/modules/food_and_drinks/drinks/drinks/bottle.dm
+++ b/code/modules/food_and_drinks/drinks/drinks/bottle.dm
@@ -34,7 +34,7 @@
if(prob(33))
var/obj/item/shard/S = new(drop_location())
target.Bumped(S)
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
else
B.force = 0
B.throwforce = 0
diff --git a/code/modules/food_and_drinks/food/condiment.dm b/code/modules/food_and_drinks/food/condiment.dm
index 6b3addeddb3..a1fcdbd1196 100644
--- a/code/modules/food_and_drinks/food/condiment.dm
+++ b/code/modules/food_and_drinks/food/condiment.dm
@@ -62,7 +62,7 @@
var/fraction = min(10/reagents.total_volume, 1)
reagents.reaction(M, INGEST, fraction)
reagents.trans_to(M, 10, transfered_by = user)
- playsound(M.loc,'sound/items/drink.ogg', rand(10,50), 1)
+ playsound(M.loc,'sound/items/drink.ogg', rand(10,50), TRUE)
return 1
/obj/item/reagent_containers/food/condiment/afterattack(obj/target, mob/user , proximity)
diff --git a/code/modules/food_and_drinks/food/snacks.dm b/code/modules/food_and_drinks/food/snacks.dm
index 44ae1bf4ca7..a87b69587ac 100644
--- a/code/modules/food_and_drinks/food/snacks.dm
+++ b/code/modules/food_and_drinks/food/snacks.dm
@@ -138,7 +138,7 @@ All foods are distributed among various categories. Use common sense.
if(reagents) //Handle ingestion of the reagent.
if(M.satiety > -200)
M.satiety -= junkiness
- playsound(M.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
+ playsound(M.loc,'sound/items/eatfood.ogg', rand(10,50), TRUE)
if(reagents.total_volume)
SEND_SIGNAL(src, COMSIG_FOOD_EATEN, M, user)
var/fraction = min(bitesize / reagents.total_volume, 1)
diff --git a/code/modules/food_and_drinks/food/snacks_pizza.dm b/code/modules/food_and_drinks/food/snacks_pizza.dm
index cb2ea093ca3..2d7fbe1f788 100644
--- a/code/modules/food_and_drinks/food/snacks_pizza.dm
+++ b/code/modules/food_and_drinks/food/snacks_pizza.dm
@@ -177,7 +177,7 @@
l_arm.dismember()
else
r_arm.dismember()
- playsound(user,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, TRUE, -1)
+ playsound(user, "desceration" ,50, TRUE, -1)
/obj/item/reagent_containers/food/snacks/proc/i_kill_you(obj/item/I, mob/user)
if(istype(I, /obj/item/reagent_containers/food/snacks/pineappleslice))
diff --git a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
index 5b4eafc00cd..adba7822d06 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
@@ -116,7 +116,7 @@ God bless America.
cook_time += fry_speed
if(cook_time >= 30 && !frying_fried)
frying_fried = TRUE //frying... frying... fried
- playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/ding.ogg', 50, TRUE)
audible_message("[src] dings!")
else if (cook_time >= 60 && !frying_burnt)
frying_burnt = TRUE
diff --git a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
index af12485e997..16774ef5338 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
@@ -143,7 +143,7 @@
return
use_power(1000)
audible_message("You hear a loud squelchy grinding sound.")
- playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/juicer.ogg', 50, TRUE)
operating = TRUE
update_icon()
@@ -203,7 +203,7 @@
addtimer(CALLBACK(src, .proc/make_meat, skin, allmeat, meat_produced, gibtype, diseases), gibtime)
/obj/machinery/gibber/proc/make_meat(obj/item/stack/sheet/animalhide/skin, list/obj/item/reagent_containers/food/snacks/meat/slab/allmeat, meat_produced, gibtype, list/datum/disease/diseases)
- playsound(src.loc, 'sound/effects/splat.ogg', 50, 1)
+ playsound(src.loc, 'sound/effects/splat.ogg', 50, TRUE)
operating = FALSE
var/turf/T = get_turf(src)
var/list/turf/nearby_turfs = RANGE_TURFS(3,T) - T
diff --git a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
index 07050bbbfd4..2e3d59c0938 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
@@ -145,7 +145,7 @@
if(R.type in icecream_vat_reagents)
beaker.reagents.trans_id_to(src, R.type, R.volume)
say("Internalizing reagent.")
- playsound(src, 'sound/items/drink.ogg', 25, 1)
+ playsound(src, 'sound/items/drink.ogg', 25, TRUE)
return
diff --git a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
index 69ad2d48ae4..44170e46705 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
@@ -138,7 +138,7 @@
var/obj/item/reagent_containers/spray/clean_spray = O
if(clean_spray.reagents.has_reagent(/datum/reagent/space_cleaner, clean_spray.amount_per_transfer_from_this))
clean_spray.reagents.remove_reagent(/datum/reagent/space_cleaner, clean_spray.amount_per_transfer_from_this,1)
- playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6)
+ playsound(loc, 'sound/effects/spray3.ogg', 50, TRUE, -6)
user.visible_message("[user] has cleaned \the [src].", "You clean \the [src].")
dirty = 0
update_icon()
@@ -237,7 +237,7 @@
if(wire_disabled)
audible_message("[src] buzzes.")
- playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 50, FALSE)
return
if(prob(max((5 / efficiency) - 5, dirty * 5))) //a clean unupgraded microwave has no risk of failure
@@ -280,7 +280,7 @@
/obj/machinery/microwave/proc/muck()
turn_on()
- playsound(src.loc, 'sound/effects/splat.ogg', 50, 1)
+ playsound(src.loc, 'sound/effects/splat.ogg', 50, TRUE)
dirty_anim_playing = TRUE
update_icon()
loop(MICROWAVE_MUCK, 4)
diff --git a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
index 78ea4962ad1..54ed2794206 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
@@ -75,7 +75,7 @@ GLOBAL_LIST_EMPTY(monkey_recyclers)
return
qdel(target)
to_chat(user, "You stuff the monkey into the machine.")
- playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/juicer.ogg', 50, TRUE)
var/offset = prob(50) ? -2 : 2
animate(src, pixel_x = pixel_x + offset, time = 0.2, loop = 200) //start shaking
use_power(500)
@@ -86,7 +86,7 @@ GLOBAL_LIST_EMPTY(monkey_recyclers)
/obj/machinery/monkey_recycler/interact(mob/user)
if(stored_matter >= 1)
to_chat(user, "The machine hisses loudly as it condenses the ground monkey meat. After a moment, it dispenses a brand new monkey cube.")
- playsound(src.loc, 'sound/machines/hiss.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/hiss.ogg', 50, TRUE)
for(var/i in 1 to FLOOR(stored_matter, 1))
new /obj/item/reagent_containers/food/snacks/monkeycube(src.loc)
stored_matter--
diff --git a/code/modules/food_and_drinks/kitchen_machinery/processor.dm b/code/modules/food_and_drinks/kitchen_machinery/processor.dm
index 3c0cf54e23a..969da44aace 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/processor.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/processor.dm
@@ -105,7 +105,7 @@
user.visible_message("[user] turns on [src].", \
"You turn on [src].", \
"You hear a food processor.")
- playsound(src.loc, 'sound/machines/blender.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/blender.ogg', 50, TRUE)
use_power(500)
var/total_time = 0
for(var/O in src.contents)
diff --git a/code/modules/food_and_drinks/pizzabox.dm b/code/modules/food_and_drinks/pizzabox.dm
index 9aed675ac99..48fff02117c 100644
--- a/code/modules/food_and_drinks/pizzabox.dm
+++ b/code/modules/food_and_drinks/pizzabox.dm
@@ -213,7 +213,7 @@
/obj/item/pizzabox/process()
if(bomb_active && !bomb_defused && (bomb_timer > 0))
- playsound(loc, 'sound/items/timer.ogg', 50, 0)
+ playsound(loc, 'sound/items/timer.ogg', 50, FALSE)
bomb_timer--
if(bomb_active && !bomb_defused && (bomb_timer <= 0))
if(bomb in src)
diff --git a/code/modules/holiday/halloween.dm b/code/modules/holiday/halloween.dm
index 862cb7bfd79..92a0b699de7 100644
--- a/code/modules/holiday/halloween.dm
+++ b/code/modules/holiday/halloween.dm
@@ -71,19 +71,19 @@
else if(trapped == SPOOKY_SKELETON)
visible_message("BOO!")
- playsound(loc, 'sound/spookoween/girlscream.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/girlscream.ogg', 300, TRUE)
trapped = 0
QDEL_IN(trapped_mob, 90)
else if(trapped == HOWLING_GHOST)
visible_message("[pick("OooOOooooOOOoOoOOooooOOOOO", "BooOOooOooooOOOO", "BOO!", "WoOOoOoooOooo")]")
- playsound(loc, 'sound/spookoween/ghosty_wind.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/ghosty_wind.ogg', 300, TRUE)
new /mob/living/simple_animal/shade/howling_ghost(loc)
trapped = 0
else if(trapped == SCARY_BATS)
visible_message("Protect your hair!")
- playsound(loc, 'sound/spookoween/bats.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/bats.ogg', 300, TRUE)
var/number = rand(1,3)
for(var/i=0,i < number,i++)
new /mob/living/simple_animal/hostile/retaliate/bat(loc)
@@ -92,14 +92,14 @@
else if(trapped == ANGRY_FAITHLESS)
visible_message("The closet bursts open!")
visible_message("THIS BEING RADIATES PURE EVIL! YOU BETTER RUN!!!")
- playsound(loc, 'sound/hallucinations/wail.ogg', 300, 1)
+ playsound(loc, 'sound/hallucinations/wail.ogg', 300, TRUE)
var/mob/living/simple_animal/hostile/faithless/F = new(loc)
trapped = 0
QDEL_IN(F, 120)
else if(trapped == INSANE_CLOWN)
visible_message("...")
- playsound(loc, 'sound/spookoween/scary_clown_appear.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/scary_clown_appear.ogg', 300, TRUE)
spawn_atom_to_turf(/mob/living/simple_animal/hostile/clown_insane, loc, 1, FALSE)
trapped = 0
@@ -156,7 +156,7 @@
/mob/living/simple_animal/shade/howling_ghost/proc/spooky_ghosty()
if(prob(20)) //haunt
- playsound(loc, pick('sound/spookoween/ghosty_wind.ogg','sound/spookoween/ghost_whisper.ogg','sound/spookoween/chain_rattling.ogg'), 300, 1)
+ playsound(loc, pick('sound/spookoween/ghosty_wind.ogg','sound/spookoween/ghost_whisper.ogg','sound/spookoween/chain_rattling.ogg'), 300, TRUE)
if(prob(10)) //flickers
var/obj/machinery/light/L = locate(/obj/machinery/light) in view(5, src)
if(L)
@@ -245,13 +245,13 @@
/mob/living/simple_animal/hostile/clown_insane/adjustHealth(amount, updating_health = TRUE, forced = FALSE)
. = 0
if(prob(5))
- playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, TRUE)
/mob/living/simple_animal/hostile/clown_insane/attackby(obj/item/O, mob/user)
if(istype(O, /obj/item/nullrod))
if(prob(5))
visible_message("[src] finally found the peace it deserves. You hear honks echoing off into the distance.")
- playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, 1)
+ playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, TRUE)
qdel(src)
else
visible_message("[src] seems to be resisting the effect!")
diff --git a/code/modules/holodeck/computer.dm b/code/modules/holodeck/computer.dm
index c93f841b433..65f8604fa26 100644
--- a/code/modules/holodeck/computer.dm
+++ b/code/modules/holodeck/computer.dm
@@ -167,7 +167,7 @@
if(!LAZYLEN(emag_programs))
to_chat(user, "[src] does not seem to have a card swipe port. It must be an inferior model.")
return
- playsound(src, "sparks", 75, 1)
+ playsound(src, "sparks", 75, TRUE)
obj_flags |= EMAGGED
to_chat(user, "You vastly increase projector power and override the safety and security protocols.")
say("Warning. Automatic shutoff and derezzing protocols have been corrupted. Please call Nanotrasen maintenance and do not use the simulator.")
diff --git a/code/modules/holodeck/items.dm b/code/modules/holodeck/items.dm
index c78a58d50e6..f1cd4cbcc73 100644
--- a/code/modules/holodeck/items.dm
+++ b/code/modules/holodeck/items.dm
@@ -54,14 +54,14 @@
icon_state = "sword[saber_color]"
w_class = WEIGHT_CLASS_BULKY
hitsound = 'sound/weapons/blade1.ogg'
- playsound(user, 'sound/weapons/saberon.ogg', 20, 1)
+ playsound(user, 'sound/weapons/saberon.ogg', 20, TRUE)
to_chat(user, "[src] is now active.")
else
force = 3
icon_state = "sword0"
w_class = WEIGHT_CLASS_SMALL
hitsound = "swing_hit"
- playsound(user, 'sound/weapons/saberoff.ogg', 20, 1)
+ playsound(user, 'sound/weapons/saberoff.ogg', 20, TRUE)
to_chat(user, "[src] can now be concealed.")
return
@@ -85,7 +85,7 @@
..()
if((ishuman(hit_atom)))
var/mob/living/carbon/M = hit_atom
- playsound(src, 'sound/items/dodgeball.ogg', 50, 1)
+ playsound(src, 'sound/items/dodgeball.ogg', 50, TRUE)
M.apply_damage(10, STAMINA)
if(prob(5))
M.Paralyze(60)
diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm
index c7eb852c632..c28f1f666b5 100644
--- a/code/modules/hydroponics/biogenerator.dm
+++ b/code/modules/hydroponics/biogenerator.dm
@@ -223,7 +223,7 @@
processing = TRUE
update_icon()
updateUsrDialog()
- playsound(src.loc, 'sound/machines/blender.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/blender.ogg', 50, TRUE)
use_power(S*30)
sleep(S+15/productivity)
processing = FALSE
diff --git a/code/modules/hydroponics/grown/banana.dm b/code/modules/hydroponics/grown/banana.dm
index fe87f8dc400..636a85e49e9 100644
--- a/code/modules/hydroponics/grown/banana.dm
+++ b/code/modules/hydroponics/grown/banana.dm
@@ -29,7 +29,7 @@
/obj/item/reagent_containers/food/snacks/grown/banana/suicide_act(mob/user)
user.visible_message("[user] is aiming [src] at [user.p_them()]self! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/items/bikehorn.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/bikehorn.ogg', 50, TRUE, -1)
sleep(25)
if(!user)
return (OXYLOSS)
@@ -56,7 +56,7 @@
/obj/item/grown/bananapeel/suicide_act(mob/user)
user.visible_message("[user] is deliberately slipping on [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/misc/slip.ogg', 50, 1, -1)
+ playsound(loc, 'sound/misc/slip.ogg', 50, TRUE, -1)
return (BRUTELOSS)
diff --git a/code/modules/hydroponics/grown/cereals.dm b/code/modules/hydroponics/grown/cereals.dm
index f4520d7fcfb..f5a68136237 100644
--- a/code/modules/hydroponics/grown/cereals.dm
+++ b/code/modules/hydroponics/grown/cereals.dm
@@ -98,7 +98,7 @@
/obj/item/reagent_containers/food/snacks/grown/meatwheat/attack_self(mob/living/user)
user.visible_message("[user] crushes [src] into meat.", "You crush [src] into something that resembles meat.")
- playsound(user, 'sound/effects/blobattack.ogg', 50, 1)
+ playsound(user, 'sound/effects/blobattack.ogg', 50, TRUE)
var/obj/item/reagent_containers/food/snacks/meat/slab/meatwheat/M = new
qdel(src)
user.put_in_hands(M)
diff --git a/code/modules/hydroponics/grown/citrus.dm b/code/modules/hydroponics/grown/citrus.dm
index 99de8b92d66..52540865bfc 100644
--- a/code/modules/hydroponics/grown/citrus.dm
+++ b/code/modules/hydroponics/grown/citrus.dm
@@ -120,7 +120,7 @@
var/mob/living/carbon/C = user
C.throw_mode_on()
icon_state = "firelemon_active"
- playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3)
+ playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3)
addtimer(CALLBACK(src, .proc/prime), rand(10, 60))
/obj/item/reagent_containers/food/snacks/grown/firelemon/burn()
diff --git a/code/modules/hydroponics/grown/misc.dm b/code/modules/hydroponics/grown/misc.dm
index d2469db6199..3563d1e5a6a 100644
--- a/code/modules/hydroponics/grown/misc.dm
+++ b/code/modules/hydroponics/grown/misc.dm
@@ -223,7 +223,7 @@
/obj/item/reagent_containers/food/snacks/grown/cherry_bomb/proc/prime()
icon_state = "cherry_bomb_lit"
- playsound(src, 'sound/effects/fuse.ogg', seed.potency, 0)
+ playsound(src, 'sound/effects/fuse.ogg', seed.potency, FALSE)
reagents.chem_temp = 1000 //Sets off the black powder
reagents.handle_reactions()
diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm
index 0ccd4bd6e19..c89f35c8477 100644
--- a/code/modules/hydroponics/hydroitemdefines.dm
+++ b/code/modules/hydroponics/hydroitemdefines.dm
@@ -100,7 +100,7 @@
/obj/item/hatchet/suicide_act(mob/user)
user.visible_message("[user] is chopping at [user.p_them()]self with [src]! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(src, 'sound/weapons/bladeslice.ogg', 50, 1, -1)
+ playsound(src, 'sound/weapons/bladeslice.ogg', 50, TRUE, -1)
return (BRUTELOSS)
/obj/item/hatchet/wooden
@@ -138,7 +138,7 @@
var/obj/item/bodypart/BP = C.get_bodypart(BODY_ZONE_HEAD)
if(BP)
BP.drop_limb()
- playsound(src,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(src, "desceration" ,50, TRUE, -1)
return (BRUTELOSS)
/obj/item/scythe/pre_attack(atom/A, mob/living/user, params)
diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm
index 78092c6fca7..82d52bea7f8 100644
--- a/code/modules/hydroponics/hydroponics.dm
+++ b/code/modules/hydroponics/hydroponics.dm
@@ -750,14 +750,14 @@
syr.mode = 0
else if(istype(reagent_source, /obj/item/reagent_containers/spray/))
visi_msg="[user] sprays [target] with [reagent_source]"
- playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6)
+ playsound(loc, 'sound/effects/spray3.ogg', 50, TRUE, -6)
irrigate = 1
else if(transfer_amount) // Droppers, cans, beakers, what have you.
visi_msg="[user] uses [reagent_source] on [target]"
irrigate = 1
// Beakers, bottles, buckets, etc.
if(reagent_source.is_drainable())
- playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
+ playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
if(irrigate && transfer_amount > 30 && reagent_source.reagents.total_volume >= 30 && using_irrigation)
trays = FindConnected()
diff --git a/code/modules/language/codespeak.dm b/code/modules/language/codespeak.dm
index a7f8c7284d0..3c8534514b1 100644
--- a/code/modules/language/codespeak.dm
+++ b/code/modules/language/codespeak.dm
@@ -57,7 +57,7 @@
attack_self(user)
return
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
if(M.stat == DEAD)
M.visible_message("[user] smacks [M]'s lifeless corpse with [src].", "[user] smacks your lifeless corpse with [src].", "You hear smacking.")
diff --git a/code/modules/library/soapstone.dm b/code/modules/library/soapstone.dm
index 295fc816e2e..562c1ba68ff 100644
--- a/code/modules/library/soapstone.dm
+++ b/code/modules/library/soapstone.dm
@@ -36,12 +36,12 @@
if(existing_message)
user.visible_message("[user] starts erasing [existing_message].", "You start erasing [existing_message].", "You hear a chipping sound.")
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
if(do_after(user, tool_speed, target = existing_message))
user.visible_message("[user] erases [existing_message].", "You erase [existing_message][existing_message.creator_key == user.ckey ? ", refunding a use" : ""].")
existing_message.persists = FALSE
qdel(existing_message)
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
if(existing_message.creator_key == user.ckey)
refund_use()
return
@@ -54,12 +54,12 @@
if(!target.Adjacent(user) && locate(/obj/structure/chisel_message) in T)
to_chat(user, "Someone wrote here before you chose! Find another spot.")
return
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
user.visible_message("[user] starts engraving a message into [T]...", "You start engraving a message into [T]...", "You hear a chipping sound.")
if(can_use() && do_after(user, tool_speed, target = T) && can_use()) //This looks messy but it's actually really clever!
if(!locate(/obj/structure/chisel_message) in T)
user.visible_message("[user] leaves a message for future spacemen!", "You engrave a message into [T]!", "You hear a chipping sound.")
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
var/obj/structure/chisel_message/M = new(T)
M.register(user, message)
remove_use()
diff --git a/code/modules/mining/aux_base.dm b/code/modules/mining/aux_base.dm
index 6eabdf5d75e..af78d3d8d66 100644
--- a/code/modules/mining/aux_base.dm
+++ b/code/modules/mining/aux_base.dm
@@ -89,7 +89,7 @@ interface with the mining shuttle at the landing site if a mobile beacon is also
var/shuttle_error = SSshuttle.moveShuttle(shuttleId, href_list["move"], 1)
if(launch_warning)
say("Launch sequence activated! Prepare for drop!!")
- playsound(loc, 'sound/machines/warning-buzzer.ogg', 70, 0)
+ playsound(loc, 'sound/machines/warning-buzzer.ogg', 70, FALSE)
launch_warning = FALSE
else if(!shuttle_error)
say("Shuttle request uploaded. Please stand away from the doors.")
@@ -362,7 +362,7 @@ interface with the mining shuttle at the landing site if a mobile beacon is also
aux_base_console.set_mining_mode() //Lets the colony park the shuttle there, now that it has a dock.
to_chat(user, "Mining shuttle calibration successful! Shuttle interface available at base console.")
anchored = TRUE //Locks in place to mark the landing zone.
- playsound(loc, 'sound/machines/ping.ogg', 50, 0)
+ playsound(loc, 'sound/machines/ping.ogg', 50, FALSE)
/obj/structure/mining_shuttle_beacon/proc/clear_cooldown()
anti_spam_cd = 0
diff --git a/code/modules/mining/aux_base_camera.dm b/code/modules/mining/aux_base_camera.dm
index 02c54ffbd36..833846b952b 100644
--- a/code/modules/mining/aux_base_camera.dm
+++ b/code/modules/mining/aux_base_camera.dm
@@ -183,7 +183,7 @@
owner.changeNext_move(CLICK_CD_RANGE)
B.RCD.afterattack(rcd_target, owner, TRUE) //Activate the RCD and force it to work remotely!
- playsound(target_turf, 'sound/items/deconstruct.ogg', 60, 1)
+ playsound(target_turf, 'sound/items/deconstruct.ogg', 60, TRUE)
/datum/action/innate/aux_base/switch_mode
name = "Switch Mode"
@@ -242,7 +242,7 @@ datum/action/innate/aux_base/place_fan/Activate()
new /obj/structure/fans/tiny(fan_turf)
B.fans_remaining--
to_chat(owner, "Tiny fan placed. [B.fans_remaining] remaining.")
- playsound(fan_turf, 'sound/machines/click.ogg', 50, 1)
+ playsound(fan_turf, 'sound/machines/click.ogg', 50, TRUE)
datum/action/innate/aux_base/install_turret
name = "Install Plasma Anti-Wildlife Turret"
@@ -271,4 +271,4 @@ datum/action/innate/aux_base/install_turret/Activate()
B.turret_stock--
to_chat(owner, "Turret installation complete!")
- playsound(turret_turf, 'sound/items/drill_use.ogg', 65, 1)
+ playsound(turret_turf, 'sound/items/drill_use.ogg', 65, TRUE)
diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm
index d7f0a3ed85d..33210b7030f 100644
--- a/code/modules/mining/equipment/kinetic_crusher.dm
+++ b/code/modules/mining/equipment/kinetic_crusher.dm
@@ -91,7 +91,7 @@
D.preparePixelProjectile(target, user, clickparams)
D.firer = user
D.hammer_synced = src
- playsound(user, 'sound/weapons/plasma_cutter.ogg', 100, 1)
+ playsound(user, 'sound/weapons/plasma_cutter.ogg', 100, TRUE)
D.fire()
charged = FALSE
update_icon()
@@ -117,7 +117,7 @@
if(!QDELETED(C))
C.total_damage += detonation_damage + backstab_bonus //cheat a little and add the total before killing it, so certain mobs don't have much lower chances of giving an item
L.apply_damage(detonation_damage + backstab_bonus, BRUTE, blocked = def_check)
- playsound(user, 'sound/weapons/kenetic_accel.ogg', 100, 1) //Seriously who spelled it wrong
+ playsound(user, 'sound/weapons/kenetic_accel.ogg', 100, TRUE) //Seriously who spelled it wrong
else
if(!QDELETED(C))
C.total_damage += detonation_damage
@@ -127,7 +127,7 @@
if(!charged)
charged = TRUE
update_icon()
- playsound(src.loc, 'sound/weapons/kenetic_reload.ogg', 60, 1)
+ playsound(src.loc, 'sound/weapons/kenetic_reload.ogg', 60, TRUE)
/obj/item/twohanded/kinetic_crusher/ui_action_click(mob/user, actiontype)
light_on = !light_on
@@ -343,7 +343,7 @@
for(var/mob/living/L in oview(2, user))
if(L.stat == DEAD)
continue
- playsound(L, 'sound/magic/fireball.ogg', 20, 1)
+ playsound(L, 'sound/magic/fireball.ogg', 20, TRUE)
new /obj/effect/temp_visual/fire(L.loc)
addtimer(CALLBACK(src, .proc/pushback, L, user), 1) //no free backstabs, we push AFTER module stuff is done
L.adjustFireLoss(bonus_value, forced = TRUE)
diff --git a/code/modules/mining/equipment/lazarus_injector.dm b/code/modules/mining/equipment/lazarus_injector.dm
index f8b155cb9fe..4b77f85d3d5 100644
--- a/code/modules/mining/equipment/lazarus_injector.dm
+++ b/code/modules/mining/equipment/lazarus_injector.dm
@@ -41,7 +41,7 @@
loaded = 0
user.visible_message("[user] injects [M] with [src], reviving it.")
SSblackbox.record_feedback("tally", "lazarus_injector", 1, M.type)
- playsound(src,'sound/effects/refill.ogg',50,1)
+ playsound(src,'sound/effects/refill.ogg',50,TRUE)
icon_state = "lazarus_empty"
return
else
diff --git a/code/modules/mining/equipment/marker_beacons.dm b/code/modules/mining/equipment/marker_beacons.dm
index b8c387a1444..b9072ffd329 100644
--- a/code/modules/mining/equipment/marker_beacons.dm
+++ b/code/modules/mining/equipment/marker_beacons.dm
@@ -52,7 +52,7 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list(
return
if(use(1))
to_chat(user, "You activate and anchor [amount ? "a":"the"] [singular_name] in place.")
- playsound(user, 'sound/machines/click.ogg', 50, 1)
+ playsound(user, 'sound/machines/click.ogg', 50, TRUE)
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
transfer_fingerprints_to(M)
@@ -113,7 +113,7 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list(
M.update_icon()
transfer_fingerprints_to(M)
if(user.put_in_hands(M, TRUE)) //delete the beacon if it fails
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
qdel(src) //otherwise delete us
/obj/structure/marker_beacon/attackby(obj/item/I, mob/user, params)
@@ -122,14 +122,14 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list(
to_chat(user, "You start picking [src] up...")
if(do_after(user, remove_speed, target = src) && M.amount + 1 <= M.max_amount)
M.add(1)
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
qdel(src)
return
if(istype(I, /obj/item/light_eater))
var/obj/effect/decal/cleanable/ash/A = new /obj/effect/decal/cleanable/ash(drop_location())
A.desc += "\nLooks like this used to be \a [src] some time ago."
visible_message("[src] is disintegrated by [I]!")
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
qdel(src)
return
return ..()
diff --git a/code/modules/mining/equipment/resonator.dm b/code/modules/mining/equipment/resonator.dm
index e23c3deb58e..8fc88d65a14 100644
--- a/code/modules/mining/equipment/resonator.dm
+++ b/code/modules/mining/equipment/resonator.dm
@@ -66,7 +66,7 @@
res = set_resonator
if(res)
res.fields += src
- playsound(src,'sound/weapons/resonator_fire.ogg',50,1)
+ playsound(src,'sound/weapons/resonator_fire.ogg',50,TRUE)
transform = matrix()*0.75
animate(src, transform = matrix()*1.5, time = duration)
deltimer(timerid)
@@ -97,7 +97,7 @@
var/turf/closed/mineral/M = T
M.gets_drilled(creator)
check_pressure(T)
- playsound(T,'sound/weapons/resonator_blast.ogg',50,1)
+ playsound(T,'sound/weapons/resonator_blast.ogg',50,TRUE)
for(var/mob/living/L in T)
if(creator)
log_combat(creator, L, "used a resonator field on", "resonator")
diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm
index a2163c2d21c..777461940ca 100644
--- a/code/modules/mining/equipment/survival_pod.dm
+++ b/code/modules/mining/equipment/survival_pod.dm
@@ -57,7 +57,7 @@
used = FALSE
return
- playsound(src, 'sound/effects/phasein.ogg', 100, 1)
+ playsound(src, 'sound/effects/phasein.ogg', 100, TRUE)
var/turf/T = deploy_location
if(!is_mining_level(T.z)) //only report capsules away from the mining/lavaland level
diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm
index 1d769fa83cf..aec8f90affe 100644
--- a/code/modules/mining/equipment/wormhole_jaunter.dm
+++ b/code/modules/mining/equipment/wormhole_jaunter.dm
@@ -47,7 +47,7 @@
var/obj/effect/portal/jaunt_tunnel/J = new (get_turf(src), src, 100, null, FALSE, get_turf(chosen_beacon))
if(adjacent)
try_move_adjacent(J)
- playsound(src,'sound/effects/sparks4.ogg',50,1)
+ playsound(src,'sound/effects/sparks4.ogg',50,TRUE)
qdel(src)
/obj/item/wormhole_jaunter/emp_act(power)
@@ -90,7 +90,7 @@
. = ..()
if(.)
// KERPLUNK
- playsound(M,'sound/weapons/resonator_blast.ogg',50,1)
+ playsound(M,'sound/weapons/resonator_blast.ogg',50,TRUE)
if(iscarbon(M))
var/mob/living/carbon/L = M
L.Paralyze(60)
diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm
index 146d0a94495..d55bac7c685 100644
--- a/code/modules/mining/fulton.dm
+++ b/code/modules/mining/fulton.dm
@@ -92,7 +92,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
balloon.appearance_flags = RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM
holder_obj.cut_overlay(balloon2)
holder_obj.add_overlay(balloon)
- playsound(holder_obj.loc, 'sound/items/fultext_deploy.ogg', 50, 1, -3)
+ playsound(holder_obj.loc, 'sound/items/fultext_deploy.ogg', 50, TRUE, -3)
animate(holder_obj, pixel_z = 10, time = 20)
sleep(20)
animate(holder_obj, pixel_z = 15, time = 10)
@@ -103,7 +103,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
sleep(10)
animate(holder_obj, pixel_z = 10, time = 10)
sleep(10)
- playsound(holder_obj.loc, 'sound/items/fultext_launch.ogg', 50, 1, -3)
+ playsound(holder_obj.loc, 'sound/items/fultext_launch.ogg', 50, TRUE, -3)
animate(holder_obj, pixel_z = 1000, time = 30)
if(ishuman(A))
var/mob/living/carbon/human/L = A
diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm
index 31f187c77d4..878ee6b9e55 100644
--- a/code/modules/mining/lavaland/necropolis_chests.dm
+++ b/code/modules/mining/lavaland/necropolis_chests.dm
@@ -895,7 +895,7 @@
to_chat(user, "You feel like you could walk straight through lava now.")
H.weather_immunities |= "lava"
- playsound(user.loc,'sound/items/drink.ogg', rand(10,50), 1)
+ playsound(user.loc,'sound/items/drink.ogg', rand(10,50), TRUE)
qdel(src)
/datum/disease/transformation/dragon
@@ -967,7 +967,7 @@
message_admins("[ADMIN_LOOKUPFLW(user)] fired the lava staff at [ADMIN_VERBOSEJMP(T)]")
log_game("[key_name(user)] fired the lava staff at [AREACOORD(T)].")
timer = world.time + create_cooldown
- playsound(T,'sound/magic/fireball.ogg', 200, 1)
+ playsound(T,'sound/magic/fireball.ogg', 200, TRUE)
else
timer = world.time
qdel(L)
@@ -976,7 +976,7 @@
if(T.TerraformTurf(reset_turf_type, flags = CHANGETURF_INHERIT_AIR))
user.visible_message("[user] turns \the [old_name] into [reset_string]!")
timer = world.time + reset_cooldown
- playsound(T,'sound/magic/fireball.ogg', 200, 1)
+ playsound(T,'sound/magic/fireball.ogg', 200, TRUE)
/obj/effect/temp_visual/lavastaff
icon_state = "lavastaff_warn"
@@ -1016,7 +1016,7 @@
var/obj/effect/mine/pickup/bloodbath/B = new(H)
INVOKE_ASYNC(B, /obj/effect/mine/pickup/bloodbath/.proc/mineEffect, H)
to_chat(user, "You shatter the bottle!")
- playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, 1)
+ playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, TRUE)
message_admins("[ADMIN_LOOKUPFLW(user)] has activated a bottle of mayhem!")
log_combat(user, null, "activated a bottle of mayhem", src)
qdel(src)
@@ -1207,7 +1207,7 @@
INVOKE_ASYNC(src, .proc/prepare_icon_update)
if(do_after(user, 50, target = user) && !beacon)
var/turf/T = get_turf(user)
- playsound(T,'sound/magic/blind.ogg', 200, 1, -4)
+ playsound(T,'sound/magic/blind.ogg', 200, TRUE, -4)
new /obj/effect/temp_visual/hierophant/telegraph/teleport(T, user)
beacon = new/obj/effect/hierophant(T)
user.update_action_buttons_icon()
@@ -1250,8 +1250,8 @@
return
new /obj/effect/temp_visual/hierophant/telegraph(T, user)
new /obj/effect/temp_visual/hierophant/telegraph(source, user)
- playsound(T,'sound/magic/wand_teleport.ogg', 200, 1)
- playsound(source,'sound/machines/airlockopen.ogg', 200, 1)
+ playsound(T,'sound/magic/wand_teleport.ogg', 200, TRUE)
+ playsound(source,'sound/machines/airlockopen.ogg', 200, TRUE)
if(!do_after(user, 3, target = user) || !user || !beacon || QDELETED(beacon)) //no walking away shitlord
teleporting = FALSE
if(user)
@@ -1322,7 +1322,7 @@
if(!T)
return
new /obj/effect/temp_visual/hierophant/telegraph/cardinal(T, user)
- playsound(T,'sound/effects/bin_close.ogg', 200, 1)
+ playsound(T,'sound/effects/bin_close.ogg', 200, TRUE)
sleep(2)
var/obj/effect/temp_visual/hierophant/blast/B = new(T, user, friendly_fire_check)
B.damage = HIEROPHANT_CLUB_CARDINAL_DAMAGE
@@ -1349,7 +1349,7 @@
if(!T)
return
new /obj/effect/temp_visual/hierophant/telegraph(T, user)
- playsound(T,'sound/effects/bin_close.ogg', 200, 1)
+ playsound(T,'sound/effects/bin_close.ogg', 200, TRUE)
sleep(2)
for(var/t in RANGE_TURFS(1, T))
var/obj/effect/temp_visual/hierophant/blast/B = new(t, user, friendly_fire_check)
diff --git a/code/modules/mining/lavaland/ruins/gym.dm b/code/modules/mining/lavaland/ruins/gym.dm
index 7e46cbe3cf8..ba0dbdd0449 100644
--- a/code/modules/mining/lavaland/ruins/gym.dm
+++ b/code/modules/mining/lavaland/ruins/gym.dm
@@ -13,7 +13,7 @@
if(.)
return
flick("[icon_state]2", src)
- playsound(loc, pick(hit_sounds), 25, 1, -1)
+ playsound(loc, pick(hit_sounds), 25, TRUE, -1)
if(isliving(user))
var/mob/living/L = user
SEND_SIGNAL(user, COMSIG_ADD_MOOD_EVENT, "exercise", /datum/mood_event/exercise)
@@ -46,7 +46,7 @@
user.visible_message("[user] is [bragmessage]!")
AnimateMachine(user)
- playsound(user, 'sound/machines/click.ogg', 60, 1)
+ playsound(user, 'sound/machines/click.ogg', 60, TRUE)
obj_flags &= ~IN_USE
user.pixel_y = 0
var/finishmessage = pick("You feel stronger!","You feel like you can take on the world!","You feel robust!","You feel indestructible!")
@@ -70,7 +70,7 @@
sleep(3)
animate(user, pixel_y = -4, time = 3)
sleep(3)
- playsound(user, 'goon/sound/effects/spring.ogg', 60, 1)
+ playsound(user, 'goon/sound/effects/spring.ogg', 60, TRUE)
/obj/structure/weightmachine/weightlifter
icon = 'goon/icons/obj/fitness.dmi'
@@ -88,7 +88,7 @@
for (var/innerReps = max(reps, 1), innerReps > 0, innerReps--)
sleep(3)
animate(user, pixel_y = (user.pixel_y == 3) ? 5 : 3, time = 3)
- playsound(user, 'goon/sound/effects/spring.ogg', 60, 1)
+ playsound(user, 'goon/sound/effects/spring.ogg', 60, TRUE)
sleep(3)
animate(user, pixel_y = 2, time = 3)
sleep(3)
diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm
index 3f15d48e68b..1b4f8c9e35f 100644
--- a/code/modules/mining/ores_coins.dm
+++ b/code/modules/mining/ores_coins.dm
@@ -254,7 +254,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
/obj/item/twohanded/required/gibtonite/proc/GibtoniteReaction(mob/user, triggered_by = 0)
if(!primed)
primed = TRUE
- playsound(src,'sound/effects/hit_on_shattered_glass.ogg',50,1)
+ playsound(src,'sound/effects/hit_on_shattered_glass.ogg',50,TRUE)
icon_state = "Gibtonite active"
var/notify_admins = FALSE
if(z != 5)//Only annoy the admins ingame if we're triggered off the mining zlevel
@@ -471,7 +471,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
cooldown = world.time + 15
flick("coin_[cmineral]_flip", src)
icon_state = "coin_[cmineral]_[coinflip]"
- playsound(user.loc, 'sound/items/coinflip.ogg', 50, 1)
+ playsound(user.loc, 'sound/items/coinflip.ogg', 50, TRUE)
var/oldloc = loc
sleep(15)
if(loc == oldloc && user && !user.incapacitated())
diff --git a/code/modules/mob/living/bloodcrawl.dm b/code/modules/mob/living/bloodcrawl.dm
index 7b37440ca47..ed770ce3403 100644
--- a/code/modules/mob/living/bloodcrawl.dm
+++ b/code/modules/mob/living/bloodcrawl.dm
@@ -48,7 +48,7 @@
var/turf/mobloc = get_turf(src.loc)
src.visible_message("[src] sinks into the pool of blood!")
- playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 50, 1, -1)
+ playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 50, TRUE, -1)
// Extinguish, unbuckle, stop being pulled, set our location into the
// dummy object
var/obj/effect/dummy/phased_mob/slaughter/holder = new /obj/effect/dummy/phased_mob/slaughter(mobloc)
@@ -99,7 +99,7 @@
sound = 'sound/magic/demon_consume.ogg'
for(var/i in 1 to 3)
- playsound(get_turf(src),sound, 50, 1)
+ playsound(get_turf(src),sound, 50, TRUE)
sleep(30)
if(!victim)
@@ -146,7 +146,7 @@
ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT)
/mob/living/proc/exit_blood_effect(obj/effect/decal/cleanable/B)
- playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 50, 1, -1)
+ playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 50, TRUE, -1)
//Makes the mob have the color of the blood pool it came out of
var/newcolor = rgb(149, 10, 10)
if(istype(B, /obj/effect/decal/cleanable/xenoblood))
diff --git a/code/modules/mob/living/carbon/alien/alien_defense.dm b/code/modules/mob/living/carbon/alien/alien_defense.dm
index 7b9a703e454..5891964bb6d 100644
--- a/code/modules/mob/living/carbon/alien/alien_defense.dm
+++ b/code/modules/mob/living/carbon/alien/alien_defense.dm
@@ -36,7 +36,7 @@ In all, this is a lot like the monkey code. /N
else
if(health > 0)
M.do_attack_animation(src, ATTACK_EFFECT_BITE)
- playsound(loc, 'sound/weapons/bite.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/bite.ogg', 50, TRUE, -1)
visible_message("[M.name] bites [src]!", \
"[M.name] bites you!", null, COMBAT_MESSAGE_RANGE)
adjustBruteLoss(1)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
index d2b0dc452f1..c3c80610961 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
@@ -63,7 +63,7 @@
/mob/living/carbon/alien/humanoid/cuff_resist(obj/item/I)
- playsound(src, 'sound/voice/hiss5.ogg', 40, 1, 1) //Alien roars when starting to break free
+ playsound(src, 'sound/voice/hiss5.ogg', 40, TRUE, TRUE) //Alien roars when starting to break free
..(I, cuff_break = INSTANT_CUFFBREAK)
/mob/living/carbon/alien/humanoid/resist_grab(moving_resist)
@@ -109,5 +109,5 @@
/mob/living/carbon/alien/humanoid/check_breath(datum/gas_mixture/breath)
if(breath && breath.total_moles() > 0 && !sneaking)
- playsound(get_turf(src), pick('sound/voice/lowHiss2.ogg', 'sound/voice/lowHiss3.ogg', 'sound/voice/lowHiss4.ogg'), 50, 0, -5)
+ playsound(get_turf(src), pick('sound/voice/lowHiss2.ogg', 'sound/voice/lowHiss3.ogg', 'sound/voice/lowHiss4.ogg'), 50, FALSE, -5)
..()
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm
index 919bdebc2ec..7db23e72bfb 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm
@@ -9,7 +9,7 @@
if(mob_size < MOB_SIZE_LARGE)
safe_throw_at(get_edge_target_turf(src, get_dir(user, src)), 2, 1, user)
hitverb = "slams"
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
visible_message("[user] [hitverb] [src]!", \
"[user] [hitverb] you!", null, COMBAT_MESSAGE_RANGE)
@@ -19,7 +19,7 @@
if ("harm")
var/damage = rand(1, 9)
if (prob(90))
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
visible_message("[M] punches [src]!", \
"[M] punches you!", null, COMBAT_MESSAGE_RANGE)
if ((stat != DEAD) && (damage > 9 || prob(5)))//Regular humans have a very small chance of knocking an alien down.
@@ -30,7 +30,7 @@
apply_damage(damage, BRUTE, affecting)
log_combat(M, src, "attacked")
else
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
visible_message("[M]'s punch misses [src]!", \
"[M]'s punch misses you!", null, COMBAT_MESSAGE_RANGE)
@@ -38,18 +38,18 @@
if (!(mobility_flags & MOBILITY_STAND))
if (prob(5))
Unconscious(40)
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
log_combat(M, src, "pushed")
visible_message("[M] pushed [src] down!", \
"[M] pushed you down!")
else
if (prob(50))
dropItemToGround(get_active_held_item())
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
visible_message("[M] disarms [src]!", \
"[M] disarms you!", null, COMBAT_MESSAGE_RANGE)
else
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
visible_message("[M] fails to disarm [src]!",\
"[M] fails to disarm you!", null, COMBAT_MESSAGE_RANGE)
diff --git a/code/modules/mob/living/carbon/alien/larva/larva_defense.dm b/code/modules/mob/living/carbon/alien/larva/larva_defense.dm
index 03151c67ef0..505e753e0a8 100644
--- a/code/modules/mob/living/carbon/alien/larva/larva_defense.dm
+++ b/code/modules/mob/living/carbon/alien/larva/larva_defense.dm
@@ -4,7 +4,7 @@
if(..())
var/damage = rand(1, 9)
if (prob(90))
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
log_combat(M, src, "attacked")
visible_message("[M] kicks [src]!", \
"[M] kicks you!", null, COMBAT_MESSAGE_RANGE)
@@ -14,7 +14,7 @@
var/obj/item/bodypart/affecting = get_bodypart(ran_zone(M.zone_selected))
apply_damage(damage, BRUTE, affecting)
else
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
visible_message("[M]'s kick misses [src]!", \
"[M]'s kick misses you!", null, COMBAT_MESSAGE_RANGE)
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index db765915f12..48e049a0c6c 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -93,7 +93,7 @@
Paralyze(20)
visible_message("[src] crashes into [victim], knocking them both over!",\
"You violently crash into [victim]!")
- playsound(src,'sound/weapons/punch1.ogg',50,1)
+ playsound(src,'sound/weapons/punch1.ogg',50,TRUE)
//Throwing stuff
@@ -456,7 +456,7 @@
if(stun)
Paralyze(80)
- playsound(get_turf(src), 'sound/effects/splat.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/effects/splat.ogg', 50, TRUE)
var/turf/T = get_turf(src)
if(!blood)
adjust_nutrition(-lost_nutrition)
diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm
index d1cff17e95e..1e09a30d896 100644
--- a/code/modules/mob/living/carbon/carbon_defense.dm
+++ b/code/modules/mob/living/carbon/carbon_defense.dm
@@ -99,7 +99,7 @@
if(prob(probability))
if(affecting.dismember(I.damtype))
I.add_mob_blood(src)
- playsound(get_turf(src), I.get_dismember_sound(), 80, 1)
+ playsound(get_turf(src), I.get_dismember_sound(), 80, TRUE)
return TRUE //successful attack
/mob/living/carbon/attack_drone(mob/living/simple_animal/drone/user)
@@ -273,7 +273,7 @@
AdjustImmobilized(-60)
set_resting(FALSE)
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
/mob/living/carbon/flash_act(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0)
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 8992965b0dc..55bf8d0fd90 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -190,7 +190,7 @@
if(check_shields(user, 15, "the [hulk_verb]ing"))
return
..()
- playsound(loc, user.dna.species.attack_sound, 25, 1, -1)
+ playsound(loc, user.dna.species.attack_sound, 25, TRUE, -1)
var/message = "[user] has [hulk_verb]ed [src]!"
visible_message("[message]", \
"[message]")
@@ -215,11 +215,11 @@
if(M.a_intent == INTENT_DISARM) //Always drop item in hand, if no item, get stunned instead.
var/obj/item/I = get_active_held_item()
if(I && dropItemToGround(I))
- playsound(loc, 'sound/weapons/slash.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slash.ogg', 25, TRUE, -1)
visible_message("[M] disarmed [src]!", \
"[M] disarmed you!")
else if(!M.client || prob(5)) // only natural monkeys get to stun reliably, (they only do it occasionaly)
- playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/pierce.ogg', 25, TRUE, -1)
if (src.IsKnockdown() && !src.IsParalyzed())
Paralyze(40)
log_combat(M, src, "pinned")
@@ -255,7 +255,7 @@
w_uniform.add_fingerprint(M)
var/damage = prob(90) ? 20 : 0
if(!damage)
- playsound(loc, 'sound/weapons/slashmiss.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/slashmiss.ogg', 50, TRUE, -1)
visible_message("[M] lunges at [src]!", \
"[M] lunges at you!")
return 0
@@ -264,7 +264,7 @@
affecting = get_bodypart(BODY_ZONE_CHEST)
var/armor_block = run_armor_check(affecting, "melee","","",10)
- playsound(loc, 'sound/weapons/slice.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slice.ogg', 25, TRUE, -1)
visible_message("[M] slashes at [src]!", \
"[M] slashes at you!")
log_combat(M, src, "attacked")
@@ -275,11 +275,11 @@
if(M.a_intent == INTENT_DISARM) //Always drop item in hand, if no item, get stun instead.
var/obj/item/I = get_active_held_item()
if(I && dropItemToGround(I))
- playsound(loc, 'sound/weapons/slash.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slash.ogg', 25, TRUE, -1)
visible_message("[M] disarms [src]!", \
"[M] disarms you!")
else
- playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/pierce.ogg', 25, TRUE, -1)
Paralyze(100)
log_combat(M, src, "tackled")
visible_message("[M] tackles [src] down!", \
@@ -353,10 +353,10 @@
else if(M.force > 20 && !IsKnockdown()) // lightweight mechas like gygax
Knockdown(40)
update |= temp.receive_damage(dmg, 0)
- playsound(src, 'sound/weapons/punch4.ogg', 50, 1)
+ playsound(src, 'sound/weapons/punch4.ogg', 50, TRUE)
if("fire")
update |= temp.receive_damage(0, dmg)
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
if("tox")
M.mech_toxin_damage(src)
else
diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm
index 698d76a8800..b815d8915bd 100644
--- a/code/modules/mob/living/carbon/human/human_movement.dm
+++ b/code/modules/mob/living/carbon/human/human_movement.dm
@@ -25,7 +25,7 @@
return ..()
/mob/living/carbon/human/experience_pressure_difference()
- playsound(src, 'sound/effects/space_wind.ogg', 50, 1)
+ playsound(src, 'sound/effects/space_wind.ogg', 50, TRUE)
if(shoes && istype(shoes, /obj/item/clothing))
var/obj/item/clothing/S = shoes
if (S.clothing_flags & NOSLIP)
diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm
index 0e7c2c58eb7..411a20d432a 100644
--- a/code/modules/mob/living/carbon/human/species.dm
+++ b/code/modules/mob/living/carbon/human/species.dm
@@ -1258,7 +1258,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
miss_chance = min((user.dna.species.punchdamagehigh/user.dna.species.punchdamagelow) + user.getStaminaLoss() + (user.getBruteLoss()*0.5), 100) //old base chance for a miss + various damage. capped at 100 to prevent weirdness in prob()
if(!damage || !affecting || prob(miss_chance))//future-proofing for species that have 0 damage/weird cases where no zone is targeted
- playsound(target.loc, user.dna.species.miss_sound, 25, 1, -1)
+ playsound(target.loc, user.dna.species.miss_sound, 25, TRUE, -1)
target.visible_message("[user]'s [atk_verb] misses [target]!",\
"[user]'s [atk_verb] misses you!", null, COMBAT_MESSAGE_RANGE)
log_combat(user, target, "attempted to punch")
@@ -1266,7 +1266,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
var/armor_block = target.run_armor_check(affecting, "melee")
- playsound(target.loc, user.dna.species.attack_sound, 25, 1, -1)
+ playsound(target.loc, user.dna.species.attack_sound, 25, TRUE, -1)
target.visible_message("[user] [atk_verb]ed [target]!", \
"[user] [atk_verb]ed you!", null, COMBAT_MESSAGE_RANGE)
@@ -1474,7 +1474,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
if(prob(probability) || (HAS_TRAIT(H, TRAIT_EASYDISMEMBER) && prob(probability))) //try twice
if(affecting.dismember(I.damtype))
I.add_mob_blood(H)
- playsound(get_turf(H), I.get_dismember_sound(), 80, 1)
+ playsound(get_turf(H), I.get_dismember_sound(), 80, TRUE)
var/bloody = 0
if(((I.damtype == BRUTE) && I.force && prob(25 + (I.force * 2))))
diff --git a/code/modules/mob/living/carbon/human/species_types/felinid.dm b/code/modules/mob/living/carbon/human/species_types/felinid.dm
index 3b1a6101109..4487f1570cc 100644
--- a/code/modules/mob/living/carbon/human/species_types/felinid.dm
+++ b/code/modules/mob/living/carbon/human/species_types/felinid.dm
@@ -119,7 +119,7 @@
if(!silent)
to_chat(H, "Something is nya~t right.")
- playsound(get_turf(H), 'sound/effects/meow1.ogg', 50, 1, -1)
+ playsound(get_turf(H), 'sound/effects/meow1.ogg', 50, TRUE, -1)
/proc/purrbation_remove(mob/living/carbon/human/H, silent = FALSE)
if(!ishuman(H) || !iscatperson(H))
diff --git a/code/modules/mob/living/carbon/human/species_types/flypeople.dm b/code/modules/mob/living/carbon/human/species_types/flypeople.dm
index c8d269711c3..281693d17f8 100644
--- a/code/modules/mob/living/carbon/human/species_types/flypeople.dm
+++ b/code/modules/mob/living/carbon/human/species_types/flypeople.dm
@@ -25,7 +25,7 @@
if(nutri_check.nutriment_factor > 0)
var/turf/pos = get_turf(H)
H.vomit(0, FALSE, FALSE, 2, TRUE)
- playsound(pos, 'sound/effects/splat.ogg', 50, 1)
+ playsound(pos, 'sound/effects/splat.ogg', 50, TRUE)
H.visible_message("[H] vomits on the floor!", \
"You throw up on the floor!")
..()
diff --git a/code/modules/mob/living/carbon/human/species_types/golems.dm b/code/modules/mob/living/carbon/human/species_types/golems.dm
index 0393dbce07d..31c9d2dc517 100644
--- a/code/modules/mob/living/carbon/human/species_types/golems.dm
+++ b/code/modules/mob/living/carbon/human/species_types/golems.dm
@@ -357,7 +357,7 @@
/datum/species/golem/sand/bullet_act(obj/item/projectile/P, mob/living/carbon/human/H)
if(!(P.original == H && P.firer == H))
if(P.flag == "bullet" || P.flag == "bomb")
- playsound(H, 'sound/effects/shovel_dig.ogg', 70, 1)
+ playsound(H, 'sound/effects/shovel_dig.ogg', 70, TRUE)
H.visible_message("The [P.name] sinks harmlessly in [H]'s sandy body!", \
"The [P.name] sinks harmlessly in [H]'s sandy body!")
return BULLET_ACT_BLOCK
@@ -378,7 +378,7 @@
special_names = list("Lens", "Prism", "Fiber", "Bead")
/datum/species/golem/glass/spec_death(gibbed, mob/living/carbon/human/H)
- playsound(H, "shatter", 70, 1)
+ playsound(H, "shatter", 70, TRUE)
H.visible_message("[H] shatters!")
for(var/obj/item/W in H)
H.dropItemToGround(W)
@@ -419,7 +419,7 @@
/datum/species/golem/bluespace/proc/reactive_teleport(mob/living/carbon/human/H)
H.visible_message("[H] teleports!", "You destabilize and teleport!")
new /obj/effect/particle_effect/sparks(get_turf(H))
- playsound(get_turf(H), "sparks", 50, 1)
+ playsound(get_turf(H), "sparks", 50, TRUE)
do_teleport(H, get_turf(H), 6, asoundin = 'sound/weapons/emitter2.ogg', channel = TELEPORT_CHANNEL_BLUESPACE)
last_teleport = world.time
@@ -477,7 +477,7 @@
/datum/action/innate/unstable_teleport/Activate()
var/mob/living/carbon/human/H = owner
H.visible_message("[H] starts vibrating!", "You start charging your bluespace core...")
- playsound(get_turf(H), 'sound/weapons/flash.ogg', 25, 1)
+ playsound(get_turf(H), 'sound/weapons/flash.ogg', 25, TRUE)
addtimer(CALLBACK(src, .proc/teleport, H), 15)
/datum/action/innate/unstable_teleport/proc/teleport(mob/living/carbon/human/H)
@@ -563,14 +563,14 @@
if(!active)
if(world.time > last_honk + honkooldown)
active = 1
- playsound(get_turf(H), 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(get_turf(H), 'sound/items/bikehorn.ogg', 50, TRUE)
last_honk = world.time
honkooldown = rand(20, 80)
active = null
..()
/datum/species/golem/bananium/spec_death(gibbed, mob/living/carbon/human/H)
- playsound(get_turf(H), 'sound/misc/sadtrombone.ogg', 70, 0)
+ playsound(get_turf(H), 'sound/misc/sadtrombone.ogg', 70, FALSE)
/datum/species/golem/bananium/proc/handle_speech(datum/source, list/speech_args)
speech_args[SPEECH_SPANS] |= SPAN_CLOWN
@@ -1076,7 +1076,7 @@
target.adjust_nutrition(40)
/datum/species/golem/capitalist/proc/handle_speech(datum/source, list/speech_args)
- playsound(source, 'sound/misc/mymoney.ogg', 25, 0)
+ playsound(source, 'sound/misc/mymoney.ogg', 25, FALSE)
speech_args[SPEECH_MESSAGE] = "Hello, I like money!"
/datum/species/golem/soviet
@@ -1118,5 +1118,5 @@
target.adjust_nutrition(-40)
/datum/species/golem/soviet/proc/handle_speech(datum/source, list/speech_args)
- playsound(source, 'sound/misc/Cyka Blyat.ogg', 25, 0)
+ playsound(source, 'sound/misc/Cyka Blyat.ogg', 25, FALSE)
speech_args[SPEECH_MESSAGE] = "Cyka Blyat"
diff --git a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm
index e936b2ca3c5..2a3ece305cb 100644
--- a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm
+++ b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm
@@ -56,7 +56,7 @@
var/light_amount = T.get_lumcount()
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
H.visible_message("[H] dances in the shadows, evading [P]!")
- playsound(T, "bullet_miss", 75, 1)
+ playsound(T, "bullet_miss", 75, TRUE)
return BULLET_ACT_FORCE_PIERCE
return ..()
@@ -103,7 +103,7 @@
return ..()
user.visible_message("[user] raises [src] to [user.p_their()] mouth and tears into it with [user.p_their()] teeth!", \
"[src] feels unnaturally cold in your hands. You raise [src] your mouth and devour it!")
- playsound(user, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(user, 'sound/magic/demon_consume.ogg', 50, TRUE)
user.visible_message("Blood erupts from [user]'s arm as it reforms into a weapon!", \
@@ -138,7 +138,7 @@
var/light_amount = T.get_lumcount()
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
respawn_progress++
- playsound(owner,'sound/effects/singlebeat.ogg',40,1)
+ playsound(owner,'sound/effects/singlebeat.ogg',40,TRUE)
if(respawn_progress >= HEART_RESPAWN_THRESHHOLD)
owner.revive(full_heal = TRUE)
if(!(owner.dna.species.id == "shadow" || owner.dna.species.id == "nightmare"))
@@ -149,7 +149,7 @@
to_chat(owner, "You feel the shadows invade your skin, leaping into the center of your chest! You're alive!")
SEND_SOUND(owner, sound('sound/effects/ghost.ogg'))
owner.visible_message("[owner] staggers to [owner.p_their()] feet!")
- playsound(owner, 'sound/hallucinations/far_noise.ogg', 50, 1)
+ playsound(owner, 'sound/hallucinations/far_noise.ogg', 50, TRUE)
respawn_progress = 0
//Weapon
@@ -210,7 +210,7 @@
else
visible_message("[O] is disintegrated by [src]!")
O.burn()
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
#undef HEART_SPECIAL_SHADOWIFY
#undef HEART_RESPAWN_THRESHHOLD
diff --git a/code/modules/mob/living/carbon/human/species_types/snail.dm b/code/modules/mob/living/carbon/human/species_types/snail.dm
index b95c1971bd0..ee28ae3689e 100644
--- a/code/modules/mob/living/carbon/human/species_types/snail.dm
+++ b/code/modules/mob/living/carbon/human/species_types/snail.dm
@@ -23,7 +23,7 @@
/datum/species/snail/handle_chemicals(datum/reagent/chem, mob/living/carbon/human/H)
if(istype(chem,/datum/reagent/consumable/sodiumchloride))
H.adjustFireLoss(2)
- playsound(H, 'sound/weapons/sear.ogg', 30, 1)
+ playsound(H, 'sound/weapons/sear.ogg', 30, TRUE)
H.reagents.remove_reagent(chem.type, REAGENTS_METABOLISM)
return 1
diff --git a/code/modules/mob/living/carbon/human/species_types/vampire.dm b/code/modules/mob/living/carbon/human/species_types/vampire.dm
index 1dad5fac564..c55232efc17 100644
--- a/code/modules/mob/living/carbon/human/species_types/vampire.dm
+++ b/code/modules/mob/living/carbon/human/species_types/vampire.dm
@@ -109,7 +109,7 @@
var/drained_blood = min(victim.blood_volume, VAMP_DRAIN_AMOUNT, blood_volume_difference)
to_chat(victim, "[H] is draining your blood!")
to_chat(H, "You drain some blood!")
- playsound(H, 'sound/items/drink.ogg', 30, 1, -2)
+ playsound(H, 'sound/items/drink.ogg', 30, TRUE, -2)
victim.blood_volume = CLAMP(victim.blood_volume - drained_blood, 0, BLOOD_VOLUME_MAXIMUM)
H.blood_volume = CLAMP(H.blood_volume + drained_blood, 0, BLOOD_VOLUME_MAXIMUM)
if(!victim.blood_volume)
diff --git a/code/modules/mob/living/carbon/monkey/monkey_defense.dm b/code/modules/mob/living/carbon/monkey/monkey_defense.dm
index f8a2513fa9b..7a08b897afc 100644
--- a/code/modules/mob/living/carbon/monkey/monkey_defense.dm
+++ b/code/modules/mob/living/carbon/monkey/monkey_defense.dm
@@ -42,7 +42,7 @@
visible_message("[M] punches [name]!", \
"[M] punches you!", null, COMBAT_MESSAGE_RANGE)
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
var/damage = rand(5, 10)
if(prob(40))
damage = rand(10, 15)
@@ -57,7 +57,7 @@
log_combat(M, src, "attacked")
else
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
visible_message("[M]'s punch misses [name]!", \
"[M]'s punch misses you!", null, COMBAT_MESSAGE_RANGE)
if("disarm")
@@ -65,12 +65,12 @@
M.do_attack_animation(src, ATTACK_EFFECT_DISARM)
if (prob(25))
Paralyze(40)
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
log_combat(M, src, "pushed")
visible_message("[M] pushes [src] down!", \
"[M] pushes you down!")
else if(dropItemToGround(get_active_held_item()))
- playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(src, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
visible_message("[M] disarms [src]!", \
"[M] disarms you!", null, COMBAT_MESSAGE_RANGE)
@@ -78,7 +78,7 @@
if(..()) //if harm or disarm intent.
if (M.a_intent == INTENT_HARM)
if ((prob(95) && health > 0))
- playsound(loc, 'sound/weapons/slice.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slice.ogg', 25, TRUE, -1)
var/damage = rand(15, 30)
if (damage >= 25)
damage = rand(20, 40)
@@ -99,13 +99,13 @@
apply_damage(damage, BRUTE, affecting)
else
- playsound(loc, 'sound/weapons/slashmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slashmiss.ogg', 25, TRUE, -1)
visible_message("[M]'s lunge misses [name]!", \
"[M]'s lunge misses you!", null, COMBAT_MESSAGE_RANGE)
if (M.a_intent == INTENT_DISARM)
var/obj/item/I = null
- playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/pierce.ogg', 25, TRUE, -1)
if(prob(95))
Paralyze(20)
visible_message("[M] tackles [name] down!", \
diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm
index 76d5fbc7dbb..af3d29544b8 100644
--- a/code/modules/mob/living/living.dm
+++ b/code/modules/mob/living/living.dm
@@ -269,7 +269,7 @@
sound_to_play = H.dna.species.grab_sound
if(HAS_TRAIT(H, TRAIT_STRONG_GRABBER))
sound_to_play = null
- playsound(src.loc, sound_to_play, 50, 1, -1)
+ playsound(src.loc, sound_to_play, 50, TRUE, -1)
update_pull_hud_icon()
if(ismob(AM))
diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm
index c28538d85af..11415a6ca56 100644
--- a/code/modules/mob/living/living_defense.dm
+++ b/code/modules/mob/living/living_defense.dm
@@ -74,14 +74,14 @@
if (I.throwforce > 0) //If the weapon's throwforce is greater than zero...
if (I.throwhitsound) //...and throwhitsound is defined...
- playsound(loc, I.throwhitsound, volume, 1, -1) //...play the weapon's throwhitsound.
+ playsound(loc, I.throwhitsound, volume, TRUE, -1) //...play the weapon's throwhitsound.
else if(I.hitsound) //Otherwise, if the weapon's hitsound is defined...
- playsound(loc, I.hitsound, volume, 1, -1) //...play the weapon's hitsound.
+ playsound(loc, I.hitsound, volume, TRUE, -1) //...play the weapon's hitsound.
else if(!I.throwhitsound) //Otherwise, if throwhitsound isn't defined...
- playsound(loc, 'sound/weapons/genhit.ogg',volume, 1, -1) //...play genhit.ogg.
+ playsound(loc, 'sound/weapons/genhit.ogg',volume, TRUE, -1) //...play genhit.ogg.
else if(!I.throwhitsound && I.throwforce > 0) //Otherwise, if the item doesn't have a throwhitsound and has a throwforce greater than zero...
- playsound(loc, 'sound/weapons/genhit.ogg', volume, 1, -1)//...play genhit.ogg
+ playsound(loc, 'sound/weapons/genhit.ogg', volume, TRUE, -1)//...play genhit.ogg
if(!I.throwforce)// Otherwise, if the item's throwforce is 0...
playsound(loc, 'sound/weapons/throwtap.ogg', 1, volume, -1)//...play throwtap.ogg.
if(!blocked)
@@ -94,7 +94,7 @@
else
return 1
else
- playsound(loc, 'sound/weapons/genhit.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/genhit.ogg', 50, TRUE, -1)
..()
@@ -107,10 +107,10 @@
if(BRUTE)
Unconscious(20)
take_overall_damage(rand(M.force/2, M.force))
- playsound(src, 'sound/weapons/punch4.ogg', 50, 1)
+ playsound(src, 'sound/weapons/punch4.ogg', 50, TRUE)
if(BURN)
take_overall_damage(0, rand(M.force/2, M.force))
- playsound(src, 'sound/items/welder.ogg', 50, 1)
+ playsound(src, 'sound/items/welder.ogg', 50, TRUE)
if(TOX)
M.mech_toxin_damage(src)
else
@@ -154,7 +154,7 @@
var/mob/living/carbon/human/H = user
if(H.dna.species.grab_sound)
sound_to_play = H.dna.species.grab_sound
- playsound(src.loc, sound_to_play, 50, 1, -1)
+ playsound(src.loc, sound_to_play, 50, TRUE, -1)
if(user.grab_state) //only the first upgrade is instantaneous
var/old_grab_state = user.grab_state
@@ -237,7 +237,7 @@
return FALSE
if(M.attack_sound)
- playsound(loc, M.attack_sound, 50, 1, 1)
+ playsound(loc, M.attack_sound, 50, TRUE, TRUE)
M.do_attack_animation(src)
visible_message("\The [M] [M.attacktext] [src]!", \
"\The [M] [M.attacktext] you!", null, COMBAT_MESSAGE_RANGE)
@@ -261,7 +261,7 @@
M.do_attack_animation(src, ATTACK_EFFECT_BITE)
if (prob(75))
log_combat(M, src, "attacked")
- playsound(loc, 'sound/weapons/bite.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/bite.ogg', 50, TRUE, -1)
visible_message("[M.name] bites [src]!", \
"[M.name] bites you!", null, COMBAT_MESSAGE_RANGE)
return TRUE
@@ -287,7 +287,7 @@
log_combat(L, src, "attacked")
visible_message("[L.name] bites [src]!", \
"[L.name] bites you!", null, COMBAT_MESSAGE_RANGE)
- playsound(loc, 'sound/weapons/bite.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/bite.ogg', 50, TRUE, -1)
return TRUE
else
visible_message("[L.name]'s bite misses [src]!", \
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index 9db4d020f3e..cf302371ced 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -934,10 +934,10 @@
if(!istype(apc) || QDELETED(apc) || apc.stat & BROKEN)
to_chat(src, "Hack aborted. The designated APC no longer exists on the power network.")
- playsound(get_turf(src), 'sound/machines/buzz-two.ogg', 50, 1, ignore_walls = FALSE)
+ playsound(get_turf(src), 'sound/machines/buzz-two.ogg', 50, TRUE, ignore_walls = FALSE)
else if(apc.aidisabled)
to_chat(src, "Hack aborted. \The [apc] is no longer responding to our systems.")
- playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 50, 1, ignore_walls = FALSE)
+ playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 50, TRUE, ignore_walls = FALSE)
else
malf_picker.processing_time += 10
@@ -946,7 +946,7 @@
apc.locked = TRUE
apc.coverlocked = TRUE
- playsound(get_turf(src), 'sound/machines/ding.ogg', 50, 1, ignore_walls = FALSE)
+ playsound(get_turf(src), 'sound/machines/ding.ogg', 50, TRUE, ignore_walls = FALSE)
to_chat(src, "Hack complete. \The [apc] is now under your exclusive control.")
apc.update_icon()
diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm
index ccdd5e2aedd..a385fb9e2b8 100644
--- a/code/modules/mob/living/silicon/robot/emote.dm
+++ b/code/modules/mob/living/silicon/robot/emote.dm
@@ -63,6 +63,6 @@
if(!cell || !cell.charge)
visible_message("The power warning light on [src] flashes urgently.", \
"You announce you are operating in low power mode.")
- playsound(loc, 'sound/machines/buzz-two.ogg', 50, 0)
+ playsound(loc, 'sound/machines/buzz-two.ogg', 50, FALSE)
else
to_chat(src, "You can only use this emote when you're out of charge.")
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index f705841ee09..97ccec018a8 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -146,7 +146,7 @@
updatename()
- playsound(loc, 'sound/voice/liveagain.ogg', 75, 1)
+ playsound(loc, 'sound/voice/liveagain.ogg', 75, TRUE)
aicamera = new/obj/item/camera/siliconcam/robot_camera(src)
toner = tonermax
diag_hud_set_borgcell()
@@ -879,19 +879,19 @@
..()
if(health < maxHealth*0.5) //Gradual break down of modules as more damage is sustained
if(uneq_module(held_items[3]))
- playsound(loc, 'sound/machines/warning-buzzer.ogg', 50, 1, 1)
+ playsound(loc, 'sound/machines/warning-buzzer.ogg', 50, TRUE, TRUE)
audible_message("[src] sounds an alarm! \"SYSTEM ERROR: Module 3 OFFLINE.\"")
to_chat(src, "SYSTEM ERROR: Module 3 OFFLINE.")
if(health < 0)
if(uneq_module(held_items[2]))
audible_message("[src] sounds an alarm! \"SYSTEM ERROR: Module 2 OFFLINE.\"")
to_chat(src, "SYSTEM ERROR: Module 2 OFFLINE.")
- playsound(loc, 'sound/machines/warning-buzzer.ogg', 60, 1, 1)
+ playsound(loc, 'sound/machines/warning-buzzer.ogg', 60, TRUE, TRUE)
if(health < -maxHealth*0.5)
if(uneq_module(held_items[1]))
audible_message("[src] sounds an alarm! \"CRITICAL ERROR: All modules OFFLINE.\"")
to_chat(src, "CRITICAL ERROR: All modules OFFLINE.")
- playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, 1, 1)
+ playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, TRUE, TRUE)
/mob/living/silicon/robot/update_sight()
if(!client)
diff --git a/code/modules/mob/living/silicon/robot/robot_defense.dm b/code/modules/mob/living/silicon/robot/robot_defense.dm
index a0ac2b17dd0..2f9ffa01151 100644
--- a/code/modules/mob/living/silicon/robot/robot_defense.dm
+++ b/code/modules/mob/living/silicon/robot/robot_defense.dm
@@ -33,7 +33,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
log_combat(M, src, "pushed")
visible_message("[M] has forced back [src]!", \
"[M] has forced back [src]!", null, COMBAT_MESSAGE_RANGE)
- playsound(loc, 'sound/weapons/pierce.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/pierce.ogg', 50, TRUE, -1)
else
..()
return
@@ -185,4 +185,4 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
. = ..()
updatehealth()
if(prob(75) && Proj.damage > 0)
- spark_system.start()
\ No newline at end of file
+ spark_system.start()
diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm
index 46a287b957a..33d4edaeb46 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules.dm
@@ -223,7 +223,7 @@
R.anchored = TRUE
sleep(1)
for(var/i in 1 to 4)
- playsound(R, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/welder.ogg', 'sound/items/ratchet.ogg'), 80, 1, -1)
+ playsound(R, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/welder.ogg', 'sound/items/ratchet.ogg'), 80, TRUE, -1)
sleep(7)
if(!prev_lockcharge)
R.SetLockdown(0)
diff --git a/code/modules/mob/living/silicon/silicon_defense.dm b/code/modules/mob/living/silicon/silicon_defense.dm
index dfb0b596d23..c6d57d89913 100644
--- a/code/modules/mob/living/silicon/silicon_defense.dm
+++ b/code/modules/mob/living/silicon/silicon_defense.dm
@@ -10,7 +10,7 @@
var/damage = 20
if (prob(90))
log_combat(M, src, "attacked")
- playsound(loc, 'sound/weapons/slash.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slash.ogg', 25, TRUE, -1)
visible_message("[M] slashes at [src]!", \
"[M] slashes at you!")
if(prob(8))
@@ -19,7 +19,7 @@
adjustBruteLoss(damage)
updatehealth()
else
- playsound(loc, 'sound/weapons/slashmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slashmiss.ogg', 25, TRUE, -1)
visible_message("[M]'s swipe misses [src]!", \
"[M]'s swipe misses you!")
@@ -59,7 +59,7 @@
if(!.)
return
adjustBruteLoss(rand(10, 15))
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
visible_message("[user] punches [src]!", \
"[user] punches you!", null, COMBAT_MESSAGE_RANGE)
@@ -76,7 +76,7 @@
grabbedby(M)
else
M.do_attack_animation(src, ATTACK_EFFECT_PUNCH)
- playsound(src.loc, 'sound/effects/bang.ogg', 10, 1)
+ playsound(src.loc, 'sound/effects/bang.ogg', 10, TRUE)
visible_message("[M] punches [src], but doesn't leave a dent!", \
"[M] punches you, but doesn't leave a dent!", null, COMBAT_MESSAGE_RANGE)
diff --git a/code/modules/mob/living/simple_animal/animal_defense.dm b/code/modules/mob/living/simple_animal/animal_defense.dm
index 390c21af6b1..679f3366241 100644
--- a/code/modules/mob/living/simple_animal/animal_defense.dm
+++ b/code/modules/mob/living/simple_animal/animal_defense.dm
@@ -7,7 +7,7 @@
if (health > 0)
visible_message("[M] [response_help] [src].", \
"[M] [response_help] you.")
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
if("grab")
grabbedby(M)
@@ -19,7 +19,7 @@
M.do_attack_animation(src, ATTACK_EFFECT_PUNCH)
visible_message("[M] [response_harm] [src]!",\
"[M] [response_harm] you!", null, COMBAT_MESSAGE_RANGE)
- playsound(loc, attacked_sound, 25, 1, -1)
+ playsound(loc, attacked_sound, 25, TRUE, -1)
attack_threshold_check(harm_intent_damage)
log_combat(M, src, "attacked")
updatehealth()
@@ -29,7 +29,7 @@
. = ..()
if(!.)
return
- playsound(loc, "punch", 25, 1, -1)
+ playsound(loc, "punch", 25, TRUE, -1)
visible_message("[user] punches [src]!", \
"[user] punches you!", null, COMBAT_MESSAGE_RANGE)
adjustBruteLoss(15)
@@ -44,13 +44,13 @@
if (health > 0)
visible_message("[M.name] [response_help] [src].", \
"[M.name] [response_help] you.")
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
/mob/living/simple_animal/attack_alien(mob/living/carbon/alien/humanoid/M)
if(..()) //if harm or disarm intent.
if(M.a_intent == INTENT_DISARM)
- playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/pierce.ogg', 25, TRUE, -1)
visible_message("[M] [response_disarm] [name]!", \
"[M] [response_disarm] you!", null, COMBAT_MESSAGE_RANGE)
log_combat(M, src, "disarmed")
@@ -58,7 +58,7 @@
var/damage = rand(15, 30)
visible_message("[M] slashes at [src]!", \
"[M] slashes at you!", null, COMBAT_MESSAGE_RANGE)
- playsound(loc, 'sound/weapons/slice.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/slice.ogg', 25, TRUE, -1)
attack_threshold_check(damage)
log_combat(M, src, "attacked")
return 1
diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
index 68d50be6af9..31755b9a907 100644
--- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
@@ -226,7 +226,7 @@
icon_state = "cleanbot[on]"
else if(istype(A, /obj/item) || istype(A, /obj/effect/decal/remains))
visible_message("[src] sprays hydrofluoric acid at [A]!")
- playsound(src, 'sound/effects/spray2.ogg', 50, 1, -6)
+ playsound(src, 'sound/effects/spray2.ogg', 50, TRUE, -6)
A.acid_act(75, 10)
else if(istype(A, /mob/living/simple_animal/cockroach) || istype(A, /mob/living/simple_animal/mouse))
var/mob/living/simple_animal/M = target
@@ -247,7 +247,7 @@
"MY ONLY MISSION IS TO CLEANSE THE WORLD OF EVIL.", "EXTERMINATING PESTS.")
say(phrase)
victim.emote("scream")
- playsound(src.loc, 'sound/effects/spray2.ogg', 50, 1, -6)
+ playsound(src.loc, 'sound/effects/spray2.ogg', 50, TRUE, -6)
victim.acid_act(5, 100)
else if(A == src) // Wets floors and spawns foam randomly
if(prob(75))
diff --git a/code/modules/mob/living/simple_animal/bot/firebot.dm b/code/modules/mob/living/simple_animal/bot/firebot.dm
index 2609d01786d..2349f3022d8 100644
--- a/code/modules/mob/living/simple_animal/bot/firebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/firebot.dm
@@ -209,10 +209,10 @@
if((speech_cooldown + SPEECH_INTERVAL) < world.time)
if(ishuman(target_fire))
speak("Stop, drop and roll!")
- playsound(src, "sound/voice/firebot/stopdropnroll.ogg", 50, 0)
+ playsound(src, "sound/voice/firebot/stopdropnroll.ogg", 50, FALSE)
else
speak("Extinguishing!")
- playsound(src, "sound/voice/firebot/extinguishing.ogg", 50, 0)
+ playsound(src, "sound/voice/firebot/extinguishing.ogg", 50, FALSE)
speech_cooldown = world.time
flick("firebot1_use", src)
@@ -265,7 +265,7 @@
if(is_burning(scan_target))
if((detected_cooldown + DETECTED_VOICE_INTERVAL) < world.time)
speak("Fire detected!")
- playsound(src, "sound/voice/firebot/detected.ogg", 50, 0)
+ playsound(src, "sound/voice/firebot/detected.ogg", 50, FALSE)
detected_cooldown = world.time
result = scan_target
diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm
index c3d7eeb87a3..3b37295ce98 100644
--- a/code/modules/mob/living/simple_animal/bot/honkbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/honkbot.dm
@@ -132,7 +132,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
user << "You short out [src]'s sound control system. It gives out an evil laugh!!"
oldtarget_name = user.name
audible_message("[src] gives out an evil laugh!")
- playsound(src, 'sound/machines/honkbot_evil_laugh.ogg', 75, 1, -1) // evil laughter
+ playsound(src, 'sound/machines/honkbot_evil_laugh.ogg', 75, TRUE, -1) // evil laughter
update_icon()
/mob/living/simple_animal/bot/honkbot/bullet_act(obj/item/projectile/Proj)
@@ -173,7 +173,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
addtimer(CALLBACK(src, .proc/spam_flag_false), cooldowntimehorn)
else if (emagged == 2) //emagged honkbots will spam short and memorable sounds.
if (!spam_flag)
- playsound(src, "honkbot_e", 50, 0)
+ playsound(src, "honkbot_e", 50, FALSE)
spam_flag = TRUE // prevent spam
icon_state = "honkbot-e"
addtimer(CALLBACK(src, .proc/update_icon), 30, TIMER_OVERRIDE|TIMER_UNIQUE)
@@ -358,7 +358,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
"[C] topples over [src]!", \
"[C] leaps out of [src]'s way!")]")
C.Paralyze(10)
- playsound(loc, 'sound/misc/sadtrombone.ogg', 50, 1, -1)
+ playsound(loc, 'sound/misc/sadtrombone.ogg', 50, TRUE, -1)
if(!client)
speak("Honk!")
sensor_blink()
diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm
index 79a8ca37bc7..9392700f9a6 100644
--- a/code/modules/mob/living/simple_animal/bot/medbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/medbot.dm
@@ -213,7 +213,7 @@ GLOBAL_VAR(medibot_unique_id_gen)
var/list/messagevoice = list("Hey, [H.name]! Hold on, I'm coming." = 'sound/voice/medbot/coming.ogg',"Wait [H.name]! I want to help!" = 'sound/voice/medbot/help.ogg',"[H.name], you appear to be injured!" = 'sound/voice/medbot/injured.ogg')
var/message = pick(messagevoice)
speak(message)
- playsound(src, messagevoice[message], 50, 0)
+ playsound(src, messagevoice[message], 50, FALSE)
last_newpatient_speak = world.time
return H
else
diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm
index 78ec3c1fb72..e839c81a6c7 100644
--- a/code/modules/mob/living/simple_animal/bot/mulebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm
@@ -125,7 +125,7 @@
locked = !locked
to_chat(user, "You [locked ? "lock" : "unlock"] [src]'s controls!")
flick("mulebot-emagged", src)
- playsound(src, "sparks", 100, 0)
+ playsound(src, "sparks", 100, FALSE)
/mob/living/simple_animal/bot/mulebot/update_icon()
if(open)
@@ -320,13 +320,13 @@
switch(type)
if(SIGH)
audible_message("[src] makes a sighing buzz.", "You hear an electronic buzzing sound.")
- playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
+ playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, FALSE)
if(ANNOYED)
audible_message("[src] makes an annoyed buzzing sound.", "You hear an electronic buzzing sound.")
- playsound(loc, 'sound/machines/buzz-two.ogg', 50, 0)
+ playsound(loc, 'sound/machines/buzz-two.ogg', 50, FALSE)
if(DELIGHT)
audible_message("[src] makes a delighted ping!", "You hear a ping.")
- playsound(loc, 'sound/machines/ping.ogg', 50, 0)
+ playsound(loc, 'sound/machines/ping.ogg', 50, FALSE)
// mousedrop a crate to load the bot
@@ -594,14 +594,14 @@
if(!reached_target)
radio_channel = RADIO_CHANNEL_SUPPLY //Supply channel
audible_message("[src] makes a chiming sound!", "You hear a chime.")
- playsound(loc, 'sound/machines/chime.ogg', 50, 0)
+ playsound(loc, 'sound/machines/chime.ogg', 50, FALSE)
reached_target = 1
if(pathset) //The AI called us here, so notify it of our arrival.
loaddir = dir //The MULE will attempt to load a crate in whatever direction the MULE is "facing".
if(calling_ai)
to_chat(calling_ai, "[icon2html(src, calling_ai)] [src] wirelessly plays a chiming sound!")
- playsound(calling_ai, 'sound/machines/chime.ogg',40, 0)
+ playsound(calling_ai, 'sound/machines/chime.ogg',40, FALSE)
calling_ai = null
radio_channel = RADIO_CHANNEL_AI_PRIVATE //Report on AI Private instead if the AI is controlling us.
@@ -655,7 +655,7 @@
log_combat(src, H, "run over", null, "(DAMTYPE: [uppertext(BRUTE)])")
H.visible_message("[src] drives over [H]!", \
"[src] drives over you!")
- playsound(loc, 'sound/effects/splat.ogg', 50, 1)
+ playsound(loc, 'sound/effects/splat.ogg', 50, TRUE)
var/damage = rand(5,15)
H.apply_damage(2*damage, BRUTE, BODY_ZONE_HEAD, run_armor_check(BODY_ZONE_HEAD, "melee"))
diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm
index 735e92e37dc..4dcf33918b6 100644
--- a/code/modules/mob/living/simple_animal/bot/secbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/secbot.dm
@@ -263,7 +263,7 @@ Auto Patrol: []"},
if(!C.handcuffed)
C.handcuffed = new /obj/item/restraints/handcuffs/cable/zipties/used(C)
C.update_handcuffed()
- playsound(src, "law", 50, 0)
+ playsound(src, "law", 50, FALSE)
back_to_idle()
/mob/living/simple_animal/bot/secbot/proc/stun_attack(mob/living/carbon/C, var/harm = FALSE)
@@ -505,4 +505,4 @@ Auto Patrol: []"},
/// Does nothing
/mob/living/simple_animal/bot/secbot/proc/nap_violation(mob/violator)
- return
\ No newline at end of file
+ return
diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm
index ba6ed28e4ba..eb91fb39922 100644
--- a/code/modules/mob/living/simple_animal/friendly/dog.dm
+++ b/code/modules/mob/living/simple_animal/friendly/dog.dm
@@ -139,7 +139,7 @@
user.visible_message("[user] starts to shave [src] using \the [O].", "You start to shave [src] using \the [O]...")
if(do_after(user, 50, target = src))
user.visible_message("[user] shaves [src]'s hair using \the [O].")
- playsound(loc, 'sound/items/welder2.ogg', 20, 1)
+ playsound(loc, 'sound/items/welder2.ogg', 20, TRUE)
shaved = TRUE
icon_living = "[initial(icon_living)]_shaved"
icon_dead = "[initial(icon_living)]_shaved_dead"
diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm
index 355e2fa8298..9ca1742d843 100644
--- a/code/modules/mob/living/simple_animal/friendly/mouse.dm
+++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm
@@ -70,7 +70,7 @@
if(C && prob(15))
if(C.avail())
visible_message("[src] chews through the [C]. It's toast!")
- playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
+ playsound(src, 'sound/effects/sparks2.ogg', 100, TRUE)
C.deconstruct()
death(toast=1)
else
diff --git a/code/modules/mob/living/simple_animal/guardian/types/charger.dm b/code/modules/mob/living/simple_animal/guardian/types/charger.dm
index c7b28d70a25..01e16cb5027 100644
--- a/code/modules/mob/living/simple_animal/guardian/types/charger.dm
+++ b/code/modules/mob/living/simple_animal/guardian/types/charger.dm
@@ -65,7 +65,7 @@
L.drop_all_held_items()
L.visible_message("[src] slams into [L]!", "[src] slams into you!")
L.apply_damage(20, BRUTE)
- playsound(get_turf(L), 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(get_turf(L), 'sound/effects/meteorimpact.ogg', 100, TRUE)
shake_camera(L, 4, 3)
shake_camera(src, 2, 3)
diff --git a/code/modules/mob/living/simple_animal/guardian/types/explosive.dm b/code/modules/mob/living/simple_animal/guardian/types/explosive.dm
index e247406b882..840f247a5fb 100644
--- a/code/modules/mob/living/simple_animal/guardian/types/explosive.dm
+++ b/code/modules/mob/living/simple_animal/guardian/types/explosive.dm
@@ -61,7 +61,7 @@
to_chat(explodee, "[source] was boobytrapped!")
to_chat(src, "Success! Your trap caught [explodee]")
var/turf/T = get_turf(source)
- playsound(T,'sound/effects/explosion2.ogg', 200, 1)
+ playsound(T,'sound/effects/explosion2.ogg', 200, TRUE)
new /obj/effect/temp_visual/explosion(T)
explodee.ex_act(EXPLODE_HEAVY)
UNREGISTER_BOMB_SIGNALS(source)
diff --git a/code/modules/mob/living/simple_animal/guardian/types/gravitokinetic.dm b/code/modules/mob/living/simple_animal/guardian/types/gravitokinetic.dm
index d01ed96d230..c2f02f2d057 100644
--- a/code/modules/mob/living/simple_animal/guardian/types/gravitokinetic.dm
+++ b/code/modules/mob/living/simple_animal/guardian/types/gravitokinetic.dm
@@ -51,7 +51,7 @@
var/datum/component/C = A.AddComponent(/datum/component/forced_gravity,new_gravity)
RegisterSignal(A, COMSIG_MOVABLE_MOVED, .proc/__distance_check)
gravito_targets.Add(C)
- playsound(src, 'sound/effects/gravhit.ogg', 100, 1)
+ playsound(src, 'sound/effects/gravhit.ogg', 100, TRUE)
/mob/living/simple_animal/hostile/guardian/gravitokinetic/proc/remove_gravity(datum/component/C)
UnregisterSignal(C.parent, COMSIG_MOVABLE_MOVED)
diff --git a/code/modules/mob/living/simple_animal/guardian/types/standard.dm b/code/modules/mob/living/simple_animal/guardian/types/standard.dm
index 4edd9d9e416..27c528c1ae1 100644
--- a/code/modules/mob/living/simple_animal/guardian/types/standard.dm
+++ b/code/modules/mob/living/simple_animal/guardian/types/standard.dm
@@ -25,7 +25,7 @@
. = ..()
if(isliving(target))
say("[battlecry][battlecry][battlecry][battlecry][battlecry][battlecry][battlecry][battlecry][battlecry][battlecry]!!", ignore_spam = TRUE)
- playsound(loc, src.attack_sound, 50, 1, 1)
- playsound(loc, src.attack_sound, 50, 1, 1)
- playsound(loc, src.attack_sound, 50, 1, 1)
- playsound(loc, src.attack_sound, 50, 1, 1)
+ playsound(loc, src.attack_sound, 50, TRUE, TRUE)
+ playsound(loc, src.attack_sound, 50, TRUE, TRUE)
+ playsound(loc, src.attack_sound, 50, TRUE, TRUE)
+ playsound(loc, src.attack_sound, 50, TRUE, TRUE)
diff --git a/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm b/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm
index 2df7dcc17b1..92dc436a019 100644
--- a/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm
+++ b/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm
@@ -157,14 +157,14 @@
/obj/effect/temp_visual/paperwiz_dying/Initialize()
. = ..()
visible_message("The wizard cries out in pain as a gate appears behind him, sucking him in!")
- playsound(get_turf(src),'sound/magic/mandswap.ogg', 50, 1, 1)
- playsound(get_turf(src),'sound/hallucinations/wail.ogg', 50, 1, 1)
+ playsound(get_turf(src),'sound/magic/mandswap.ogg', 50, TRUE, TRUE)
+ playsound(get_turf(src),'sound/hallucinations/wail.ogg', 50, TRUE, TRUE)
/obj/effect/temp_visual/paperwiz_dying/Destroy()
for(var/mob/M in range(7,src))
shake_camera(M, 7, 1)
var/turf/T = get_turf(src)
- playsound(T,'sound/magic/summon_magic.ogg', 50, 1, 1)
+ playsound(T,'sound/magic/summon_magic.ogg', 50, TRUE, TRUE)
new /obj/effect/temp_visual/paper_scatter(T)
new /obj/item/clothing/suit/wizrobe/paper(T)
new /obj/item/clothing/head/collectable/paper(T)
diff --git a/code/modules/mob/living/simple_animal/hostile/goose.dm b/code/modules/mob/living/simple_animal/hostile/goose.dm
index 81c400d992a..3c7cdc85c8f 100644
--- a/code/modules/mob/living/simple_animal/hostile/goose.dm
+++ b/code/modules/mob/living/simple_animal/hostile/goose.dm
@@ -79,7 +79,7 @@
if (tasty.foodtype & GROSS)
visible_message("[src] hungrily gobbles up \the [tasty]!")
tasty.forceMove(src)
- playsound(src,'sound/items/eatfood.ogg', 70, 1)
+ playsound(src,'sound/items/eatfood.ogg', 70, TRUE)
vomitCoefficient += 3
vomitTimeBonus += 2
else
@@ -91,7 +91,7 @@
if (prob(50) && consumed)
barf_food(consumed)
else
- playsound(T, 'sound/effects/splat.ogg', 50, 1)
+ playsound(T, 'sound/effects/splat.ogg', 50, TRUE)
T.add_vomit_floor(src)
/mob/living/simple_animal/hostile/retaliate/goose/vomit/proc/barf_food(var/atom/A, var/hard = FALSE)
@@ -108,7 +108,7 @@
return
currentTurf = get_turf(consumed)
currentTurf.add_vomit_floor(src)
- playsound(currentTurf, 'sound/effects/splat.ogg', 50, 1)
+ playsound(currentTurf, 'sound/effects/splat.ogg', 50, TRUE)
/mob/living/simple_animal/hostile/retaliate/goose/vomit/proc/vomit_prestart(duration)
flick("vomit_start",src)
diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm
index 08350f7b3e9..f4a2f2d7f34 100644
--- a/code/modules/mob/living/simple_animal/hostile/hostile.dm
+++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm
@@ -368,7 +368,7 @@
/mob/living/simple_animal/hostile/proc/summon_backup(distance, exact_faction_match)
do_alert_animation(src)
- playsound(loc, 'sound/machines/chime.ogg', 50, 1, -1)
+ playsound(loc, 'sound/machines/chime.ogg', 50, TRUE, -1)
for(var/mob/living/simple_animal/hostile/M in oview(distance, targets_from))
if(faction_check_mob(M, TRUE))
if(M.AIStatus == AI_OFF)
@@ -406,11 +406,11 @@
var/turf/startloc = get_turf(targets_from)
if(casingtype)
var/obj/item/ammo_casing/casing = new casingtype(startloc)
- playsound(src, projectilesound, 100, 1)
+ playsound(src, projectilesound, 100, TRUE)
casing.fire_casing(targeted_atom, src, null, null, null, ran_zone(), 0, src)
else if(projectiletype)
var/obj/item/projectile/P = new projectiletype(startloc)
- playsound(src, projectilesound, 100, 1)
+ playsound(src, projectilesound, 100, TRUE)
P.starting = startloc
P.firer = src
P.fired_from = src
diff --git a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm
index f0a643196c3..afb7bbe3c1d 100644
--- a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm
+++ b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm
@@ -85,14 +85,14 @@
/obj/structure/leaper_bubble/Destroy()
new /obj/effect/temp_visual/leaper_projectile_impact(get_turf(src))
- playsound(src,'sound/effects/snap.ogg',50, 1, -1)
+ playsound(src,'sound/effects/snap.ogg',50, TRUE, -1)
return ..()
/obj/structure/leaper_bubble/Crossed(atom/movable/AM)
if(isliving(AM))
var/mob/living/L = AM
if(!istype(L, /mob/living/simple_animal/hostile/jungle/leaper))
- playsound(src,'sound/effects/snap.ogg',50, 1, -1)
+ playsound(src,'sound/effects/snap.ogg',50, TRUE, -1)
L.Paralyze(50)
if(iscarbon(L))
var/mob/living/carbon/C = L
@@ -211,7 +211,7 @@
notransform = FALSE
pass_flags &= ~PASSMOB
hopping = FALSE
- playsound(src.loc, 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(src.loc, 'sound/effects/meteorimpact.ogg', 100, TRUE)
if(target && AIStatus == AI_ON && projectile_ready && !ckey)
face_atom(target)
addtimer(CALLBACK(src, .proc/OpenFire, target), 5)
@@ -231,7 +231,7 @@
hopping = FALSE
density = TRUE
notransform = FALSE
- playsound(src, 'sound/effects/meteorimpact.ogg', 200, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 200, TRUE)
for(var/mob/living/L in orange(1, src))
L.adjustBruteLoss(35)
if(!QDELETED(L)) // Some mobs are deleted on death
diff --git a/code/modules/mob/living/simple_animal/hostile/jungle/mook.dm b/code/modules/mob/living/simple_animal/hostile/jungle/mook.dm
index fba71d1ca8d..133eda964ff 100644
--- a/code/modules/mob/living/simple_animal/hostile/jungle/mook.dm
+++ b/code/modules/mob/living/simple_animal/hostile/jungle/mook.dm
@@ -100,7 +100,7 @@
return
var/swing_turf = get_step(src,mob_direction)
new /obj/effect/temp_visual/kinetic_blast(swing_turf)
- playsound(src, 'sound/weapons/slashmiss.ogg', 50, 1)
+ playsound(src, 'sound/weapons/slashmiss.ogg', 50, TRUE)
/mob/living/simple_animal/hostile/jungle/mook/proc/LeapAttack()
if(target && !stat && attack_state == MOOK_ATTACK_WARMUP)
@@ -110,8 +110,8 @@
melee_damage_upper = 30
update_icons()
new /obj/effect/temp_visual/mook_dust(get_turf(src))
- playsound(src, 'sound/weapons/thudswoosh.ogg', 25, 1)
- playsound(src, 'sound/voice/mook_leap_yell.ogg', 100, 1)
+ playsound(src, 'sound/weapons/thudswoosh.ogg', 25, TRUE)
+ playsound(src, 'sound/voice/mook_leap_yell.ogg', 100, TRUE)
var/target_turf = get_turf(target)
throw_at(target_turf, 7, 1, src, FALSE, callback = CALLBACK(src, .proc/AttackRecovery))
return
diff --git a/code/modules/mob/living/simple_animal/hostile/jungle/seedling.dm b/code/modules/mob/living/simple_animal/hostile/jungle/seedling.dm
index 33cf955d132..fa49257efba 100644
--- a/code/modules/mob/living/simple_animal/hostile/jungle/seedling.dm
+++ b/code/modules/mob/living/simple_animal/hostile/jungle/seedling.dm
@@ -138,9 +138,9 @@
combatant_state = SEEDLING_STATE_ACTIVE
living_target.apply_status_effect(/datum/status_effect/seedling_beam_indicator, src)
beam_debuff_target = living_target
- playsound(src,'sound/effects/seedling_chargeup.ogg', 100, 0)
+ playsound(src,'sound/effects/seedling_chargeup.ogg', 100, FALSE)
if(get_dist(src,living_target) > 7)
- playsound(living_target,'sound/effects/seedling_chargeup.ogg', 100, 0)
+ playsound(living_target,'sound/effects/seedling_chargeup.ogg', 100, FALSE)
solar_beam_identifier = world.time
addtimer(CALLBACK(src, .proc/Beamu, living_target, solar_beam_identifier), 35)
@@ -161,7 +161,7 @@
living_target.adjustFireLoss(30)
living_target.adjust_fire_stacks(0.2)//Just here for the showmanship
living_target.IgniteMob()
- playsound(living_target,'sound/weapons/sear.ogg', 50, 1)
+ playsound(living_target,'sound/weapons/sear.ogg', 50, TRUE)
addtimer(CALLBACK(src, .proc/AttackRecovery), 5)
return
AttackRecovery()
@@ -184,7 +184,7 @@
var/obj/item/projectile/seedling/readied_shot = new /obj/item/projectile/seedling(our_turf)
readied_shot.preparePixelProjectile(target, src, null, rand(-10, 10))
readied_shot.fire()
- playsound(src, projectilesound, 100, 1)
+ playsound(src, projectilesound, 100, TRUE)
/mob/living/simple_animal/hostile/jungle/seedling/proc/AttackRecovery()
if(combatant_state == SEEDLING_STATE_ACTIVE)
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm
index 41dd3bd0497..909fa4151ae 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm
@@ -229,14 +229,14 @@ Difficulty: Medium
new /obj/effect/temp_visual/small_smoke/halfsecond(step_forward_turf)
var/obj/effect/temp_visual/decoy/fading/halfsecond/D = new (own_turf, src)
forceMove(step_back_turf)
- playsound(own_turf, 'sound/weapons/punchmiss.ogg', 40, 1, -1)
+ playsound(own_turf, 'sound/weapons/punchmiss.ogg', 40, TRUE, -1)
dashing = TRUE
alpha = 0
animate(src, alpha = 255, time = 5)
SLEEP_CHECK_DEATH(2)
D.forceMove(step_forward_turf)
forceMove(target_turf)
- playsound(target_turf, 'sound/weapons/punchmiss.ogg', 40, 1, -1)
+ playsound(target_turf, 'sound/weapons/punchmiss.ogg', 40, TRUE, -1)
SLEEP_CHECK_DEATH(1)
dashing = FALSE
return TRUE
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
index 3871c3bfaea..eec07745a8b 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
@@ -245,7 +245,7 @@ Difficulty: Hard
for(var/mob/living/L in T)
if(!faction_check_mob(L))
to_chat(L, "[src] rends you!")
- playsound(T, attack_sound, 100, 1, -1)
+ playsound(T, attack_sound, 100, TRUE, -1)
var/limb_to_hit = L.get_bodypart(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG))
L.apply_damage(10, BRUTE, limb_to_hit, L.run_armor_check(limb_to_hit, "melee", null, null, armour_penetration))
SLEEP_CHECK_DEATH(3)
@@ -262,10 +262,10 @@ Difficulty: Hard
if(!faction_check_mob(L))
if(L.stat != CONSCIOUS)
to_chat(L, "[src] drags you through the blood!")
- playsound(T, 'sound/magic/enter_blood.ogg', 100, 1, -1)
+ playsound(T, 'sound/magic/enter_blood.ogg', 100, TRUE, -1)
var/turf/targetturf = get_step(src, dir)
L.forceMove(targetturf)
- playsound(targetturf, 'sound/magic/exit_blood.ogg', 100, 1, -1)
+ playsound(targetturf, 'sound/magic/exit_blood.ogg', 100, TRUE, -1)
addtimer(CALLBACK(src, .proc/devour, L), 2)
SLEEP_CHECK_DEATH(1)
@@ -299,9 +299,9 @@ Difficulty: Hard
found_bloodpool = pick(pools)
if(found_bloodpool)
visible_message("[src] sinks into the blood...")
- playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 100, 1, -1)
+ playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 100, TRUE, -1)
forceMove(get_turf(found_bloodpool))
- playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 100, 1, -1)
+ playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 100, TRUE, -1)
visible_message("And springs back out!")
blood_enrage()
return TRUE
@@ -420,7 +420,7 @@ Difficulty: Hard
/mob/living/simple_animal/hostile/megafauna/bubblegum/bullet_act(obj/item/projectile/P)
if(BUBBLEGUM_IS_ENRAGED)
visible_message("[src] deflects the projectile; [p_they()] can't be hit with ranged weapons while enraged!", "You deflect the projectile!")
- playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 300, 1)
+ playsound(src, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 300, TRUE)
return BULLET_ACT_BLOCK
return ..()
@@ -457,7 +457,7 @@ Difficulty: Hard
new /obj/effect/decal/cleanable/blood/bubblegum(src.loc)
if(charging)
DestroySurroundings()
- playsound(src, 'sound/effects/meteorimpact.ogg', 200, 1, 2, 1)
+ playsound(src, 'sound/effects/meteorimpact.ogg', 200, TRUE, 2, TRUE)
return ..()
/mob/living/simple_animal/hostile/megafauna/bubblegum/Bump(atom/A)
@@ -470,7 +470,7 @@ Difficulty: Hard
L.visible_message("[src] slams into [L]!", "[src] tramples you into the ground!")
src.forceMove(get_turf(L))
L.apply_damage(istype(src, /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination) ? 15 : 30, BRUTE)
- playsound(get_turf(L), 'sound/effects/meteorimpact.ogg', 100, 1)
+ playsound(get_turf(L), 'sound/effects/meteorimpact.ogg', 100, TRUE)
shake_camera(L, 4, 3)
shake_camera(src, 2, 3)
..()
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
index 03ca2f99063..3f8f719d680 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
@@ -164,7 +164,7 @@ Difficulty: Very Hard
if(counter < 1)
counter = 16
shoot_projectile(start_turf, counter * 22.5)
- playsound(get_turf(src), 'sound/magic/clockwork/invoke_general.ogg', 20, 1)
+ playsound(get_turf(src), 'sound/magic/clockwork/invoke_general.ogg', 20, TRUE)
SLEEP_CHECK_DEATH(1)
/mob/living/simple_animal/hostile/megafauna/colossus/proc/shoot_projectile(turf/marker, set_angle)
@@ -181,7 +181,7 @@ Difficulty: Very Hard
/mob/living/simple_animal/hostile/megafauna/colossus/proc/random_shots()
ranged_cooldown = world.time + 30
var/turf/U = get_turf(src)
- playsound(U, 'sound/magic/clockwork/invoke_general.ogg', 300, 1, 5)
+ playsound(U, 'sound/magic/clockwork/invoke_general.ogg', 300, TRUE, 5)
for(var/T in RANGE_TURFS(12, U) - U)
if(prob(5))
shoot_projectile(T)
@@ -189,7 +189,7 @@ Difficulty: Very Hard
/mob/living/simple_animal/hostile/megafauna/colossus/proc/blast(set_angle)
ranged_cooldown = world.time + 20
var/turf/target_turf = get_turf(target)
- playsound(src, 'sound/magic/clockwork/invoke_general.ogg', 200, 1, 2)
+ playsound(src, 'sound/magic/clockwork/invoke_general.ogg', 200, TRUE, 2)
newtonian_move(get_dir(target_turf, src))
var/angle_to_target = Get_Angle(src, target_turf)
if(isnum(set_angle))
@@ -201,7 +201,7 @@ Difficulty: Very Hard
/mob/living/simple_animal/hostile/megafauna/colossus/proc/dir_shots(list/dirs)
if(!islist(dirs))
dirs = GLOB.alldirs.Copy()
- playsound(src, 'sound/magic/clockwork/invoke_general.ogg', 200, 1, 2)
+ playsound(src, 'sound/magic/clockwork/invoke_general.ogg', 200, TRUE, 2)
for(var/d in dirs)
var/turf/E = get_step(src, d)
shoot_projectile(E)
@@ -211,7 +211,7 @@ Difficulty: Very Hard
if(M.client)
flash_color(M.client, "#C80000", 1)
shake_camera(M, 4, 3)
- playsound(src, 'sound/magic/clockwork/narsie_attack.ogg', 200, 1)
+ playsound(src, 'sound/magic/clockwork/narsie_attack.ogg', 200, TRUE)
/mob/living/simple_animal/hostile/megafauna/colossus/devour(mob/living/L)
@@ -441,7 +441,7 @@ Difficulty: Very Hard
if(method != activation_method)
return FALSE
last_use_timer = (world.time + cooldown_add)
- playsound(user, activation_sound, 100, 1)
+ playsound(user, activation_sound, 100, TRUE)
return TRUE
/obj/machinery/anomalous_crystal/Bumped(atom/movable/AM)
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm
index 2eebed2cb7b..c1825eb3e3c 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm
@@ -167,7 +167,7 @@ Difficulty: Medium
SLEEP_CHECK_DEATH(0)
for(var/i = 1 to times)
SetRecoveryTime(50)
- playsound(get_turf(src),'sound/magic/fireball.ogg', 200, 1)
+ playsound(get_turf(src),'sound/magic/fireball.ogg', 200, TRUE)
var/increment = 360 / spiral_count
for(var/j = 1 to spiral_count)
var/list/turfs = line_target(j * increment + i * increment / 2, range, src)
@@ -235,7 +235,7 @@ Difficulty: Medium
light_range = initial(light_range)
/mob/living/simple_animal/hostile/megafauna/dragon/proc/fire_cone(var/atom/at = target, var/meteors = TRUE)
- playsound(get_turf(src),'sound/magic/fireball.ogg', 200, 1)
+ playsound(get_turf(src),'sound/magic/fireball.ogg', 200, TRUE)
SLEEP_CHECK_DEATH(0)
if(prob(50) && meteors)
INVOKE_ASYNC(src, .proc/fire_rain)
@@ -353,7 +353,7 @@ Difficulty: Medium
swooping &= ~SWOOP_INVULNERABLE
mouse_opacity = initial(mouse_opacity)
icon_state = "dragon"
- playsound(loc, 'sound/effects/meteorimpact.ogg', 200, 1)
+ playsound(loc, 'sound/effects/meteorimpact.ogg', 200, TRUE)
for(var/mob/living/L in orange(1, src))
if(L.stat)
visible_message("[src] slams down on [L], crushing [L.p_them()]!")
@@ -428,9 +428,9 @@ Difficulty: Medium
/obj/effect/temp_visual/lava_warning/proc/fall(var/reset_time)
var/turf/T = get_turf(src)
- playsound(T,'sound/magic/fleshtostone.ogg', 80, 1)
+ playsound(T,'sound/magic/fleshtostone.ogg', 80, TRUE)
sleep(duration)
- playsound(T,'sound/magic/fireball.ogg', 200, 1)
+ playsound(T,'sound/magic/fireball.ogg', 200, TRUE)
for(var/mob/living/L in T.contents)
if(istype(L, /mob/living/simple_animal/hostile/megafauna/dragon))
@@ -546,13 +546,13 @@ obj/effect/temp_visual/fireball
/obj/effect/temp_visual/target/proc/fall(list/flame_hit)
var/turf/T = get_turf(src)
- playsound(T,'sound/magic/fleshtostone.ogg', 80, 1)
+ playsound(T,'sound/magic/fleshtostone.ogg', 80, TRUE)
new /obj/effect/temp_visual/fireball(T)
sleep(duration)
if(ismineralturf(T))
var/turf/closed/mineral/M = T
M.gets_drilled()
- playsound(T, "explosion", 80, 1)
+ playsound(T, "explosion", 80, TRUE)
new /obj/effect/hotspot(T)
T.hotspot_expose(700, 50, 1)
for(var/mob/living/L in T.contents)
@@ -628,7 +628,7 @@ obj/effect/temp_visual/fireball
. = ..()
/mob/living/simple_animal/hostile/megafauna/dragon/space_dragon/proc/fire_stream(var/atom/at = target)
- playsound(get_turf(src),'sound/magic/fireball.ogg', 200, 1)
+ playsound(get_turf(src),'sound/magic/fireball.ogg', 200, TRUE)
SLEEP_CHECK_DEATH(0)
var/range = 20
var/list/turfs = list()
@@ -660,9 +660,9 @@ obj/effect/temp_visual/fireball
/obj/effect/proc_holder/spell/aoe_turf/repulse/spacedragon/cast(list/targets,mob/user = usr)
if(iscarbon(user))
var/mob/living/carbon/C = user
- playsound(C.loc,'sound/effects/hit_punch.ogg', 80, 1, 1)
+ playsound(C.loc,'sound/effects/hit_punch.ogg', 80, TRUE, TRUE)
C.spin(6,1)
..(targets, user, 60)
/mob/living/simple_animal/hostile/megafauna/dragon/space_dragon/AltClickOn(atom/movable/A)
- return
\ No newline at end of file
+ return
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm
index 0bfd26a87a1..ce7503db84f 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm
@@ -273,7 +273,7 @@ Difficulty: Hard
new /obj/effect/temp_visual/hierophant/telegraph/diagonal(T, src)
else
new /obj/effect/temp_visual/hierophant/telegraph(T, src)
- playsound(T,'sound/effects/bin_close.ogg', 200, 1)
+ playsound(T,'sound/effects/bin_close.ogg', 200, TRUE)
SLEEP_CHECK_DEATH(2)
new /obj/effect/temp_visual/hierophant/blast(T, src, FALSE)
for(var/d in directions)
@@ -321,8 +321,8 @@ Difficulty: Hard
var/turf/source = get_turf(src)
new /obj/effect/temp_visual/hierophant/telegraph(T, src)
new /obj/effect/temp_visual/hierophant/telegraph(source, src)
- playsound(T,'sound/magic/wand_teleport.ogg', 200, 1)
- playsound(source,'sound/machines/airlockopen.ogg', 200, 1)
+ playsound(T,'sound/magic/wand_teleport.ogg', 200, TRUE)
+ playsound(source,'sound/machines/airlockopen.ogg', 200, TRUE)
blinking = TRUE
SLEEP_CHECK_DEATH(2) //short delay before we start...
new /obj/effect/temp_visual/hierophant/telegraph/teleport(T, src)
@@ -354,14 +354,14 @@ Difficulty: Hard
if(!T)
return
new /obj/effect/temp_visual/hierophant/telegraph(T, src)
- playsound(T,'sound/effects/bin_close.ogg', 200, 1)
+ playsound(T,'sound/effects/bin_close.ogg', 200, TRUE)
SLEEP_CHECK_DEATH(2)
for(var/t in RANGE_TURFS(1, T))
new /obj/effect/temp_visual/hierophant/blast(t, src, FALSE)
//expanding square
/proc/hierophant_burst(mob/caster, turf/original, burst_range, spread_speed = 0.5)
- playsound(original,'sound/machines/airlockopen.ogg', 200, 1)
+ playsound(original,'sound/machines/airlockopen.ogg', 200, TRUE)
var/last_dist = 0
for(var/t in spiral_range_turfs(burst_range, original))
var/turf/T = t
@@ -470,7 +470,7 @@ Difficulty: Hard
if(!stat && .)
var/obj/effect/temp_visual/hierophant/squares/HS = new(oldLoc)
HS.setDir(movement_dir)
- playsound(src, 'sound/mecha/mechmove04.ogg', 150, 1, -4)
+ playsound(src, 'sound/mecha/mechmove04.ogg', 150, TRUE, -4)
if(target)
arena_trap(target)
@@ -649,7 +649,7 @@ Difficulty: Hard
var/turf/T = get_turf(src)
if(!T)
return
- playsound(T,'sound/magic/blind.ogg', 125, 1, -5) //make a sound
+ playsound(T,'sound/magic/blind.ogg', 125, TRUE, -5) //make a sound
sleep(6) //wait a little
bursting = TRUE
do_damage(T) //do damage and mark us as bursting
@@ -670,7 +670,7 @@ Difficulty: Hard
continue
if(L.client)
flash_color(L.client, "#660099", 1)
- playsound(L,'sound/weapons/sear.ogg', 50, 1, -4)
+ playsound(L,'sound/weapons/sear.ogg', 50, TRUE, -4)
to_chat(L, "You're struck by a [name]!")
var/limb_to_hit = L.get_bodypart(pick(BODY_ZONE_HEAD, BODY_ZONE_CHEST, BODY_ZONE_R_ARM, BODY_ZONE_L_ARM, BODY_ZONE_R_LEG, BODY_ZONE_L_LEG))
var/armor = L.run_armor_check(limb_to_hit, "melee", "Your armor absorbs [src]!", "Your armor blocks part of [src]!", 50, "Your armor was penetrated by [src]!")
@@ -693,7 +693,7 @@ Difficulty: Hard
if(friendly_fire_check && caster && caster.faction_check_mob(M.occupant))
continue
to_chat(M.occupant, "Your [M.name] is struck by a [name]!")
- playsound(M,'sound/weapons/sear.ogg', 50, 1, -4)
+ playsound(M,'sound/weapons/sear.ogg', 50, TRUE, -4)
M.take_damage(damage, BURN, 0, 0)
/obj/effect/hierophant
@@ -718,7 +718,7 @@ Difficulty: Hard
H.timer = world.time + 51
INVOKE_ASYNC(H, /obj/item/hierophant_club.proc/prepare_icon_update)
if(do_after(user, 50, target = src))
- playsound(src,'sound/magic/blind.ogg', 200, 1, -4)
+ playsound(src,'sound/magic/blind.ogg', 200, TRUE, -4)
new /obj/effect/temp_visual/hierophant/telegraph/teleport(get_turf(src), user)
to_chat(user, "You collect [src], reattaching it to the club!")
H.beacon = null
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm
index db63199bd5b..9935fb40aa4 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm
@@ -282,7 +282,7 @@
return
user.visible_message("[user] holds [src] skywards as an orange beam travels into the sky!", \
"You hold [src] skyward, dispelling the storm!")
- playsound(user, 'sound/magic/staff_change.ogg', 200, 0)
+ playsound(user, 'sound/magic/staff_change.ogg', 200, FALSE)
A.wind_down()
log_game("[user] ([key_name(user)]) has dispelled a storm at [AREACOORD(user_turf)]")
return
@@ -298,7 +298,7 @@
user.visible_message("[user] holds [src] skywards as red lightning crackles into the sky!", \
"You hold [src] skyward, calling down a terrible storm!")
- playsound(user, 'sound/magic/staff_change.ogg', 200, 0)
+ playsound(user, 'sound/magic/staff_change.ogg', 200, FALSE)
A.telegraph()
storm_cooldown = world.time + 200
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/curse_blob.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/curse_blob.dm
index 7cf38bcc0a7..5663d0addd3 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/curse_blob.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/curse_blob.dm
@@ -29,7 +29,7 @@
/mob/living/simple_animal/hostile/asteroid/curseblob/Initialize(mapload)
. = ..()
timerid = QDEL_IN(src, 600)
- playsound(src, 'sound/effects/curse1.ogg', 100, 1, -1)
+ playsound(src, 'sound/effects/curse1.ogg', 100, TRUE, -1)
/mob/living/simple_animal/hostile/asteroid/curseblob/Destroy()
new /obj/effect/temp_visual/dir_setting/curse/blob(loc, dir)
diff --git a/code/modules/mob/living/simple_animal/hostile/netherworld.dm b/code/modules/mob/living/simple_animal/hostile/netherworld.dm
index edbbbd0c0b9..d653f532850 100644
--- a/code/modules/mob/living/simple_animal/hostile/netherworld.dm
+++ b/code/modules/mob/living/simple_animal/hostile/netherworld.dm
@@ -99,7 +99,7 @@
/obj/structure/spawner/nether/process()
for(var/mob/living/M in contents)
if(M)
- playsound(src, 'sound/magic/demon_consume.ogg', 50, 1)
+ playsound(src, 'sound/magic/demon_consume.ogg', 50, TRUE)
M.adjustBruteLoss(60)
new /obj/effect/gibspawner/generic(get_turf(M), M)
if(M.stat == DEAD)
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm
index ab98e7a84d4..27ffbb6960c 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm
@@ -45,7 +45,7 @@
/mob/living/simple_animal/hostile/retaliate/clown/attack_hand(mob/living/carbon/human/M)
..()
- playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/bikehorn.ogg', 50, TRUE)
/mob/living/simple_animal/hostile/retaliate/clown/Life()
. = ..()
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
index ef51d8621b1..d65981f0ad3 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
@@ -41,4 +41,4 @@
if(!stat && isliving(AM))
var/mob/living/L = AM
if(L.mob_size > MOB_SIZE_TINY)
- playsound(src, stepped_sound, 50, 1)
+ playsound(src, stepped_sound, 50, TRUE)
diff --git a/code/modules/mob/living/simple_animal/slime/slime.dm b/code/modules/mob/living/simple_animal/slime/slime.dm
index c2a91f4c89c..030b41d5634 100644
--- a/code/modules/mob/living/simple_animal/slime/slime.dm
+++ b/code/modules/mob/living/simple_animal/slime/slime.dm
@@ -325,12 +325,12 @@
if(prob(60))
M.visible_message("[M] attempts to wrestle \the [name] off!", \
"You attempt to wrestle \the [name] off!")
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
else
M.visible_message("[M] manages to wrestle \the [name] off!", \
"You manage to wrestle \the [name] off!")
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
discipline_slime(M)
@@ -338,12 +338,12 @@
if(prob(30))
buckled.visible_message("[M] attempts to wrestle \the [name] off of [buckled]!", \
"[M] attempts to wrestle \the [name] off of you!")
- playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
+ playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1)
else
buckled.visible_message("[M] manages to wrestle \the [name] off of [buckled]!", \
"[M] manage to wrestle \the [name] off of you!")
- playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
discipline_slime(M)
else
@@ -406,7 +406,7 @@
hasFound = TRUE
if(applied >= SLIME_EXTRACT_CROSSING_REQUIRED)
to_chat(user, "You feed the slime as many of the extracts from the bag as you can, and it mutates!")
- playsound(src, 'sound/effects/attackblob.ogg', 50, 1)
+ playsound(src, 'sound/effects/attackblob.ogg', 50, TRUE)
spawn_corecross()
hasOutput = TRUE
break
@@ -415,14 +415,14 @@
to_chat(user, "There are no extracts in the bag that this slime will accept!")
else
to_chat(user, "You feed the slime some extracts from the bag.")
- playsound(src, 'sound/effects/attackblob.ogg', 50, 1)
+ playsound(src, 'sound/effects/attackblob.ogg', 50, TRUE)
return
..()
/mob/living/simple_animal/slime/proc/spawn_corecross()
var/static/list/crossbreeds = subtypesof(/obj/item/slimecross)
visible_message("[src] shudders, its mutated core consuming the rest of its body!")
- playsound(src, 'sound/magic/smoke.ogg', 50, 1)
+ playsound(src, 'sound/magic/smoke.ogg', 50, TRUE)
var/crosspath
for(var/X in crossbreeds)
var/obj/item/slimecross/S = X
diff --git a/code/modules/modular_computers/hardware/card_slot.dm b/code/modules/modular_computers/hardware/card_slot.dm
index 776f0d1bdd2..438e99bf569 100644
--- a/code/modules/modular_computers/hardware/card_slot.dm
+++ b/code/modules/modular_computers/hardware/card_slot.dm
@@ -63,7 +63,7 @@
else
stored_card2 = I
to_chat(user, "You insert \the [I] into \the [src].")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
if(ishuman(user))
var/mob/living/carbon/human/H = user
H.sec_hud_set_ID()
@@ -105,7 +105,7 @@
var/mob/living/carbon/human/H = user
H.sec_hud_set_ID()
to_chat(user, "You remove the card[ejected>1 ? "s" : ""] from \the [src].")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
return TRUE
return FALSE
diff --git a/code/modules/ninja/energy_katana.dm b/code/modules/ninja/energy_katana.dm
index 56aa1654eaa..092f078efa1 100644
--- a/code/modules/ninja/energy_katana.dm
+++ b/code/modules/ninja/energy_katana.dm
@@ -38,15 +38,15 @@
jaunt.Teleport(user, target)
if(proximity_flag && (isobj(target) || issilicon(target)))
spark_system.start()
- playsound(user, "sparks", 50, 1)
- playsound(user, 'sound/weapons/blade1.ogg', 50, 1)
+ playsound(user, "sparks", 50, TRUE)
+ playsound(user, 'sound/weapons/blade1.ogg', 50, TRUE)
target.emag_act(user)
/obj/item/energy_katana/pickup(mob/living/user)
. = ..()
jaunt.Grant(user, src)
user.update_icons()
- playsound(src, 'sound/items/unsheath.ogg', 25, 1)
+ playsound(src, 'sound/items/unsheath.ogg', 25, TRUE)
/obj/item/energy_katana/dropped(mob/user)
. = ..()
@@ -74,7 +74,7 @@
if(doSpark)
spark_system.start()
- playsound(get_turf(src), "sparks", 50, 1)
+ playsound(get_turf(src), "sparks", 50, TRUE)
var/msg = ""
diff --git a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
index db580d069b9..d6580fcc611 100644
--- a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
+++ b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
@@ -27,9 +27,9 @@ It is possible to destroy the net by the occupant or someone else.
/obj/structure/energy_net/play_attack_sound(damage, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
- playsound(src, 'sound/weapons/slash.ogg', 80, 1)
+ playsound(src, 'sound/weapons/slash.ogg', 80, TRUE)
if(BURN)
- playsound(src, 'sound/weapons/slash.ogg', 80, 1)
+ playsound(src, 'sound/weapons/slash.ogg', 80, TRUE)
/obj/structure/energy_net/Destroy()
if(!success)
@@ -62,7 +62,7 @@ It is possible to destroy the net by the occupant or someone else.
// After we remove items, at least give them what they need to live.
H.dna.species.give_important_for_life(H)
- playsound(affecting, 'sound/effects/sparks4.ogg', 50, 1)
+ playsound(affecting, 'sound/effects/sparks4.ogg', 50, TRUE)
new /obj/effect/temp_visual/dir_setting/ninja/phase/out(affecting.drop_location(), affecting.dir)
visible_message("[affecting] suddenly vanishes!")
@@ -72,8 +72,8 @@ It is possible to destroy the net by the occupant or someone else.
if(!QDELETED(master))//As long as they still exist.
to_chat(master, "SUCCESS: transport procedure of [affecting] complete.")
do_sparks(5, FALSE, affecting)
- playsound(affecting, 'sound/effects/phasein.ogg', 25, 1)
- playsound(affecting, 'sound/effects/sparks2.ogg', 50, 1)
+ playsound(affecting, 'sound/effects/phasein.ogg', 25, TRUE)
+ playsound(affecting, 'sound/effects/sparks2.ogg', 50, TRUE)
new /obj/effect/temp_visual/dir_setting/ninja/phase(affecting.drop_location(), affecting.dir)
/obj/structure/energy_net/attack_paw(mob/user)
diff --git a/code/modules/ninja/suit/n_suit_verbs/ninja_sword_recall.dm b/code/modules/ninja/suit/n_suit_verbs/ninja_sword_recall.dm
index be51588423c..aa12c301759 100644
--- a/code/modules/ninja/suit/n_suit_verbs/ninja_sword_recall.dm
+++ b/code/modules/ninja/suit/n_suit_verbs/ninja_sword_recall.dm
@@ -28,7 +28,7 @@
if(inview) //If we can see the katana, throw it towards ourselves, damaging people as we go.
energyKatana.spark_system.start()
- playsound(H, "sparks", 50, 1)
+ playsound(H, "sparks", 50, TRUE)
H.visible_message("\the [energyKatana] flies towards [H]!","You hold out your hand and \the [energyKatana] flies towards you!")
energyKatana.throw_at(H, distance+1, energyKatana.throw_speed,H)
diff --git a/code/modules/ninja/suit/ninjaDrainAct.dm b/code/modules/ninja/suit/ninjaDrainAct.dm
index a229d744629..b8e18fa465a 100644
--- a/code/modules/ninja/suit/ninjaDrainAct.dm
+++ b/code/modules/ninja/suit/ninjaDrainAct.dm
@@ -43,7 +43,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
if (do_after(H,10, target = src))
spark_system.start()
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
cell.use(drain)
S.cell.give(drain)
. += drain
@@ -52,7 +52,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
if(!(obj_flags & EMAGGED))
flick("apc-spark", G)
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
obj_flags |= EMAGGED
locked = FALSE
update_icon()
@@ -87,7 +87,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
if (do_after(H,10, target = src))
spark_system.start()
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
charge -= drain
S.cell.give(drain)
. += drain
@@ -210,7 +210,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
maxcapacity = 1
if (do_after(H,10, target = src))
spark_system.start()
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
cell.use(drain)
S.cell.give(drain)
. += drain
@@ -238,7 +238,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
maxcapacity = 1
if (do_after(H,10))
spark_system.start()
- playsound(loc, "sparks", 50, 1)
+ playsound(loc, "sparks", 50, TRUE)
cell.use(drain)
S.cell.give(drain)
. += drain
@@ -259,6 +259,6 @@ They *could* go in their appropriate files, but this is supposed to be modular
//Got that electric touch
var/datum/effect_system/spark_spread/spark_system = new /datum/effect_system/spark_spread()
spark_system.set_up(5, 0, loc)
- playsound(src, "sparks", 50, 1)
+ playsound(src, "sparks", 50, TRUE)
visible_message("[H] electrocutes [src] with [H.p_their()] touch!", "[H] electrocutes you with [H.p_their()] touch!")
electrocute_act(25, H)
diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm
index 66048f542a7..8394c8ea91b 100644
--- a/code/modules/paperwork/paper.dm
+++ b/code/modules/paperwork/paper.dm
@@ -110,7 +110,7 @@
if(rigged && (SSevents.holidays && SSevents.holidays[APRIL_FOOLS]))
if(!spam_flag)
spam_flag = TRUE
- playsound(loc, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(loc, 'sound/items/bikehorn.ogg', 50, TRUE)
addtimer(CALLBACK(src, .proc/reset_spamflag), 20)
diff --git a/code/modules/paperwork/paper_cutter.dm b/code/modules/paperwork/paper_cutter.dm
index 8c44b298242..ec82b7a3ab5 100644
--- a/code/modules/paperwork/paper_cutter.dm
+++ b/code/modules/paperwork/paper_cutter.dm
@@ -26,11 +26,11 @@
var/obj/item/bodypart/BP = C.get_bodypart(BODY_ZONE_HEAD)
if(BP)
BP.drop_limb()
- playsound(loc,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
+ playsound(loc, "desceration" ,50, TRUE, -1)
return (BRUTELOSS)
else
user.visible_message("[user] repeatedly bashes [src.name] against [user.p_their()] head! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1)
+ playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
return (BRUTELOSS)
@@ -46,7 +46,7 @@
if(istype(P, /obj/item/paper) && !storedpaper)
if(!user.transferItemToLoc(P, src))
return
- playsound(loc, "pageturn", 60, 1)
+ playsound(loc, "pageturn", 60, TRUE)
to_chat(user, "You place [P] in [src].")
storedpaper = P
update_icon()
@@ -82,7 +82,7 @@
update_icon()
if(storedpaper)
- playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1)
+ playsound(src.loc, 'sound/weapons/slash.ogg', 50, TRUE)
to_chat(user, "You neatly cut [storedpaper].")
storedpaper = null
qdel(storedpaper)
diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm
index aa4ce32ca11..aba7bcc5fed 100644
--- a/code/modules/paperwork/pen.dm
+++ b/code/modules/paperwork/pen.dm
@@ -202,7 +202,7 @@
hitsound = initial(hitsound)
embedding = embedding.setRating(embed_chance = EMBED_CHANCE)
throwforce = initial(throwforce)
- playsound(user, 'sound/weapons/saberoff.ogg', 5, 1)
+ playsound(user, 'sound/weapons/saberoff.ogg', 5, TRUE)
to_chat(user, "[src] can now be concealed.")
else
on = TRUE
@@ -213,7 +213,7 @@
hitsound = 'sound/weapons/blade1.ogg'
embedding = embedding.setRating(embed_chance = 100) //rule of cool
throwforce = 35
- playsound(user, 'sound/weapons/saberon.ogg', 5, 1)
+ playsound(user, 'sound/weapons/saberon.ogg', 5, TRUE)
to_chat(user, "[src] is now active.")
update_icon()
diff --git a/code/modules/paperwork/ticketmachine.dm b/code/modules/paperwork/ticketmachine.dm
index 80fc35b6ad8..2ebfbf532a3 100644
--- a/code/modules/paperwork/ticketmachine.dm
+++ b/code/modules/paperwork/ticketmachine.dm
@@ -50,7 +50,7 @@
/obj/machinery/ticket_machine/proc/increment()
if(current_number >= ticket_number)
return
- playsound(src, 'sound/misc/announce_dig.ogg', 50, 0)
+ playsound(src, 'sound/misc/announce_dig.ogg', 50, FALSE)
if(current_number && !(obj_flags & EMAGGED) && tickets[current_number])
tickets[current_number].visible_message("\the [tickets[current_number]] disperses!")
qdel(tickets[current_number])
@@ -170,7 +170,7 @@
if((user in ticket_holders) && !(obj_flags & EMAGGED))
to_chat(user, "You already have a ticket!")
return
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 100, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 100, FALSE)
ticket_number ++
to_chat(user, "You take a ticket from [src], looks like you're ticket number #[ticket_number]...")
var/obj/item/ticket_machine_ticket/theirticket = new /obj/item/ticket_machine_ticket(get_turf(src))
diff --git a/code/modules/photography/camera/camera_image_capturing.dm b/code/modules/photography/camera/camera_image_capturing.dm
index 636f22bd7f9..44fe08f79c0 100644
--- a/code/modules/photography/camera/camera_image_capturing.dm
+++ b/code/modules/photography/camera/camera_image_capturing.dm
@@ -79,9 +79,9 @@
if(!silent)
if(istype(custom_sound)) //This is where the camera actually finishes its exposure.
- playsound(loc, custom_sound, 75, 1, -3)
+ playsound(loc, custom_sound, 75, TRUE, -3)
else
- playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3)
+ playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, TRUE, -3)
if(wipe_atoms)
QDEL_LIST(atoms)
diff --git a/code/modules/photography/photos/frame.dm b/code/modules/photography/photos/frame.dm
index 09e21d68813..f9618da81e2 100644
--- a/code/modules/photography/photos/frame.dm
+++ b/code/modules/photography/photos/frame.dm
@@ -119,7 +119,7 @@
if(can_decon && (I.tool_behaviour == TOOL_SCREWDRIVER || I.tool_behaviour == TOOL_WRENCH))
to_chat(user, "You start unsecuring [name]...")
if(I.use_tool(src, user, 30, volume=50))
- playsound(loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
to_chat(user, "You unsecure [name].")
deconstruct()
diff --git a/code/modules/photography/photos/photo.dm b/code/modules/photography/photos/photo.dm
index 9bbc52ca83c..1d648086e69 100644
--- a/code/modules/photography/photos/photo.dm
+++ b/code/modules/photography/photos/photo.dm
@@ -42,9 +42,9 @@
/obj/item/photo/suicide_act(mob/living/carbon/user)
user.visible_message("[user] is taking one last look at \the [src]! It looks like [user.p_theyre()] giving in to death!")//when you wanna look at photo of waifu one last time before you die...
if (user.gender == MALE)
- playsound(user, 'sound/voice/human/manlaugh1.ogg', 50, 1)//EVERY TIME I DO IT MAKES ME LAUGH
+ playsound(user, 'sound/voice/human/manlaugh1.ogg', 50, TRUE)//EVERY TIME I DO IT MAKES ME LAUGH
else if (user.gender == FEMALE)
- playsound(user, 'sound/voice/human/womanlaugh.ogg', 50, 1)
+ playsound(user, 'sound/voice/human/womanlaugh.ogg', 50, TRUE)
return OXYLOSS
/obj/item/photo/attack_self(mob/user)
diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm
index e489a00e67c..1855fe887b7 100644
--- a/code/modules/power/apc.dm
+++ b/code/modules/power/apc.dm
@@ -592,7 +592,7 @@
return
user.visible_message("[user.name] adds cables to the APC frame.", \
"You start adding cables to the APC frame...")
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
if(do_after(user, 20, target = src))
if (C.get_amount() < 10 || !C)
return
@@ -616,7 +616,7 @@
user.visible_message("[user.name] inserts the power control board into [src].", \
"You start to insert the power control board into the frame...")
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
if(do_after(user, 10, target = src))
if(!has_electronics)
has_electronics = APC_ELECTRONICS_INSTALLED
@@ -817,7 +817,7 @@
to_chat(user, "Nothing happens!")
else
flick("apc-spark", src)
- playsound(src, "sparks", 75, 1)
+ playsound(src, "sparks", 75, TRUE)
obj_flags |= EMAGGED
locked = FALSE
to_chat(user, "You emag the APC interface.")
@@ -1123,11 +1123,11 @@
return
transfer_in_progress = TRUE
user.visible_message("[user] slots [card] into [src]...", "Transfer process initiated. Sending request for AI approval...")
- playsound(src, 'sound/machines/click.ogg', 50, 1)
+ playsound(src, 'sound/machines/click.ogg', 50, TRUE)
SEND_SOUND(occupier, sound('sound/misc/notice2.ogg')) //To alert the AI that someone's trying to card them if they're tabbed out
if(alert(occupier, "[user] is attempting to transfer you to \a [card.name]. Do you consent to this?", "APC Transfer", "Yes - Transfer Me", "No - Keep Me Here") == "No - Keep Me Here")
to_chat(user, "AI denied transfer request. Process terminated.")
- playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1)
+ playsound(src, 'sound/machines/buzz-sigh.ogg', 50, TRUE)
transfer_in_progress = FALSE
return
if(user.loc != T)
diff --git a/code/modules/power/floodlight.dm b/code/modules/power/floodlight.dm
index ef494a6461c..126a6805f55 100644
--- a/code/modules/power/floodlight.dm
+++ b/code/modules/power/floodlight.dm
@@ -107,11 +107,11 @@
/obj/machinery/power/floodlight/obj_break(damage_flag)
if(!(flags_1 & NODECONSTRUCT_1))
- playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(loc, 'sound/effects/glassbr3.ogg', 100, TRUE)
var/obj/structure/floodlight_frame/F = new(loc)
F.state = FLOODLIGHT_NEEDS_LIGHTS
new /obj/item/light/tube/broken(loc)
qdel(src)
/obj/machinery/power/floodlight/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
- playsound(src, 'sound/effects/glasshit.ogg', 75, 1)
\ No newline at end of file
+ playsound(src, 'sound/effects/glasshit.ogg', 75, TRUE)
diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm
index ebb6a37475c..7305c4048e3 100644
--- a/code/modules/power/gravitygenerator.dm
+++ b/code/modules/power/gravitygenerator.dm
@@ -206,7 +206,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
if(PS.get_amount() >= 10)
PS.use(10)
to_chat(user, "You add the plating to the framework.")
- playsound(src.loc, 'sound/machines/click.ogg', 75, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 75, TRUE)
broken_state++
update_icon()
else
@@ -326,7 +326,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
charge_count -= 2
if(charge_count % 4 == 0 && prob(75)) // Let them know it is charging/discharging.
- playsound(src.loc, 'sound/effects/empulse.ogg', 100, 1)
+ playsound(src.loc, 'sound/effects/empulse.ogg', 100, TRUE)
updateDialog()
if(prob(25)) // To help stop "Your clothes feel warm." spam.
diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm
index 325a28fcf6d..0cfc7d33fb4 100644
--- a/code/modules/power/lighting.dm
+++ b/code/modules/power/lighting.dm
@@ -129,7 +129,7 @@
new /obj/item/stack/sheet/metal(drop_location(), sheets_refunded)
user.visible_message("[user.name] deconstructs [src].", \
"You deconstruct [src].", "You hear a ratchet.")
- playsound(src, 'sound/items/deconstruct.ogg', 75, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 75, TRUE)
qdel(src)
return
@@ -547,13 +547,13 @@
if(BRUTE)
switch(status)
if(LIGHT_EMPTY)
- playsound(loc, 'sound/weapons/smash.ogg', 50, 1)
+ playsound(loc, 'sound/weapons/smash.ogg', 50, TRUE)
if(LIGHT_BROKEN)
- playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 90, 1)
+ playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 90, TRUE)
else
- playsound(loc, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(loc, 'sound/effects/glasshit.ogg', 90, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
// returns if the light has power /but/ is manually turned off
// if a light is turned off, it won't activate emergency power
@@ -707,7 +707,7 @@
if(!skip_sound_and_sparks)
if(status == LIGHT_OK || status == LIGHT_BURNED)
- playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
+ playsound(src.loc, 'sound/effects/glasshit.ogg', 75, TRUE)
if(on)
do_sparks(3, TRUE, src)
status = LIGHT_BROKEN
@@ -830,9 +830,9 @@
. = ..()
if(istype(L) && has_gravity(loc))
if(HAS_TRAIT(L, TRAIT_LIGHT_STEP))
- playsound(loc, 'sound/effects/glass_step.ogg', 30, 1)
+ playsound(loc, 'sound/effects/glass_step.ogg', 30, TRUE)
else
- playsound(loc, 'sound/effects/glass_step.ogg', 50, 1)
+ playsound(loc, 'sound/effects/glass_step.ogg', 50, TRUE)
if(status == LIGHT_BURNED || status == LIGHT_OK)
shatter()
@@ -867,7 +867,7 @@
visible_message("[src] shatters.","You hear a small glass object shatter.")
status = LIGHT_BROKEN
force = 5
- playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
+ playsound(src.loc, 'sound/effects/glasshit.ogg', 75, TRUE)
if(rigged)
atmos_spawn_air("plasma=5") //5u of plasma are required to rig a light bulb/tube
update()
diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm
index 57905c94cf6..6bf19868635 100644
--- a/code/modules/power/port_gen.dm
+++ b/code/modules/power/port_gen.dm
@@ -196,7 +196,7 @@
disconnect_from_network()
to_chat(user, "You unsecure the generator from the floor.")
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
return
else if(O.tool_behaviour == TOOL_SCREWDRIVER)
panel_open = !panel_open
diff --git a/code/modules/power/rtg.dm b/code/modules/power/rtg.dm
index fef9b902c93..5dea42f1c25 100644
--- a/code/modules/power/rtg.dm
+++ b/code/modules/power/rtg.dm
@@ -74,7 +74,7 @@
going_kaboom = TRUE
visible_message("\The [src] lets out a shower of sparks as it starts to lose stability!",\
"You hear a loud electrical crack!")
- playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, 1, extrarange = 5)
+ playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, TRUE, extrarange = 5)
tesla_zap(src, 5, power_gen * 0.05)
addtimer(CALLBACK(GLOBAL_PROC, .proc/explosion, get_turf(src), 2, 3, 4, 8), 100) // Not a normal explosion.
diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm
index db51d37a965..1b795a95446 100644
--- a/code/modules/power/singularity/collector.dm
+++ b/code/modules/power/singularity/collector.dm
@@ -48,7 +48,7 @@
if(!bitcoinmining)
if(!loaded_tank.air_contents.gases[/datum/gas/plasma])
investigate_log("out of fuel.", INVESTIGATE_SINGULO)
- playsound(src, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src, 'sound/machines/ding.ogg', 50, TRUE)
eject()
else
var/gasdrained = min(powerproduction_drain*drainratio,loaded_tank.air_contents.gases[/datum/gas/plasma][MOLES])
@@ -62,7 +62,7 @@
stored_energy-=power_produced
else if(is_station_level(z) && SSresearch.science_tech)
if(!loaded_tank.air_contents.gases[/datum/gas/tritium] || !loaded_tank.air_contents.gases[/datum/gas/oxygen])
- playsound(src, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src, 'sound/machines/ding.ogg', 50, TRUE)
eject()
else
var/gasdrained = bitcoinproduction_drain*drainratio
diff --git a/code/modules/power/singularity/containment_field.dm b/code/modules/power/singularity/containment_field.dm
index c98b5fa7de8..e9535df0e25 100644
--- a/code/modules/power/singularity/containment_field.dm
+++ b/code/modules/power/singularity/containment_field.dm
@@ -36,9 +36,9 @@
/obj/machinery/field/containment/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BURN)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
if(BRUTE)
- playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
+ playsound(loc, 'sound/effects/empulse.ogg', 75, TRUE)
/obj/machinery/field/containment/blob_act(obj/structure/blob/B)
return FALSE
diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm
index a47f6b3fe51..6e7ade839c3 100644
--- a/code/modules/power/singularity/emitter.dm
+++ b/code/modules/power/singularity/emitter.dm
@@ -340,7 +340,7 @@
return
user.put_in_hands(gun)
gun = null
- playsound(src, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)
gun_properties = list()
set_projectile()
return TRUE
diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm
index 3e7897c44ce..9524818c666 100644
--- a/code/modules/power/smes.dm
+++ b/code/modules/power/smes.dm
@@ -129,7 +129,7 @@
return
to_chat(user, "You start building the power terminal...")
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
if(do_after(user, 20, target = src))
if(C.get_amount() < 10 || !C)
diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm
index 98ede7768c1..0bb91dc7187 100644
--- a/code/modules/power/solar.dm
+++ b/code/modules/power/solar.dm
@@ -62,10 +62,10 @@
update_icon()
/obj/machinery/power/solar/crowbar_act(mob/user, obj/item/I)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
user.visible_message("[user] begins to take the glass off [src].", "You begin to take the glass off [src]...")
if(I.use_tool(src, user, 50))
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("[user] takes the glass off [src].", "You take the glass off [src].")
deconstruct(TRUE)
return TRUE
@@ -74,16 +74,16 @@
switch(damage_type)
if(BRUTE)
if(stat & BROKEN)
- playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 60, 1)
+ playsound(loc, 'sound/effects/hit_on_shattered_glass.ogg', 60, TRUE)
else
- playsound(loc, 'sound/effects/glasshit.ogg', 90, 1)
+ playsound(loc, 'sound/effects/glasshit.ogg', 90, TRUE)
if(BURN)
- playsound(loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/machinery/power/solar/obj_break(damage_flag)
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
- playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(loc, 'sound/effects/glassbr3.ogg', 100, TRUE)
stat |= BROKEN
unset_control()
update_icon()
@@ -96,7 +96,7 @@
S.forceMove(loc)
S.give_glass(stat & BROKEN)
else
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
new /obj/item/shard(src.loc)
new /obj/item/shard(src.loc)
qdel(src)
@@ -226,7 +226,7 @@
var/obj/item/stack/sheet/S = W
if(S.use(2))
glass_type = W.type
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
user.visible_message("[user] places the glass on the solar assembly.", "You place the glass on the solar assembly.")
if(tracker)
new /obj/machinery/power/tracker(get_turf(src), src)
@@ -438,15 +438,15 @@
switch(damage_type)
if(BRUTE)
if(stat & BROKEN)
- playsound(src.loc, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1)
+ playsound(src.loc, 'sound/effects/hit_on_shattered_glass.ogg', 70, TRUE)
else
- playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
+ playsound(src.loc, 'sound/effects/glasshit.ogg', 75, TRUE)
if(BURN)
- playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
+ playsound(src.loc, 'sound/items/welder.ogg', 100, TRUE)
/obj/machinery/power/solar_control/obj_break(damage_flag)
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
- playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(loc, 'sound/effects/glassbr3.ogg', 100, TRUE)
stat |= BROKEN
update_icon()
diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm
index e61d4dc0a56..5d7d65880b0 100644
--- a/code/modules/power/supermatter/supermatter.dm
+++ b/code/modules/power/supermatter/supermatter.dm
@@ -460,7 +460,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if(power > POWER_PENALTY_THRESHOLD || damage > damage_penalty_point)
if(power > POWER_PENALTY_THRESHOLD)
- playsound(src.loc, 'sound/weapons/emitter2.ogg', 100, 1, extrarange = 10)
+ playsound(src.loc, 'sound/weapons/emitter2.ogg', 100, TRUE, extrarange = 10)
supermatter_zap(src, 5, min(power*2, 20000))
supermatter_zap(src, 5, min(power*2, 20000))
if(power > SEVERE_POWER_PENALTY_THRESHOLD)
@@ -468,7 +468,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if(power > CRITICAL_POWER_PENALTY_THRESHOLD)
supermatter_zap(src, 5, min(power*2, 20000))
else if (damage > damage_penalty_point && prob(20))
- playsound(src.loc, 'sound/weapons/emitter2.ogg', 100, 1, extrarange = 10)
+ playsound(src.loc, 'sound/weapons/emitter2.ogg', 100, TRUE, extrarange = 10)
supermatter_zap(src, 5, CLAMP(power*2, 4000, 20000))
if(prob(15) && power > POWER_PENALTY_THRESHOLD)
@@ -542,7 +542,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
/obj/machinery/power/supermatter_crystal/blob_act(obj/structure/blob/B)
if(B && !isspaceturf(loc)) //does nothing in space
- playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, TRUE)
damage += B.obj_integrity * 0.5 //take damage equal to 50% of remaining blob health before it tried to eat us
if(B.obj_integrity > 100)
B.visible_message("\The [B] strikes at \the [src] and flinches away!",\
@@ -603,7 +603,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
cause = "contact"
nom.visible_message(vis_msg, mob_msg, "You hear an unearthly noise as a wave of heat washes over you.")
investigate_log("has been attacked ([cause]) by [key_name(nom)]", INVESTIGATE_SUPERMATTER)
- playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, TRUE)
Consume(nom)
/obj/machinery/power/supermatter_crystal/attackby(obj/item/W, mob/living/user, params)
@@ -622,13 +622,13 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
dust_arm.dismember()
user.visible_message("The [W] flashes out of existence on contact with \the [src], resonating with a horrible sound...",\
"Oops! The [W] flashes out of existence on contact with \the [src], taking your arm with it! That was clumsy of you!")
- playsound(src, 'sound/effects/supermatter.ogg', 150, 1)
+ playsound(src, 'sound/effects/supermatter.ogg', 150, TRUE)
Consume(dust_arm)
qdel(W)
return
if(cig.lit || user.a_intent != INTENT_HELP)
user.visible_message("A hideous sound echoes as [W] is ashed out on contact with \the [src]. That didn't seem like a good idea...")
- playsound(src, 'sound/effects/supermatter.ogg', 150, 1)
+ playsound(src, 'sound/effects/supermatter.ogg', 150, TRUE)
Consume(W)
radiation_pulse(src, 150, 4)
return ..()
@@ -636,7 +636,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
cig.light()
user.visible_message("As [user] lights \their [W] on \the [src], silence fills the room...",\
"Time seems to slow to a crawl as you touch \the [src] with \the [W].\n\The [W] flashes alight with an eerie energy as you nonchalantly lift your hand away from \the [src]. Damn.")
- playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE)
radiation_pulse(src, 50, 3)
return
if(istype(W, /obj/item/scalpel/supermatter))
@@ -658,7 +658,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
"Everything suddenly goes silent.")
investigate_log("has been attacked ([W]) by [key_name(user)]", INVESTIGATE_SUPERMATTER)
Consume(W)
- playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, TRUE)
radiation_pulse(src, 150, 4)
@@ -679,7 +679,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
else
return
- playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, TRUE)
Consume(AM)
@@ -757,7 +757,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
icon_state = "darkmatter"
/obj/machinery/power/supermatter_crystal/proc/supermatter_pull(turf/center, pull_range = 10)
- playsound(src.loc, 'sound/weapons/marauder.ogg', 100, 1, extrarange = 7)
+ playsound(src.loc, 'sound/weapons/marauder.ogg', 100, TRUE, extrarange = 7)
for(var/atom/movable/P in orange(pull_range,center))
if(P.anchored || P.move_resist >= MOVE_FORCE_EXTREMELY_STRONG) //move resist memes.
return
diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm
index 4749265e4b2..a1c11b9dca0 100644
--- a/code/modules/power/terminal.dm
+++ b/code/modules/power/terminal.dm
@@ -63,7 +63,7 @@
user.visible_message("[user.name] dismantles the power terminal from [master].",
"You begin to cut the cables...")
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
if(I.use_tool(src, user, 50))
if(master && !master.can_terminal_dismantle())
return
diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm
index fe043c02347..a65b9b46f41 100644
--- a/code/modules/power/tesla/coil.dm
+++ b/code/modules/power/tesla/coil.dm
@@ -86,7 +86,7 @@
var/power_produced = powernet ? power / power_loss : power
add_avail(power_produced*input_power_multiplier)
flick("coilhit", src)
- playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, 1, extrarange = 5)
+ playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, TRUE, extrarange = 5)
tesla_zap(src, 5, power_produced, tesla_flags, shocked_targets)
var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_ENG)
if(D)
@@ -106,7 +106,7 @@
coeff = max(coeff, 10)
var/power = (powernet.avail/2)
add_load(power)
- playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, 1, extrarange = 5)
+ playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, TRUE, extrarange = 5)
tesla_zap(src, 10, power/(coeff/2), tesla_flags)
tesla_buckle_check(power/(coeff/2))
@@ -124,7 +124,7 @@
var/power_produced = powernet ? power / power_loss : power
add_avail(power_produced*input_power_multiplier)
flick("rpcoilhit", src)
- playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, 1, extrarange = 5)
+ playsound(src.loc, 'sound/magic/lightningshock.ogg', 100, TRUE, extrarange = 5)
tesla_zap(src, 5, power_produced, tesla_flags, shocked_things)
var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_ENG)
if(D)
diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm
index 5596b64b10f..d961f3dfd50 100644
--- a/code/modules/power/tesla/energy_ball.dm
+++ b/code/modules/power/tesla/energy_ball.dm
@@ -55,7 +55,7 @@
move_the_basket_ball(4 + orbiting_balls.len * 1.5)
- playsound(src.loc, 'sound/magic/lightningbolt.ogg', 100, 1, extrarange = 30)
+ playsound(src.loc, 'sound/magic/lightningbolt.ogg', 100, TRUE, extrarange = 30)
pixel_x = 0
pixel_y = 0
@@ -96,7 +96,7 @@
energy_to_lower = energy_to_raise - 20
energy_to_raise = energy_to_raise * 1.25
- playsound(src.loc, 'sound/magic/lightning_chargeup.ogg', 100, 1, extrarange = 30)
+ playsound(src.loc, 'sound/magic/lightning_chargeup.ogg', 100, TRUE, extrarange = 30)
addtimer(CALLBACK(src, .proc/new_mini_ball), 100)
else if(energy < energy_to_lower && orbiting_balls.len)
diff --git a/code/modules/power/tracker.dm b/code/modules/power/tracker.dm
index f66323c6d94..950a9dd532f 100644
--- a/code/modules/power/tracker.dm
+++ b/code/modules/power/tracker.dm
@@ -60,17 +60,17 @@
control.currentdir = angle
/obj/machinery/power/tracker/crowbar_act(mob/user, obj/item/I)
- playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
+ playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE)
user.visible_message("[user] begins to take the glass off [src].", "You begin to take the glass off [src]...")
if(I.use_tool(src, user, 50))
- playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/deconstruct.ogg', 50, TRUE)
user.visible_message("[user] takes the glass off [src].", "You take the glass off [src].")
deconstruct(TRUE)
return TRUE
/obj/machinery/power/tracker/obj_break(damage_flag)
if(!(stat & BROKEN) && !(flags_1 & NODECONSTRUCT_1))
- playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1)
+ playsound(loc, 'sound/effects/glassbr3.ogg', 100, TRUE)
stat |= BROKEN
unset_control()
@@ -82,7 +82,7 @@
S.forceMove(loc)
S.give_glass(stat & BROKEN)
else
- playsound(src, "shatter", 70, 1)
+ playsound(src, "shatter", 70, TRUE)
new /obj/item/shard(src.loc)
new /obj/item/shard(src.loc)
qdel(src)
diff --git a/code/modules/projectiles/guns/ballistic/automatic.dm b/code/modules/projectiles/guns/ballistic/automatic.dm
index 8ba617cd6db..5e59f408c74 100644
--- a/code/modules/projectiles/guns/ballistic/automatic.dm
+++ b/code/modules/projectiles/guns/ballistic/automatic.dm
@@ -48,7 +48,7 @@
fire_delay = initial(fire_delay)
to_chat(user, "You switch to [burst_size]-rnd burst.")
- playsound(user, 'sound/weapons/empty.ogg', 100, 1)
+ playsound(user, 'sound/weapons/empty.ogg', 100, TRUE)
update_icon()
for(var/X in actions)
var/datum/action/A = X
@@ -173,7 +173,7 @@
burst_size = 1
fire_delay = 0
to_chat(user, "You switch to semi-auto.")
- playsound(user, 'sound/weapons/empty.ogg', 100, 1)
+ playsound(user, 'sound/weapons/empty.ogg', 100, TRUE)
update_icon()
return
@@ -243,9 +243,9 @@
cover_open = !cover_open
to_chat(user, "You [cover_open ? "open" : "close"] [src]'s cover.")
if(cover_open)
- playsound(user, 'sound/weapons/sawopen.ogg', 60, 1)
+ playsound(user, 'sound/weapons/sawopen.ogg', 60, TRUE)
else
- playsound(user, 'sound/weapons/sawopen.ogg', 60, 1)
+ playsound(user, 'sound/weapons/sawopen.ogg', 60, TRUE)
update_icon()
diff --git a/code/modules/projectiles/guns/ballistic/launchers.dm b/code/modules/projectiles/guns/ballistic/launchers.dm
index ec18e6cef44..cf16c26ba89 100644
--- a/code/modules/projectiles/guns/ballistic/launchers.dm
+++ b/code/modules/projectiles/guns/ballistic/launchers.dm
@@ -77,7 +77,7 @@
"You aim [src] at the ground to perform a bisnasty rocket jump...")
if(can_shoot())
user.notransform = TRUE
- playsound(src, 'sound/vehicles/rocketlaunch.ogg', 80, 1, 5)
+ playsound(src, 'sound/vehicles/rocketlaunch.ogg', 80, TRUE, 5)
animate(user, pixel_z = 300, time = 30, easing = LINEAR_EASING)
sleep(70)
animate(user, pixel_z = 0, time = 5, easing = LINEAR_EASING)
diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm
index 47fcb0979ad..61fd72eb5b5 100644
--- a/code/modules/projectiles/guns/energy.dm
+++ b/code/modules/projectiles/guns/energy.dm
@@ -172,7 +172,7 @@
sleep(25)
if(user.is_holding(src))
user.visible_message("[user] melts [user.p_their()] face off with [src]!")
- playsound(loc, fire_sound, 50, 1, -1)
+ playsound(loc, fire_sound, 50, TRUE, -1)
var/obj/item/ammo_casing/energy/shot = ammo_type[select]
cell.use(shot.e_cost)
update_icon()
@@ -207,19 +207,19 @@
. = ""
else if(BB.nodamage || !BB.damage || BB.damage_type == STAMINA)
user.visible_message("[user] tries to light [user.p_their()] [A.name] with [src], but it doesn't do anything. Dumbass.")
- playsound(user, E.fire_sound, 50, 1)
- playsound(user, BB.hitsound, 50, 1)
+ playsound(user, E.fire_sound, 50, TRUE)
+ playsound(user, BB.hitsound, 50, TRUE)
cell.use(E.e_cost)
. = ""
else if(BB.damage_type != BURN)
user.visible_message("[user] tries to light [user.p_their()] [A.name] with [src], but only succeeds in utterly destroying it. Dumbass.")
- playsound(user, E.fire_sound, 50, 1)
- playsound(user, BB.hitsound, 50, 1)
+ playsound(user, E.fire_sound, 50, TRUE)
+ playsound(user, BB.hitsound, 50, TRUE)
cell.use(E.e_cost)
qdel(A)
. = ""
else
- playsound(user, E.fire_sound, 50, 1)
- playsound(user, BB.hitsound, 50, 1)
+ playsound(user, E.fire_sound, 50, TRUE)
+ playsound(user, BB.hitsound, 50, TRUE)
cell.use(E.e_cost)
. = "[user] casually lights their [A.name] with [src]. Damn."
diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm
index 03ecc70f730..060ff4217f6 100644
--- a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm
+++ b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm
@@ -138,7 +138,7 @@
/obj/item/gun/energy/kinetic_accelerator/proc/reload()
cell.give(cell.maxcharge)
if(!suppressed)
- playsound(src.loc, 'sound/weapons/kenetic_reload.ogg', 60, 1)
+ playsound(src.loc, 'sound/weapons/kenetic_reload.ogg', 60, TRUE)
else
to_chat(loc, "[src] silently charges up.")
update_icon()
@@ -274,7 +274,7 @@
if(!user.transferItemToLoc(src, KA))
return
to_chat(user, "You install the modkit.")
- playsound(loc, 'sound/items/screwdriver.ogg', 100, 1)
+ playsound(loc, 'sound/items/screwdriver.ogg', 100, TRUE)
KA.modkits += src
else
to_chat(user, "The modkit you're trying to install would conflict with an already installed modkit. Use a crowbar to remove existing modkits.")
diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm
index 9674e19e0df..7d02c431fc6 100644
--- a/code/modules/projectiles/guns/magic.dm
+++ b/code/modules/projectiles/guns/magic.dm
@@ -83,7 +83,7 @@
/obj/item/gun/magic/suicide_act(mob/user)
user.visible_message("[user] is twisting [src] above [user.p_their()] head, releasing a magical blast! It looks like [user.p_theyre()] trying to commit suicide!")
- playsound(loc, fire_sound, 50, 1, -1)
+ playsound(loc, fire_sound, 50, TRUE, -1)
return (FIRELOSS)
/obj/item/gun/magic/vv_edit_var(var_name, var_value)
diff --git a/code/modules/projectiles/guns/magic/wand.dm b/code/modules/projectiles/guns/magic/wand.dm
index 6dcfbde387c..41e42430d93 100644
--- a/code/modules/projectiles/guns/magic/wand.dm
+++ b/code/modules/projectiles/guns/magic/wand.dm
@@ -49,7 +49,7 @@
/obj/item/gun/magic/wand/proc/zap_self(mob/living/user)
user.visible_message("[user] zaps [user.p_them()]self with [src].")
- playsound(user, fire_sound, 50, 1)
+ playsound(user, fire_sound, 50, TRUE)
user.log_message("zapped [user.p_them()]self with a [src]", LOG_ATTACK)
diff --git a/code/modules/projectiles/guns/misc/beam_rifle.dm b/code/modules/projectiles/guns/misc/beam_rifle.dm
index 291352ee39e..be960b6e8da 100644
--- a/code/modules/projectiles/guns/misc/beam_rifle.dm
+++ b/code/modules/projectiles/guns/misc/beam_rifle.dm
@@ -507,7 +507,7 @@
cached = get_turf(target)
if(nodamage)
return FALSE
- playsound(cached, 'sound/effects/explosion3.ogg', 100, 1)
+ playsound(cached, 'sound/effects/explosion3.ogg', 100, TRUE)
AOE(cached)
if(!QDELETED(target))
handle_impact(target)
diff --git a/code/modules/projectiles/guns/misc/blastcannon.dm b/code/modules/projectiles/guns/misc/blastcannon.dm
index 996644f40a7..8c077ab8440 100644
--- a/code/modules/projectiles/guns/misc/blastcannon.dm
+++ b/code/modules/projectiles/guns/misc/blastcannon.dm
@@ -99,7 +99,7 @@
var/medium = power * 0.5
var/light = power
user.visible_message("[user] opens [bomb] on [user.p_their()] [name] and fires a blast wave at [target]!","You open [bomb] on your [name] and fire a blast wave at [target]!")
- playsound(user, "explosion", 100, 1)
+ playsound(user, "explosion", 100, TRUE)
var/turf/starting = get_turf(user)
var/turf/targturf = get_turf(target)
message_admins("Blast wave fired from [ADMIN_VERBOSEJMP(starting)] at [ADMIN_VERBOSEJMP(targturf)] ([target.name]) by [ADMIN_LOOKUPFLW(user)] with power [heavy]/[medium]/[light].")
diff --git a/code/modules/projectiles/guns/misc/grenade_launcher.dm b/code/modules/projectiles/guns/misc/grenade_launcher.dm
index 19bf7cbb93d..bf057fdd3cd 100644
--- a/code/modules/projectiles/guns/misc/grenade_launcher.dm
+++ b/code/modules/projectiles/guns/misc/grenade_launcher.dm
@@ -42,5 +42,5 @@
log_game("[key_name(user)] fired a grenade ([F.name]) with a grenade launcher ([src]) from [AREACOORD(user)] at [target] [AREACOORD(target)].")
F.active = 1
F.icon_state = initial(F.icon_state) + "_active"
- playsound(user.loc, 'sound/weapons/armbomb.ogg', 75, 1, -3)
+ playsound(user.loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3)
addtimer(CALLBACK(F, /obj/item/grenade.proc/prime), 15)
diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm
index f6ee9e3f3e2..a9f87ed37d5 100644
--- a/code/modules/projectiles/pins.dm
+++ b/code/modules/projectiles/pins.dm
@@ -125,13 +125,13 @@
force_replace = TRUE
/obj/item/firing_pin/clown/pin_auth(mob/living/user)
- playsound(src, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)
return FALSE
// Ultra-honk pin, clown's deadly joke item.
// A gun with ultra-honk pin is useful for clown and useless for everyone else.
/obj/item/firing_pin/clown/ultra/pin_auth(mob/living/user)
- playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/bikehorn.ogg', 50, TRUE)
if(user && (!(HAS_TRAIT(user, TRAIT_CLUMSY)) && !(user.mind && user.mind.assigned_role == "Clown")))
return FALSE
return TRUE
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index b810070d6bd..f1a447645c3 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -183,12 +183,12 @@
if(limb_hit)
organ_hit_text = " in \the [parse_zone(limb_hit)]"
if(suppressed)
- playsound(loc, hitsound, 5, 1, -1)
+ playsound(loc, hitsound, 5, TRUE, -1)
to_chat(L, "You're shot by \a [src][organ_hit_text]!")
else
if(hitsound)
var/volume = vol_by_damage()
- playsound(loc, hitsound, volume, 1, -1)
+ playsound(loc, hitsound, volume, TRUE, -1)
L.visible_message("[L] is hit by \a [src][organ_hit_text]!", \
"You're hit by \a [src][organ_hit_text]!", null, COMBAT_MESSAGE_RANGE)
L.on_hit(src)
@@ -241,7 +241,7 @@
var/volume = CLAMP(vol_by_damage() + 20, 0, 100)
if(suppressed)
volume = 5
- playsound(loc, hitsound_wall, volume, 1, -1)
+ playsound(loc, hitsound_wall, volume, TRUE, -1)
return process_hit(T, select_target(T, A))
diff --git a/code/modules/projectiles/projectile/special/curse.dm b/code/modules/projectiles/projectile/special/curse.dm
index 26c6478660e..5796609212a 100644
--- a/code/modules/projectiles/projectile/special/curse.dm
+++ b/code/modules/projectiles/projectile/special/curse.dm
@@ -38,7 +38,7 @@
arm.End()
arm = null
if(CHECK_BITFIELD(movement_type, UNSTOPPABLE))
- playsound(src, 'sound/effects/curse3.ogg', 25, 1, -1)
+ playsound(src, 'sound/effects/curse3.ogg', 25, TRUE, -1)
var/turf/T = get_step(src, dir)
new/obj/effect/temp_visual/dir_setting/curse/hand(T, dir, handedness)
for(var/obj/effect/temp_visual/dir_setting/curse/grasp_portal/G in starting)
diff --git a/code/modules/projectiles/projectile/special/meteor.dm b/code/modules/projectiles/projectile/special/meteor.dm
index e513aa5fb87..c2dd715f9c1 100644
--- a/code/modules/projectiles/projectile/special/meteor.dm
+++ b/code/modules/projectiles/projectile/special/meteor.dm
@@ -12,7 +12,7 @@
forceMove(A.loc)
return
A.ex_act(EXPLODE_HEAVY)
- playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, 1)
+ playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, TRUE)
for(var/mob/M in urange(10, src))
if(!M.stat)
shake_camera(M, 3, 1)
diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm
index 434a40fa535..dfd2558ebb7 100644
--- a/code/modules/reagents/chemistry/holder.dm
+++ b/code/modules/reagents/chemistry/holder.dm
@@ -473,7 +473,7 @@
if(cached_my_atom)
if(!ismob(cached_my_atom)) // No bubbling mobs
if(selected_reaction.mix_sound)
- playsound(get_turf(cached_my_atom), selected_reaction.mix_sound, 80, 1)
+ playsound(get_turf(cached_my_atom), selected_reaction.mix_sound, 80, TRUE)
for(var/mob/M in seen)
to_chat(M, "[iconhtml] [selected_reaction.mix_message]")
diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
index a7532d2000a..dbdcf374471 100644
--- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
@@ -312,7 +312,7 @@
if(!dispensable_reagents.Find(reagent_id))
visible_message("[src] buzzes.", "You hear a faint buzz.")
to_chat(usr, "[src] cannot find [reagent]!")
- playsound(src, 'sound/machines/buzz-two.ogg', 50, 1)
+ playsound(src, 'sound/machines/buzz-two.ogg', 50, TRUE)
return
saved_recipes[name] = recording_recipe
recording_recipe = null
diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
index 364febf0bf8..bc90f450e72 100644
--- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
+++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
@@ -239,9 +239,9 @@
operating = TRUE
if(!silent)
if(!juicing)
- playsound(src, 'sound/machines/blender.ogg', 50, 1)
+ playsound(src, 'sound/machines/blender.ogg', 50, TRUE)
else
- playsound(src, 'sound/machines/juicer.ogg', 20, 1)
+ playsound(src, 'sound/machines/juicer.ogg', 20, TRUE)
addtimer(CALLBACK(src, .proc/stop_operating), time / speed)
/obj/machinery/reagentgrinder/proc/stop_operating()
diff --git a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm
index 24b3e0f7a0a..0bc02c9dcd1 100644
--- a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm
@@ -1061,7 +1061,7 @@ All effects don't start immediately, but rather get worse over time; the rate is
/datum/reagent/consumable/ethanol/syndicatebomb/on_mob_life(mob/living/carbon/M)
if(prob(5))
- playsound(get_turf(M), 'sound/effects/explosionfar.ogg', 100, 1)
+ playsound(get_turf(M), 'sound/effects/explosionfar.ogg', 100, TRUE)
return ..()
/datum/reagent/consumable/ethanol/erikasurprise
diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm
index 3e79a1147cb..c30481e45ce 100755
--- a/code/modules/reagents/chemistry/reagents/food_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm
@@ -702,7 +702,7 @@
/datum/reagent/consumable/liquidelectricity/on_mob_life(mob/living/carbon/M)
if(prob(25) && !isethereal(M))
M.electrocute_act(rand(10,15), "Liquid Electricity in their body", 1) //lmao at the newbs who eat energy bars
- playsound(M, "sparks", 50, 1)
+ playsound(M, "sparks", 50, TRUE)
return ..()
/datum/reagent/consumable/astrotame
diff --git a/code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm b/code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm
index a24274bd884..57dca06f122 100644
--- a/code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm
@@ -214,7 +214,7 @@
if(shock_timer >= rand(5,30)) //Random shocks are wildly unpredictable
shock_timer = 0
M.electrocute_act(rand(5,20), "Teslium in their body", 1, 1) //Override because it's caused from INSIDE of you
- playsound(M, "sparks", 50, 1)
+ playsound(M, "sparks", 50, TRUE)
..()
/datum/reagent/teslium/on_mob_metabolize(mob/living/carbon/human/L)
diff --git a/code/modules/reagents/chemistry/recipes.dm b/code/modules/reagents/chemistry/recipes.dm
index 4fbadcfa833..802b1c109ec 100644
--- a/code/modules/reagents/chemistry/recipes.dm
+++ b/code/modules/reagents/chemistry/recipes.dm
@@ -36,7 +36,7 @@
message_admins(message, 0, 1)
log_game("[reaction_name] chemical mob spawn reaction occuring at [AREACOORD(T)] carried by [key_name(M)] with last fingerprint [A.fingerprintslast? A.fingerprintslast : "N/A"]")
- playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1)
+ playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, TRUE)
for(var/mob/living/carbon/C in viewers(get_turf(holder.my_atom), null))
C.flash_act()
diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
index bfb50e9ccfb..4386637756d 100644
--- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
+++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm
@@ -57,7 +57,7 @@
/datum/chemical_reaction/reagent_explosion/potassium_explosion/holyboom/on_reaction(datum/reagents/holder, created_volume)
if(created_volume >= 150)
- playsound(get_turf(holder.my_atom), 'sound/effects/pray.ogg', 80, 0, round(created_volume/48))
+ playsound(get_turf(holder.my_atom), 'sound/effects/pray.ogg', 80, FALSE, round(created_volume/48))
strengthdiv = 8
for(var/mob/living/simple_animal/revenant/R in get_hearers_in_view(7,get_turf(holder.my_atom)))
var/deity
@@ -287,7 +287,7 @@
var/location = get_turf(holder.my_atom)
var/datum/effect_system/smoke_spread/chem/S = new
S.attach(location)
- playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(location, 'sound/effects/smoke.ogg', 50, TRUE, -3)
if(S)
S.set_up(holder, smoke_radius, location, 0)
S.start()
@@ -306,7 +306,7 @@
var/smoke_radius = round(sqrt(created_volume / 2), 1)
var/datum/effect_system/smoke_spread/chem/S = new
S.attach(location)
- playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(location, 'sound/effects/smoke.ogg', 50, TRUE, -3)
if(S)
S.set_up(holder, smoke_radius, location, 0)
S.start()
@@ -324,7 +324,7 @@
return
holder.remove_reagent(/datum/reagent/sonic_powder, created_volume*3)
var/location = get_turf(holder.my_atom)
- playsound(location, 'sound/effects/bang.ogg', 25, 1)
+ playsound(location, 'sound/effects/bang.ogg', 25, TRUE)
for(var/mob/living/carbon/C in get_hearers_in_view(created_volume/3, location))
C.soundbang_act(1, 100, rand(0, 5))
@@ -336,7 +336,7 @@
/datum/chemical_reaction/sonic_powder_deafen/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
- playsound(location, 'sound/effects/bang.ogg', 25, 1)
+ playsound(location, 'sound/effects/bang.ogg', 25, TRUE)
for(var/mob/living/carbon/C in get_hearers_in_view(created_volume/10, location))
C.soundbang_act(1, 100, rand(0, 5))
@@ -433,15 +433,15 @@
sleep(5)
if(created_volume >= 75)
tesla_zap(holder.my_atom, 7, T1, tesla_flags)
- playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, 1)
+ playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, TRUE)
sleep(15)
if(created_volume >= 40)
tesla_zap(holder.my_atom, 7, T2, tesla_flags)
- playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, 1)
+ playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, TRUE)
sleep(15)
if(created_volume >= 10) //10 units minimum for lightning, 40 units for secondary blast, 75 units for tertiary blast.
tesla_zap(holder.my_atom, 7, T3, tesla_flags)
- playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, 1)
+ playsound(holder.my_atom, 'sound/machines/defib_zap.ogg', 50, TRUE)
..()
/datum/chemical_reaction/reagent_explosion/teslium_lightning/heat
diff --git a/code/modules/reagents/chemistry/recipes/slime_extracts.dm b/code/modules/reagents/chemistry/recipes/slime_extracts.dm
index 0bc653c6c47..2067e0d7903 100644
--- a/code/modules/reagents/chemistry/recipes/slime_extracts.dm
+++ b/code/modules/reagents/chemistry/recipes/slime_extracts.dm
@@ -158,7 +158,7 @@
//BORK BORK BORK
var/turf/T = get_turf(holder.my_atom)
- playsound(T, 'sound/effects/phasein.ogg', 100, 1)
+ playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
for(var/mob/living/carbon/C in viewers(T, null))
C.flash_act()
diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm
index 3997334fa6b..ee24757f55f 100644
--- a/code/modules/reagents/reagent_containers/borghydro.dm
+++ b/code/modules/reagents/reagent_containers/borghydro.dm
@@ -128,7 +128,7 @@ Borg Hypospray
if(!chosen_reagent)
return
mode = chosen_reagent
- playsound(loc, 'sound/effects/pop.ogg', 50, 0)
+ playsound(loc, 'sound/effects/pop.ogg', 50, FALSE)
var/datum/reagent/R = GLOB.chemical_reagents_list[reagent_ids[mode]]
to_chat(user, "[src] is now dispensing '[R.name]'.")
return
@@ -375,4 +375,4 @@ to the arm are passed onto a stored beaker, if one exists. */
return
. = ..()
-#undef C2NAMEREAGENT
\ No newline at end of file
+#undef C2NAMEREAGENT
diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm
index 204bd00498e..cf5202d4b36 100755
--- a/code/modules/reagents/reagent_containers/glass.dm
+++ b/code/modules/reagents/reagent_containers/glass.dm
@@ -49,7 +49,7 @@
else
to_chat(user, "You swallow a gulp of [src].")
addtimer(CALLBACK(reagents, /datum/reagents.proc/trans_to, M, 5, TRUE, TRUE, FALSE, user, FALSE, INGEST), 5)
- playsound(M.loc,'sound/items/drink.ogg', rand(10,50), 1)
+ playsound(M.loc,'sound/items/drink.ogg', rand(10,50), TRUE)
/obj/item/reagent_containers/glass/afterattack(obj/target, mob/user, proximity)
. = ..()
@@ -284,7 +284,7 @@
else
reagents.trans_to(O, 5, transfered_by = user)
to_chat(user, "You wet [O] in [src].")
- playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
+ playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
else if(isprox(O)) //This works with wooden buckets for now. Somewhat unintended, but maybe someone will add sprites for it soon(TM)
to_chat(user, "You add [O] to [src].")
qdel(O)
diff --git a/code/modules/reagents/reagent_containers/medigel.dm b/code/modules/reagents/reagent_containers/medigel.dm
index 22b7e009044..d736fbe451a 100644
--- a/code/modules/reagents/reagent_containers/medigel.dm
+++ b/code/modules/reagents/reagent_containers/medigel.dm
@@ -62,7 +62,7 @@
else
log_combat(user, M, "applied", src, reagents.log_list())
- playsound(src, 'sound/effects/spray.ogg', 30, 1, -6)
+ playsound(src, 'sound/effects/spray.ogg', 30, TRUE, -6)
reagents.trans_to(M, amount_per_transfer_from_this, transfered_by = user, method = apply_type)
return
diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm
index 30a4be22662..395ccc51c65 100644
--- a/code/modules/reagents/reagent_containers/spray.dm
+++ b/code/modules/reagents/reagent_containers/spray.dm
@@ -47,7 +47,7 @@
spray(A, user)
- playsound(src.loc, 'sound/effects/spray2.ogg', 50, 1, -6)
+ playsound(src.loc, 'sound/effects/spray2.ogg', 50, TRUE, -6)
user.changeNext_move(CLICK_CD_RANGE*2)
user.newtonian_move(get_dir(A, user))
diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm
index edd8819b0fb..728ab773351 100644
--- a/code/modules/reagents/reagent_dispenser.dm
+++ b/code/modules/reagents/reagent_dispenser.dm
@@ -100,7 +100,7 @@
return
reagents.trans_to(W, W.max_fuel, transfered_by = user)
user.visible_message("[user] refills [user.p_their()] [W.name].", "You refill [W].")
- playsound(src, 'sound/effects/refill.ogg', 50, 1)
+ playsound(src, 'sound/effects/refill.ogg', 50, TRUE)
W.update_icon()
else
user.visible_message("[user] catastrophically fails at refilling [user.p_their()] [W.name]!", "That was stupid of you.")
diff --git a/code/modules/recycling/disposal/bin.dm b/code/modules/recycling/disposal/bin.dm
index 406d53d7f84..82cc381bb68 100644
--- a/code/modules/recycling/disposal/bin.dm
+++ b/code/modules/recycling/disposal/bin.dm
@@ -187,7 +187,7 @@
flushAnimation()
sleep(10)
if(last_sound < world.time + 1)
- playsound(src, 'sound/machines/disposalflush.ogg', 50, 0, 0)
+ playsound(src, 'sound/machines/disposalflush.ogg', 50, FALSE, FALSE)
last_sound = world.time
sleep(5)
if(QDELETED(src))
@@ -219,7 +219,7 @@
var/turf/T = get_turf(src)
var/turf/target
- playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
+ playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE)
for(var/A in H)
var/atom/movable/AM = A
diff --git a/code/modules/recycling/disposal/holder.dm b/code/modules/recycling/disposal/holder.dm
index a4cddd846c5..bc0f533174c 100644
--- a/code/modules/recycling/disposal/holder.dm
+++ b/code/modules/recycling/disposal/holder.dm
@@ -118,7 +118,7 @@
return
for(var/mob/M in range(5, get_turf(src)))
M.show_message("CLONG, clong!", 2)
- playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0)
+ playsound(src.loc, 'sound/effects/clang.ogg', 50, FALSE, FALSE)
// called to vent all gas in holder to a location
/obj/structure/disposalholder/proc/vent_gas(turf/T)
diff --git a/code/modules/recycling/disposal/outlet.dm b/code/modules/recycling/disposal/outlet.dm
index 38c1a3e6cc0..7f15938ca68 100644
--- a/code/modules/recycling/disposal/outlet.dm
+++ b/code/modules/recycling/disposal/outlet.dm
@@ -43,14 +43,14 @@
flick("outlet-open", src)
if((start_eject + 30) < world.time)
start_eject = world.time
- playsound(src, 'sound/machines/warning-buzzer.ogg', 50, 0, 0)
+ playsound(src, 'sound/machines/warning-buzzer.ogg', 50, FALSE, FALSE)
addtimer(CALLBACK(src, .proc/expel_holder, H, TRUE), 20)
else
addtimer(CALLBACK(src, .proc/expel_holder, H), 20)
/obj/structure/disposaloutlet/proc/expel_holder(obj/structure/disposalholder/H, playsound=FALSE)
if(playsound)
- playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
+ playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE)
if(!H)
return
@@ -71,7 +71,7 @@
if(!I.tool_start_check(user, amount=0))
return TRUE
- playsound(src, 'sound/items/welder2.ogg', 100, 1)
+ playsound(src, 'sound/items/welder2.ogg', 100, TRUE)
to_chat(user, "You start slicing the floorweld off [src]...")
if(I.use_tool(src, user, 20))
to_chat(user, "You slice the floorweld off [src].")
diff --git a/code/modules/recycling/disposal/pipe.dm b/code/modules/recycling/disposal/pipe.dm
index a3e9e9cc317..b107f7f5d5f 100644
--- a/code/modules/recycling/disposal/pipe.dm
+++ b/code/modules/recycling/disposal/pipe.dm
@@ -114,7 +114,7 @@
else if(floorturf)
target = get_offset_target_turf(T, rand(5)-rand(5), rand(5)-rand(5))
- playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
+ playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE)
for(var/A in H)
var/atom/movable/AM = A
AM.forceMove(get_turf(src))
diff --git a/code/modules/recycling/disposal/pipe_sorting.dm b/code/modules/recycling/disposal/pipe_sorting.dm
index e262cc32f21..496c420e933 100644
--- a/code/modules/recycling/disposal/pipe_sorting.dm
+++ b/code/modules/recycling/disposal/pipe_sorting.dm
@@ -68,7 +68,7 @@
else
sortTypes |= O.currTag
to_chat(user, "Added \"[GLOB.TAGGERLOCATIONS[O.currTag]]\" filter.")
- playsound(src, 'sound/machines/twobeep_high.ogg', 100, 1)
+ playsound(src, 'sound/machines/twobeep_high.ogg', 100, TRUE)
else
return ..()
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index 11ad6f0be7d..826e3ea7af6 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -9,7 +9,7 @@
var/sortTag = 0
/obj/structure/bigDelivery/interact(mob/user)
- playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, TRUE)
qdel(src)
/obj/structure/bigDelivery/Destroy()
@@ -30,7 +30,7 @@
var/tag = uppertext(GLOB.TAGGERLOCATIONS[O.currTag])
to_chat(user, "*[tag]*")
sortTag = O.currTag
- playsound(loc, 'sound/machines/twobeep_high.ogg', 100, 1)
+ playsound(loc, 'sound/machines/twobeep_high.ogg', 100, TRUE)
else if(istype(W, /obj/item/pen))
if(!user.is_literate())
@@ -67,7 +67,7 @@
return
to_chat(user, "You successfully removed [O]'s wrapping !")
O.forceMove(loc)
- playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, TRUE)
qdel(src)
else
if(user.loc == src) //so we don't get the message if we resisted multiple times and succeeded.
@@ -92,7 +92,7 @@
for(var/X in contents)
var/atom/movable/AM = X
user.put_in_hands(AM)
- playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, TRUE)
qdel(src)
/obj/item/smallDelivery/attack_self_tk(mob/user)
@@ -106,7 +106,7 @@
for(var/X in contents)
var/atom/movable/AM = X
AM.forceMove(src.loc)
- playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
+ playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, TRUE)
qdel(src)
/obj/item/smallDelivery/attackby(obj/item/W, mob/user, params)
@@ -117,7 +117,7 @@
var/tag = uppertext(GLOB.TAGGERLOCATIONS[O.currTag])
to_chat(user, "*[tag]*")
sortTag = O.currTag
- playsound(loc, 'sound/machines/twobeep_high.ogg', 100, 1)
+ playsound(loc, 'sound/machines/twobeep_high.ogg', 100, TRUE)
else if(istype(W, /obj/item/pen))
if(!user.is_literate())
@@ -166,7 +166,7 @@
to_chat(user, "*HELL*")//lizard nerf
else
to_chat(user, "*HEAVEN*")
- playsound(src, 'sound/machines/twobeep_high.ogg', 100, 1)
+ playsound(src, 'sound/machines/twobeep_high.ogg', 100, TRUE)
return BRUTELOSS
/obj/item/destTagger/proc/openwindow(mob/user)
diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm
index bafd65a5b0c..018fae01a2a 100644
--- a/code/modules/research/experimentor.dm
+++ b/code/modules/research/experimentor.dm
@@ -315,7 +315,7 @@
investigate_log("Experimentor has released [chosenchem] smoke.", INVESTIGATE_EXPERIMENTOR)
var/datum/effect_system/smoke_spread/chem/smoke = new
smoke.set_up(R, 0, src, silent = TRUE)
- playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/smoke.ogg', 50, TRUE, -3)
smoke.start()
qdel(R)
ejectItem(TRUE)
@@ -327,7 +327,7 @@
R.add_reagent(chosenchem , 50)
var/datum/effect_system/smoke_spread/chem/smoke = new
smoke.set_up(R, 0, src, silent = TRUE)
- playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/smoke.ogg', 50, TRUE, -3)
smoke.start()
qdel(R)
ejectItem(TRUE)
@@ -346,7 +346,7 @@
visible_message("[src] raises [exp_on]'s temperature.")
if(prob(EFFECT_PROB_LOW) && criticalReaction)
visible_message("[src]'s emergency coolant system gives off a small ding!")
- playsound(src, 'sound/machines/ding.ogg', 50, 1)
+ playsound(src, 'sound/machines/ding.ogg', 50, TRUE)
var/obj/item/reagent_containers/food/drinks/coffee/C = new /obj/item/reagent_containers/food/drinks/coffee(get_turf(pick(oview(1,src))))
chosenchem = pick(/datum/reagent/toxin/plasma,/datum/reagent/consumable/capsaicin,/datum/reagent/consumable/ethanol)
C.reagents.remove_any(25)
@@ -396,7 +396,7 @@
if(prob(EFFECT_PROB_LOW) && criticalReaction)
visible_message("[src]'s emergency coolant system gives off a small ding!")
var/obj/item/reagent_containers/food/drinks/coffee/C = new /obj/item/reagent_containers/food/drinks/coffee(get_turf(pick(oview(1,src))))
- playsound(src, 'sound/machines/ding.ogg', 50, 1) //Ding! Your death coffee is ready!
+ playsound(src, 'sound/machines/ding.ogg', 50, TRUE) //Ding! Your death coffee is ready!
chosenchem = pick(/datum/reagent/uranium,/datum/reagent/consumable/frostoil,/datum/reagent/medicine/ephedrine)
C.reagents.remove_any(25)
C.reagents.add_reagent(chosenchem , 50)
@@ -411,7 +411,7 @@
investigate_log("Experimentor has released frostoil gas.", INVESTIGATE_EXPERIMENTOR)
var/datum/effect_system/smoke_spread/chem/smoke = new
smoke.set_up(R, 0, src, silent = TRUE)
- playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/smoke.ogg', 50, TRUE, -3)
smoke.start()
qdel(R)
ejectItem(TRUE)
@@ -447,14 +447,14 @@
new /obj/item/stack/sheet/plasteel(get_turf(pick(oview(1,src))))
else if(prob(EFFECT_PROB_VERYLOW-badThingCoeff))
visible_message("[src]'s crusher goes way too many levels too high, crushing right through space-time!")
- playsound(src, 'sound/effects/supermatter.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE, -3)
investigate_log("Experimentor has triggered the 'throw things' reaction.", INVESTIGATE_EXPERIMENTOR)
for(var/atom/movable/AM in oview(7,src))
if(!AM.anchored)
AM.throw_at(src,10,1)
else if(prob(EFFECT_PROB_LOW-badThingCoeff))
visible_message("[src]'s crusher goes one level too high, crushing right into space-time!")
- playsound(src, 'sound/effects/supermatter.ogg', 50, 1, -3)
+ playsound(src, 'sound/effects/supermatter.ogg', 50, TRUE, -3)
investigate_log("Experimentor has triggered the 'minor throw things' reaction.", INVESTIGATE_EXPERIMENTOR)
var/list/throwAt = list()
for(var/atom/movable/AM in oview(7,src))
@@ -598,19 +598,19 @@
smoke.start()
/obj/item/relic/proc/corgicannon(mob/user)
- playsound(src, "sparks", rand(25,50), 1)
+ playsound(src, "sparks", rand(25,50), TRUE)
var/mob/living/simple_animal/pet/dog/corgi/C = new/mob/living/simple_animal/pet/dog/corgi(get_turf(user))
C.throw_at(pick(oview(10,user)), 10, rand(3,8), callback = CALLBACK(src, .proc/throwSmoke, C))
warn_admins(user, "Corgi Cannon", 0)
/obj/item/relic/proc/clean(mob/user)
- playsound(src, "sparks", rand(25,50), 1)
+ playsound(src, "sparks", rand(25,50), TRUE)
var/obj/item/grenade/chem_grenade/cleaner/CL = new/obj/item/grenade/chem_grenade/cleaner(get_turf(user))
CL.prime()
warn_admins(user, "Smoke", 0)
/obj/item/relic/proc/flash(mob/user)
- playsound(src, "sparks", rand(25,50), 1)
+ playsound(src, "sparks", rand(25,50), TRUE)
var/obj/item/grenade/flashbang/CB = new/obj/item/grenade/flashbang(user.loc)
CB.prime()
warn_admins(user, "Flash")
diff --git a/code/modules/research/nanites/nanite_chamber_computer.dm b/code/modules/research/nanites/nanite_chamber_computer.dm
index 8f18eb6c296..68036f511f0 100644
--- a/code/modules/research/nanites/nanite_chamber_computer.dm
+++ b/code/modules/research/nanites/nanite_chamber_computer.dm
@@ -19,7 +19,7 @@
eject(user)
if(user.transferItemToLoc(N, src))
to_chat(user, "You insert [N] into [src]")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
disk = N
else
..()
@@ -122,21 +122,21 @@
var/threshold = input("Set safety threshold (0-500):", name, null) as null|num
if(!isnull(threshold))
chamber.set_safety(CLAMP(round(threshold, 1),0,500))
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
chamber.occupant.investigate_log("'s nanites' safety threshold was set to [threshold] by [key_name(usr)] via [src] at [AREACOORD(src)].", INVESTIGATE_NANITES)
. = TRUE
if("set_cloud")
var/cloud_id = input("Set cloud ID (1-100, 0 to disable):", name, null) as null|num
if(!isnull(cloud_id))
chamber.set_cloud(CLAMP(round(cloud_id, 1),0,100))
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
chamber.occupant.investigate_log("'s nanites' cloud id was set to [cloud_id] by [key_name(usr)] via [src] at [AREACOORD(src)].", INVESTIGATE_NANITES)
. = TRUE
if("connect_chamber")
find_chamber()
. = TRUE
if("nanite_injection")
- playsound(src, 'sound/machines/terminal_prompt.ogg', 25, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 25, FALSE)
chamber.inject_nanites()
log_combat(usr, chamber.occupant, "injected", null, "with nanites via [src]")
chamber.occupant.investigate_log("was injected with nanites by [key_name(usr)] via [src] at [AREACOORD(src)].", INVESTIGATE_NANITES)
@@ -144,14 +144,14 @@
if("add_program")
if(!disk?.program || !chamber || !chamber.occupant)
return
- playsound(src, 'sound/machines/terminal_prompt.ogg', 25, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 25, FALSE)
chamber.install_program(disk.program)
chamber.occupant.investigate_log("had program of type [disk.program.type] installed by [key_name(usr)] via [src] at [AREACOORD(src)].", INVESTIGATE_NANITES)
. = TRUE
if("remove_program")
if(!chamber || !chamber.occupant)
return
- playsound(src, 'sound/machines/terminal_prompt.ogg', 25, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 25, FALSE)
var/list/nanite_programs = list()
SEND_SIGNAL(chamber.occupant, COMSIG_NANITE_GET_PROGRAMS, nanite_programs)
if(LAZYLEN(nanite_programs))
diff --git a/code/modules/research/nanites/nanite_cloud_controller.dm b/code/modules/research/nanites/nanite_cloud_controller.dm
index 1c8c1669d20..b647ecc34a5 100644
--- a/code/modules/research/nanites/nanite_cloud_controller.dm
+++ b/code/modules/research/nanites/nanite_cloud_controller.dm
@@ -23,7 +23,7 @@
eject(user)
if(user.transferItemToLoc(N, src))
to_chat(user, "You insert [N] into [src]")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
disk = N
else
..()
@@ -153,14 +153,14 @@
if("create_backup")
var/cloud_id = input("Choose a cloud ID (1-100):", name, null) as null|num
if(!isnull(cloud_id))
- playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 50, FALSE)
cloud_id = CLAMP(round(cloud_id, 1),1,100)
generate_backup(cloud_id, usr)
. = TRUE
if("delete_backup")
var/datum/nanite_cloud_backup/backup = get_backup(current_view)
if(backup)
- playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 50, FALSE)
qdel(backup)
investigate_log("[key_name(usr)] deleted the nanite cloud backup #[current_view]", INVESTIGATE_NANITES)
. = TRUE
@@ -168,7 +168,7 @@
if(disk && disk.program)
var/datum/nanite_cloud_backup/backup = get_backup(current_view)
if(backup)
- playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 50, FALSE)
var/datum/component/nanites/nanites = backup.nanites
nanites.add_program(null, disk.program.copy())
investigate_log("[key_name(usr)] uploaded program [disk.program.name] to cloud #[current_view]", INVESTIGATE_NANITES)
@@ -176,7 +176,7 @@
if("remove_program")
var/datum/nanite_cloud_backup/backup = get_backup(current_view)
if(backup)
- playsound(src, 'sound/machines/terminal_prompt.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 50, FALSE)
var/datum/component/nanites/nanites = backup.nanites
var/datum/nanite_program/P = nanites.programs[text2num(params["program_id"])]
investigate_log("[key_name(usr)] deleted program [P.name] from cloud #[current_view]", INVESTIGATE_NANITES)
diff --git a/code/modules/research/nanites/nanite_program_hub.dm b/code/modules/research/nanites/nanite_program_hub.dm
index 92c205fe376..cf0626f8635 100644
--- a/code/modules/research/nanites/nanite_program_hub.dm
+++ b/code/modules/research/nanites/nanite_program_hub.dm
@@ -34,7 +34,7 @@
eject(user)
if(user.transferItemToLoc(N, src))
to_chat(user, "You insert [N] into [src]")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
disk = N
else
..()
@@ -103,7 +103,7 @@
qdel(disk.program)
disk.program = new downloaded.program_type
disk.name = "[initial(disk.name)] \[[disk.program.name]\]"
- playsound(src, 'sound/machines/terminal_prompt.ogg', 25, 0)
+ playsound(src, 'sound/machines/terminal_prompt.ogg', 25, FALSE)
. = TRUE
if("set_category")
var/new_category = params["category"]
diff --git a/code/modules/research/nanites/nanite_programmer.dm b/code/modules/research/nanites/nanite_programmer.dm
index 5099949ac23..148e83feb90 100644
--- a/code/modules/research/nanites/nanite_programmer.dm
+++ b/code/modules/research/nanites/nanite_programmer.dm
@@ -19,7 +19,7 @@
eject(user)
if(user.transferItemToLoc(N, src))
to_chat(user, "You insert [N] into [src]")
- playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, 0)
+ playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
disk = N
program = N.program
else
@@ -80,7 +80,7 @@
eject(usr)
. = TRUE
if("toggle_active")
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
program.activated = !program.activated //we don't use the activation procs since we aren't in a mob
if(program.activated)
program.activation_delay = 0
@@ -88,12 +88,12 @@
if("set_code")
var/new_code = input("Set code (0000-9999):", name, null) as null|num
if(!isnull(new_code))
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
new_code = CLAMP(round(new_code, 1),0,9999)
else
return
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
var/target_code = params["target_code"]
switch(target_code)
if("activation")
@@ -107,12 +107,12 @@
. = TRUE
if("set_extra_setting")
program.set_extra_setting(usr, params["target_setting"])
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
. = TRUE
if("set_activation_delay")
var/delay = input("Set activation delay in seconds (0-1800):", name, program.activation_delay) as null|num
if(!isnull(delay))
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
delay = CLAMP(round(delay, 1),0,1800)
program.activation_delay = delay
if(delay)
@@ -121,7 +121,7 @@
if("set_timer")
var/timer = input("Set timer in seconds (10-3600):", name, program.timer) as null|num
if(!isnull(timer))
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
if(!timer == 0)
timer = CLAMP(round(timer, 1),10,3600)
program.timer = timer
@@ -129,7 +129,7 @@
if("set_timer_type")
var/new_type = input("Choose the timer effect","Timer Effect") as null|anything in list("Deactivate","Self-Delete","Trigger","Reset Activation Timer")
if(new_type)
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
switch(new_type)
if("Deactivate")
program.timer_type = NANITE_TIMER_DEACTIVATE
diff --git a/code/modules/research/nanites/nanite_programs/healing.dm b/code/modules/research/nanites/nanite_programs/healing.dm
index 5604c92f708..538646c2673 100644
--- a/code/modules/research/nanites/nanite_programs/healing.dm
+++ b/code/modules/research/nanites/nanite_programs/healing.dm
@@ -242,11 +242,11 @@
/datum/nanite_program/triggered/defib/proc/zap()
var/mob/living/carbon/C = host_mob
- playsound(C, 'sound/machines/defib_charge.ogg', 50, 0)
+ playsound(C, 'sound/machines/defib_charge.ogg', 50, FALSE)
sleep(30)
- playsound(C, 'sound/machines/defib_zap.ogg', 50, 0)
+ playsound(C, 'sound/machines/defib_zap.ogg', 50, FALSE)
if(check_revivable())
- playsound(C, 'sound/machines/defib_success.ogg', 50, 0)
+ playsound(C, 'sound/machines/defib_success.ogg', 50, FALSE)
C.set_heartattack(FALSE)
C.revive()
C.emote("gasp")
@@ -254,5 +254,5 @@
SEND_SIGNAL(C, COMSIG_LIVING_MINOR_SHOCK)
log_game("[C] has been successfully defibrillated by nanites.")
else
- playsound(C, 'sound/machines/defib_failed.ogg', 50, 0)
+ playsound(C, 'sound/machines/defib_failed.ogg', 50, FALSE)
diff --git a/code/modules/research/nanites/nanite_programs/suppression.dm b/code/modules/research/nanites/nanite_programs/suppression.dm
index e91fc0fb125..659d168802c 100644
--- a/code/modules/research/nanites/nanite_programs/suppression.dm
+++ b/code/modules/research/nanites/nanite_programs/suppression.dm
@@ -54,7 +54,7 @@
/datum/nanite_program/triggered/stun/trigger()
if(!..())
return
- playsound(host_mob, "sparks", 75, 1, -1)
+ playsound(host_mob, "sparks", 75, TRUE, -1)
host_mob.Paralyze(80)
/datum/nanite_program/pacifying
@@ -358,4 +358,4 @@
/datum/nanite_program/triggered/comm/hallucination/copy_extra_settings_to(datum/nanite_program/triggered/comm/hallucination/target)
target.hal_type = hal_type
target.hal_details = hal_details
- target.comm_code = comm_code
\ No newline at end of file
+ target.comm_code = comm_code
diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm
index fe1644e8b4e..93b71ed08da 100644
--- a/code/modules/research/rdconsole.dm
+++ b/code/modules/research/rdconsole.dm
@@ -192,7 +192,7 @@ Nothing else in the console has ID requirements.
/obj/machinery/computer/rdconsole/emag_act(mob/user)
if(!(obj_flags & EMAGGED))
to_chat(user, "You disable the security protocols[locked? " and unlock the console":""].")
- playsound(src, "sparks", 75, 1)
+ playsound(src, "sparks", 75, TRUE)
obj_flags |= EMAGGED
locked = FALSE
return ..()
diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm
index 7150b655c4c..86d6b73042d 100644
--- a/code/modules/research/server.dm
+++ b/code/modules/research/server.dm
@@ -197,6 +197,6 @@
/obj/machinery/computer/rdservercontrol/emag_act(mob/user)
if(obj_flags & EMAGGED)
return
- playsound(src, "sparks", 75, 1)
+ playsound(src, "sparks", 75, TRUE)
obj_flags |= EMAGGED
to_chat(user, "You disable the security protocols.")
diff --git a/code/modules/research/stock_parts.dm b/code/modules/research/stock_parts.dm
index 26588f6450a..78a497dacf8 100644
--- a/code/modules/research/stock_parts.dm
+++ b/code/modules/research/stock_parts.dm
@@ -36,9 +36,9 @@ If you create T5+ please take a pass at gene_modder.dm [L40]. Max_values MUST fi
/obj/item/storage/part_replacer/proc/play_rped_sound()
//Plays the sound for RPED exhanging or installing parts.
if(alt_sound && prob(1))
- playsound(src, alt_sound, 40, 1)
+ playsound(src, alt_sound, 40, TRUE)
else
- playsound(src, pshoom_or_beepboopblorpzingshadashwoosh, 40, 1)
+ playsound(src, pshoom_or_beepboopblorpzingshadashwoosh, 40, TRUE)
/obj/item/storage/part_replacer/bluespace
name = "bluespace rapid part exchange device"
diff --git a/code/modules/research/xenobiology/crossbreeding/_misc.dm b/code/modules/research/xenobiology/crossbreeding/_misc.dm
index b3d35753449..56e2caef0b0 100644
--- a/code/modules/research/xenobiology/crossbreeding/_misc.dm
+++ b/code/modules/research/xenobiology/crossbreeding/_misc.dm
@@ -252,12 +252,12 @@ Slimecrossing Items
/obj/structure/ice_stasis/Initialize()
. = ..()
- playsound(src, 'sound/magic/ethereal_exit.ogg', 50, 1)
+ playsound(src, 'sound/magic/ethereal_exit.ogg', 50, TRUE)
/obj/structure/ice_stasis/Destroy()
for(var/atom/movable/M in contents)
M.forceMove(loc)
- playsound(src, 'sound/effects/glassbr3.ogg', 50, 1)
+ playsound(src, 'sound/effects/glassbr3.ogg', 50, TRUE)
return ..()
//Gold capture device - Chilling Gold
diff --git a/code/modules/research/xenobiology/crossbreeding/burning.dm b/code/modules/research/xenobiology/crossbreeding/burning.dm
index 7895a43ef0d..ce38f338bc6 100644
--- a/code/modules/research/xenobiology/crossbreeding/burning.dm
+++ b/code/modules/research/xenobiology/crossbreeding/burning.dm
@@ -19,8 +19,8 @@ Burning extracts:
return
reagents.remove_reagent(/datum/reagent/toxin/plasma,10)
to_chat(user, "You squeeze the extract, and it absorbs the plasma!")
- playsound(src, 'sound/effects/bubbles.ogg', 50, 1)
- playsound(src, 'sound/magic/fireball.ogg', 50, 1)
+ playsound(src, 'sound/effects/bubbles.ogg', 50, TRUE)
+ playsound(src, 'sound/magic/fireball.ogg', 50, TRUE)
do_effect(user)
/obj/item/slimecross/burning/proc/do_effect(mob/user) //If, for whatever reason, you don't want to delete the extract, don't do ..()
@@ -83,7 +83,7 @@ Burning extracts:
/obj/item/slimecross/burning/metal/do_effect(mob/user)
for(var/turf/closed/wall/W in range(1,get_turf(user)))
W.dismantle_wall(1)
- playsound(W, 'sound/effects/break_stone.ogg', 50, 1)
+ playsound(W, 'sound/effects/break_stone.ogg', 50, TRUE)
user.visible_message("[src] pulses violently, and shatters the walls around it!")
..()
@@ -93,7 +93,7 @@ Burning extracts:
/obj/item/slimecross/burning/yellow/do_effect(mob/user)
user.visible_message("[src] explodes into an electrical field!")
- playsound(get_turf(src), 'sound/weapons/zapbang.ogg', 50, 1)
+ playsound(get_turf(src), 'sound/weapons/zapbang.ogg', 50, TRUE)
for(var/mob/living/M in range(4,get_turf(user)))
if(M != user)
var/mob/living/carbon/C = M
@@ -156,7 +156,7 @@ Burning extracts:
if(L != user)
do_teleport(L, get_turf(L), 6, asoundin = 'sound/effects/phasein.ogg', channel = TELEPORT_CHANNEL_BLUESPACE) //Somewhere between the effectiveness of fake and real BS crystal
new /obj/effect/particle_effect/sparks(get_turf(L))
- playsound(get_turf(L), "sparks", 50, 1)
+ playsound(get_turf(L), "sparks", 50, TRUE)
..()
/obj/item/slimecross/burning/sepia
@@ -264,7 +264,7 @@ Burning extracts:
/obj/item/slimecross/burning/oil/proc/boom()
var/turf/T = get_turf(src)
- playsound(T, 'sound/effects/explosion2.ogg', 200, 1)
+ playsound(T, 'sound/effects/explosion2.ogg', 200, TRUE)
for(var/mob/living/M in range(2, T))
new /obj/effect/temp_visual/explosion(get_turf(M))
M.ex_act(EXPLODE_HEAVY)
diff --git a/code/modules/research/xenobiology/crossbreeding/charged.dm b/code/modules/research/xenobiology/crossbreeding/charged.dm
index b071d546672..8a29008432e 100644
--- a/code/modules/research/xenobiology/crossbreeding/charged.dm
+++ b/code/modules/research/xenobiology/crossbreeding/charged.dm
@@ -20,8 +20,8 @@ Charged extracts:
return
reagents.remove_reagent(/datum/reagent/toxin/plasma,10)
to_chat(user, "You squeeze the extract, and it absorbs the plasma!")
- playsound(src, 'sound/effects/bubbles.ogg', 50, 1)
- playsound(src, 'sound/effects/light_flicker.ogg', 50, 1)
+ playsound(src, 'sound/effects/bubbles.ogg', 50, TRUE)
+ playsound(src, 'sound/effects/light_flicker.ogg', 50, TRUE)
do_effect(user)
/obj/item/slimecross/charged/proc/do_effect(mob/user) //If, for whatever reason, you don't want to delete the extract, don't do ..()
@@ -203,7 +203,7 @@ Charged extracts:
/obj/item/slimecross/charged/gold/process()
visible_message("[src] lets off a spark, and produces a living creature!")
new /obj/effect/particle_effect/sparks(get_turf(src))
- playsound(get_turf(src), "sparks", 50, 1)
+ playsound(get_turf(src), "sparks", 50, TRUE)
create_random_mob(get_turf(src), HOSTILE_SPAWN)
spawned++
if(spawned >= max_spawn)
diff --git a/code/modules/research/xenobiology/crossbreeding/chilling.dm b/code/modules/research/xenobiology/crossbreeding/chilling.dm
index 4272a01e19e..1f1aafb804c 100644
--- a/code/modules/research/xenobiology/crossbreeding/chilling.dm
+++ b/code/modules/research/xenobiology/crossbreeding/chilling.dm
@@ -19,8 +19,8 @@ Chilling extracts:
return
reagents.remove_reagent(/datum/reagent/toxin/plasma,10)
to_chat(user, "You squeeze the extract, and it absorbs the plasma!")
- playsound(src, 'sound/effects/bubbles.ogg', 50, 1)
- playsound(src, 'sound/effects/glassbr1.ogg', 50, 1)
+ playsound(src, 'sound/effects/bubbles.ogg', 50, TRUE)
+ playsound(src, 'sound/effects/glassbr1.ogg', 50, TRUE)
do_effect(user)
/obj/item/slimecross/chilling/proc/do_effect(mob/user) //If, for whatever reason, you don't want to delete the extract, don't do ..()
diff --git a/code/modules/research/xenobiology/crossbreeding/consuming.dm b/code/modules/research/xenobiology/crossbreeding/consuming.dm
index 6cc76b4734f..742ea869872 100644
--- a/code/modules/research/xenobiology/crossbreeding/consuming.dm
+++ b/code/modules/research/xenobiology/crossbreeding/consuming.dm
@@ -25,13 +25,13 @@ Consuming extracts:
nutriment_eaten += N.volume
to_chat(user, "[src] opens up and swallows [O] whole!")
qdel(O)
- playsound(src, 'sound/items/eatfood.ogg', 20, 1)
+ playsound(src, 'sound/items/eatfood.ogg', 20, TRUE)
else
to_chat(user, "[src] burbles unhappily at the offering.")
if(nutriment_eaten >= nutriment_required)
nutriment_eaten = 0
user.visible_message("[src] swells up and produces a small pile of cookies!")
- playsound(src, 'sound/effects/splat.ogg', 40, 1)
+ playsound(src, 'sound/effects/splat.ogg', 40, TRUE)
last_produced = world.time
for(var/i in 1 to cookies)
var/obj/item/S = spawncookie()
@@ -74,7 +74,7 @@ Consuming extracts:
if(!istype(H) || !HAS_TRAIT(H, TRAIT_AGEUSIA))
to_chat(M, "Tastes like [taste].")
- playsound(get_turf(M), 'sound/items/eatfood.ogg', 20, 1)
+ playsound(get_turf(M), 'sound/items/eatfood.ogg', 20, TRUE)
if(nutrition)
M.reagents.add_reagent(/datum/reagent/consumable/nutriment,nutrition)
do_effect(M, user)
@@ -247,7 +247,7 @@ Consuming extracts:
if(target)
do_teleport(M, target, 0, asoundin = 'sound/effects/phasein.ogg', channel = TELEPORT_CHANNEL_BLUESPACE)
new /obj/effect/particle_effect/sparks(get_turf(M))
- playsound(get_turf(M), "sparks", 50, 1)
+ playsound(get_turf(M), "sparks", 50, TRUE)
/obj/item/slimecross/consuming/sepia
colour = "sepia"
@@ -336,7 +336,7 @@ Consuming extracts:
/obj/item/slime_cookie/red/do_effect(mob/living/M, mob/user)
new /obj/effect/decal/cleanable/blood(get_turf(M))
- playsound(get_turf(M), 'sound/effects/splat.ogg', 10, 1)
+ playsound(get_turf(M), 'sound/effects/splat.ogg', 10, TRUE)
if(iscarbon(M))
var/mob/living/carbon/C = M
C.blood_volume += 25 //Half a vampire drain.
@@ -388,7 +388,7 @@ Consuming extracts:
M.dropItemToGround(held)
var/newcoin = /obj/item/coin/gold
var/obj/item/coin/C = new newcoin(get_turf(M))
- playsound(get_turf(C), 'sound/items/coinflip.ogg', 50, 1)
+ playsound(get_turf(C), 'sound/items/coinflip.ogg', 50, TRUE)
M.put_in_hand(C)
/obj/item/slimecross/consuming/oil
diff --git a/code/modules/research/xenobiology/crossbreeding/industrial.dm b/code/modules/research/xenobiology/crossbreeding/industrial.dm
index 4e9194c6965..a727e27dcae 100644
--- a/code/modules/research/xenobiology/crossbreeding/industrial.dm
+++ b/code/modules/research/xenobiology/crossbreeding/industrial.dm
@@ -40,12 +40,12 @@ Industrial extracts:
plasmaabsorbed += 1
if(plasmaabsorbed >= plasmarequired)
- playsound(src, 'sound/effects/attackblob.ogg', 50, 1)
+ playsound(src, 'sound/effects/attackblob.ogg', 50, TRUE)
plasmaabsorbed -= plasmarequired
for(var/i = 0, i < itemamount, i++)
do_after_spawn(new itempath(get_turf(src)))
else if(IsWorking)
- playsound(src, 'sound/effects/bubbles.ogg', 5, 1)
+ playsound(src, 'sound/effects/bubbles.ogg', 5, TRUE)
if(IsWorking)
icon_state = "industrial"
else
diff --git a/code/modules/research/xenobiology/crossbreeding/prismatic.dm b/code/modules/research/xenobiology/crossbreeding/prismatic.dm
index c9447b2633b..6b4e058c866 100644
--- a/code/modules/research/xenobiology/crossbreeding/prismatic.dm
+++ b/code/modules/research/xenobiology/crossbreeding/prismatic.dm
@@ -16,7 +16,7 @@ Prismatic extracts:
if(!istype(target) || isspaceturf(target))
return
target.add_atom_colour(paintcolor, WASHABLE_COLOUR_PRIORITY)
- playsound(target, 'sound/effects/slosh.ogg', 20, 1)
+ playsound(target, 'sound/effects/slosh.ogg', 20, TRUE)
/obj/item/slimecross/prismatic/grey/
colour = "grey"
@@ -28,7 +28,7 @@ Prismatic extracts:
return
if(istype(target) && target.color != initial(target.color))
target.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
- playsound(target, 'sound/effects/slosh.ogg', 20, 1)
+ playsound(target, 'sound/effects/slosh.ogg', 20, TRUE)
/obj/item/slimecross/prismatic/orange
paintcolor = "#FFA500"
diff --git a/code/modules/research/xenobiology/crossbreeding/regenerative.dm b/code/modules/research/xenobiology/crossbreeding/regenerative.dm
index e1d6f36485c..022fad28f04 100644
--- a/code/modules/research/xenobiology/crossbreeding/regenerative.dm
+++ b/code/modules/research/xenobiology/crossbreeding/regenerative.dm
@@ -31,7 +31,7 @@ Regenerative extracts:
core_effect_before(H, user)
H.revive(full_heal = 1)
core_effect(H, user)
- playsound(target, 'sound/effects/splat.ogg', 40, 1)
+ playsound(target, 'sound/effects/splat.ogg', 40, TRUE)
qdel(src)
/obj/item/slimecross/regenerative/grey
@@ -217,7 +217,7 @@ Regenerative extracts:
/obj/item/slimecross/regenerative/gold/core_effect(mob/living/target, mob/user)
var/newcoin = pick(/obj/item/coin/silver, /obj/item/coin/iron, /obj/item/coin/gold, /obj/item/coin/diamond, /obj/item/coin/plasma, /obj/item/coin/uranium)
var/obj/item/coin/C = new newcoin(target.loc)
- playsound(C, 'sound/items/coinflip.ogg', 50, 1)
+ playsound(C, 'sound/items/coinflip.ogg', 50, TRUE)
target.put_in_hand(C)
/obj/item/slimecross/regenerative/oil
@@ -225,7 +225,7 @@ Regenerative extracts:
effect_desc = "Fully heals the target and flashes everyone in sight."
/obj/item/slimecross/regenerative/oil/core_effect(mob/living/target, mob/user)
- playsound(src, 'sound/weapons/flash.ogg', 100, 1)
+ playsound(src, 'sound/weapons/flash.ogg', 100, TRUE)
for(var/mob/living/L in view(user,7))
L.flash_act()
diff --git a/code/modules/research/xenobiology/crossbreeding/reproductive.dm b/code/modules/research/xenobiology/crossbreeding/reproductive.dm
index be66ed02d70..f51c5a27117 100644
--- a/code/modules/research/xenobiology/crossbreeding/reproductive.dm
+++ b/code/modules/research/xenobiology/crossbreeding/reproductive.dm
@@ -32,7 +32,7 @@ Reproductive extracts:
if(cubes_eaten >= 3)
var/cores = rand(1,4)
visible_message("[src] briefly swells to a massive size, and expels [cores] extract[cores > 1 ? "s":""]!")
- playsound(src, 'sound/effects/splat.ogg', 40, 1)
+ playsound(src, 'sound/effects/splat.ogg', 40, TRUE)
last_produce = world.time
for(var/i = 0, i < cores, i++)
new extract_type(get_turf(loc))
@@ -42,7 +42,7 @@ Reproductive extracts:
qdel(monkeycube)
cubes_eaten++
to_chat(user, "You feed [monkeycube] to [src], and it pulses gently.")
- playsound(src, 'sound/items/eatfood.ogg', 20, 1)
+ playsound(src, 'sound/items/eatfood.ogg', 20, TRUE)
/obj/item/slimecross/reproductive/grey
extract_type = /obj/item/slime_extract/grey
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index 86ab41919b7..584d7797348 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -69,7 +69,7 @@
M.applied++
qdel(src)
to_chat(user, "You feed the slime [src], [M.applied == 1 ? "starting to mutate its core." : "further mutating its core."]")
- playsound(M, 'sound/effects/attackblob.ogg', 50, 1)
+ playsound(M, 'sound/effects/attackblob.ogg', 50, TRUE)
if(M.applied >= SLIME_EXTRACT_CROSSING_REQUIRED)
M.spawn_corecross()
@@ -86,14 +86,14 @@
var/obj/item/reagent_containers/food/snacks/monkeycube/M = new
if(!user.put_in_active_hand(M))
M.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
to_chat(user, "You spit out a monkey cube.")
return 120
if(SLIME_ACTIVATE_MAJOR)
to_chat(user, "Your [name] starts pulsing...")
if(do_after(user, 40, target = user))
var/mob/living/simple_animal/slime/S = new(get_turf(user), "grey")
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
to_chat(user, "You spit out [S].")
return 350
else
@@ -112,7 +112,7 @@
if(do_after(user, 40, target = user))
var/mob/living/simple_animal/S = create_random_mob(user.drop_location(), FRIENDLY_SPAWN)
S.faction |= "neutral"
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [S]!", "You spit out [S]!")
return 300
@@ -124,7 +124,7 @@
S.faction |= "neutral"
else
S.faction |= "slime"
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [S]!", "You spit out [S]!")
return 600
@@ -141,7 +141,7 @@
var/obj/O = new food_type
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 200
if(SLIME_ACTIVATE_MAJOR)
@@ -149,7 +149,7 @@
var/obj/O = new drink_type
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 200
@@ -165,7 +165,7 @@
var/obj/item/stack/sheet/glass/O = new(null, 5)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
@@ -173,7 +173,7 @@
var/obj/item/stack/sheet/metal/O = new(null, 5)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 200
@@ -208,7 +208,7 @@
var/obj/item/stack/sheet/mineral/plasma/O = new(null, 1)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
@@ -393,7 +393,7 @@
var/obj/item/slimepotion/slime/renaming/O = new(null, 1)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
@@ -401,7 +401,7 @@
var/obj/item/slimepotion/slime/sentience/O = new(null, 1)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 450
@@ -436,7 +436,7 @@
switch(activation_type)
if(SLIME_ACTIVATE_MINOR)
to_chat(user, "You vomit slippery oil.")
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
new /obj/effect/decal/cleanable/oil/slippery(get_turf(user))
return 450
@@ -527,7 +527,7 @@
var/obj/item/O = new chosen(null)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
@@ -536,7 +536,7 @@
var/obj/item/O = new chosen(null)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 250
@@ -572,7 +572,7 @@
var/obj/item/camera/O = new(null, 1)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
@@ -602,7 +602,7 @@
var/obj/item/O = new chosen(null)
if(!user.put_in_active_hand(O))
O.forceMove(user.drop_location())
- playsound(user, 'sound/effects/splat.ogg', 50, 1)
+ playsound(user, 'sound/effects/splat.ogg', 50, TRUE)
user.visible_message("[user] spits out [O]!", "You spit out [O]!")
return 150
diff --git a/code/modules/ruins/objects_and_mobs/ash_walker_den.dm b/code/modules/ruins/objects_and_mobs/ash_walker_den.dm
index 1dfa014e4d8..dc2900297c5 100644
--- a/code/modules/ruins/objects_and_mobs/ash_walker_den.dm
+++ b/code/modules/ruins/objects_and_mobs/ash_walker_den.dm
@@ -39,7 +39,7 @@
for(var/mob/living/H in view(src, 1)) //Only for corpse right next to/on same tile
if(H.stat)
visible_message("Serrated tendrils eagerly pull [H] to [src], tearing the body apart as its blood seeps over the eggs.")
- playsound(get_turf(src),'sound/magic/demon_consume.ogg', 100, 1)
+ playsound(get_turf(src),'sound/magic/demon_consume.ogg', 100, TRUE)
for(var/obj/item/W in H)
if(!H.dropItemToGround(W))
qdel(W)
diff --git a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm
index dfcf854598b..d996ac8d0b7 100644
--- a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm
+++ b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm
@@ -161,7 +161,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate)
if(safety == "Abort" || !in_range(src, user) || !src || open || changing_openness || user.incapacitated())
return
user.visible_message("[user] knocks on [src]...", "You tentatively knock on [src]...")
- playsound(user.loc, 'sound/effects/shieldbash.ogg', 100, 1)
+ playsound(user.loc, 'sound/effects/shieldbash.ogg', 100, TRUE)
sleep(50)
return ..()
diff --git a/code/modules/ruins/objects_and_mobs/sin_ruins.dm b/code/modules/ruins/objects_and_mobs/sin_ruins.dm
index 1be7b2944e1..7467f2bff62 100644
--- a/code/modules/ruins/objects_and_mobs/sin_ruins.dm
+++ b/code/modules/ruins/objects_and_mobs/sin_ruins.dm
@@ -23,14 +23,14 @@
user.visible_message("[user] pulls [src]'s lever with a glint in [user.p_their()] eyes!", "You feel a draining as you pull the lever, but you \
know it'll be worth it.")
icon_state = "slots2"
- playsound(src, 'sound/lavaland/cursed_slot_machine.ogg', 50, 0)
+ playsound(src, 'sound/lavaland/cursed_slot_machine.ogg', 50, FALSE)
addtimer(CALLBACK(src, .proc/determine_victor, user), 50)
/obj/structure/cursed_slot_machine/proc/determine_victor(mob/living/user)
icon_state = "slots1"
obj_flags &= ~IN_USE
if(prob(win_prob))
- playsound(src, 'sound/lavaland/cursed_slot_machine_jackpot.ogg', 50, 0)
+ playsound(src, 'sound/lavaland/cursed_slot_machine_jackpot.ogg', 50, FALSE)
new/obj/structure/cursed_money(get_turf(src))
if(user)
to_chat(user, "You've hit jackpot. Laughter echoes around you as your reward appears in the machine's place.")
diff --git a/code/modules/shuttle/assault_pod.dm b/code/modules/shuttle/assault_pod.dm
index 1258b9f4b8e..54b0acbb2e8 100644
--- a/code/modules/shuttle/assault_pod.dm
+++ b/code/modules/shuttle/assault_pod.dm
@@ -13,7 +13,7 @@
/obj/docking_port/mobile/assault_pod/initiate_docking(obj/docking_port/stationary/S1)
. = ..()
if(!istype(S1, /obj/docking_port/stationary/transit))
- playsound(get_turf(src.loc), 'sound/effects/explosion1.ogg',50,1)
+ playsound(get_turf(src.loc), 'sound/effects/explosion1.ogg',50,TRUE)
diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm
index 70a1457c8be..d0a4cb28442 100644
--- a/code/modules/shuttle/navigation_computer.dm
+++ b/code/modules/shuttle/navigation_computer.dm
@@ -327,7 +327,7 @@
var/mob/camera/aiEye/remote/remote_eye = C.remote_control
var/obj/machinery/computer/camera_advanced/shuttle_docker/console = remote_eye.origin
- playsound(console, 'sound/machines/terminal_prompt_deny.ogg', 25, 0)
+ playsound(console, 'sound/machines/terminal_prompt_deny.ogg', 25, FALSE)
var/list/L = list()
for(var/V in SSshuttle.stationary)
@@ -352,18 +352,18 @@
else
L["([L.len]) [nav_beacon.name] locked"] = null
- playsound(console, 'sound/machines/terminal_prompt.ogg', 25, 0)
+ playsound(console, 'sound/machines/terminal_prompt.ogg', 25, FALSE)
var/selected = input("Choose location to jump to", "Locations", null) as null|anything in L
if(QDELETED(src) || QDELETED(target) || !isliving(target))
return
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, "terminal_type", 25, FALSE)
if(selected)
var/turf/T = get_turf(L[selected])
if(T)
- playsound(console, 'sound/machines/terminal_prompt_confirm.ogg', 25, 0)
+ playsound(console, 'sound/machines/terminal_prompt_confirm.ogg', 25, FALSE)
remote_eye.setLoc(T)
to_chat(target, "Jumped to [selected]")
C.overlay_fullscreen("flash", /obj/screen/fullscreen/flash/static)
C.clear_fullscreen("flash", 3)
else
- playsound(console, 'sound/machines/terminal_prompt_deny.ogg', 25, 0)
+ playsound(console, 'sound/machines/terminal_prompt_deny.ogg', 25, FALSE)
diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm
index ca6034f8ca6..206e73e2d9f 100644
--- a/code/modules/spells/spell.dm
+++ b/code/modules/spells/spell.dm
@@ -261,7 +261,7 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th
user.visible_message(invocation, invocation_emote_self) //same style as in mob/living/emote.dm
/obj/effect/proc_holder/spell/proc/playMagSound()
- playsound(get_turf(usr), sound,50,1)
+ playsound(get_turf(usr), sound,50,TRUE)
/obj/effect/proc_holder/spell/Initialize()
. = ..()
diff --git a/code/modules/spells/spell_types/area_teleport.dm b/code/modules/spells/spell_types/area_teleport.dm
index 55ca838c02b..cb54b833ab4 100644
--- a/code/modules/spells/spell_types/area_teleport.dm
+++ b/code/modules/spells/spell_types/area_teleport.dm
@@ -35,7 +35,7 @@
return thearea
/obj/effect/proc_holder/spell/targeted/area_teleport/cast(list/targets,area/thearea,mob/user = usr)
- playsound(get_turf(user), sound1, 50,1)
+ playsound(get_turf(user), sound1, 50,TRUE)
for(var/mob/living/target in targets)
var/list/L = list()
for(var/turf/T in get_area_turfs(thearea.type))
@@ -69,7 +69,7 @@
if(!success)
do_teleport(target, L, forceMove = TRUE, channel = TELEPORT_CHANNEL_MAGIC)
- playsound(get_turf(user), sound2, 50,1)
+ playsound(get_turf(user), sound2, 50,TRUE)
/obj/effect/proc_holder/spell/targeted/area_teleport/invocation(area/chosenarea = null,mob/living/user = usr)
if(!invocation_area || !chosenarea)
@@ -85,8 +85,8 @@
if("shout")
user.say(words, forced = "spell")
if(user.gender==MALE)
- playsound(user.loc, pick('sound/misc/null.ogg','sound/misc/null.ogg'), 100, 1)
+ playsound(user.loc, pick('sound/misc/null.ogg','sound/misc/null.ogg'), 100, TRUE)
else
- playsound(user.loc, pick('sound/misc/null.ogg','sound/misc/null.ogg'), 100, 1)
+ playsound(user.loc, pick('sound/misc/null.ogg','sound/misc/null.ogg'), 100, TRUE)
if("whisper")
user.whisper(words, forced = "spell")
diff --git a/code/modules/spells/spell_types/charge.dm b/code/modules/spells/spell_types/charge.dm
index e97d4504a8a..238fd084000 100644
--- a/code/modules/spells/spell_types/charge.dm
+++ b/code/modules/spells/spell_types/charge.dm
@@ -99,5 +99,5 @@
else if(burnt_out)
to_chat(L, "[charged_item] doesn't seem to be reacting to the spell...")
else
- playsound(get_turf(L), 'sound/magic/charge.ogg', 50, 1)
+ playsound(get_turf(L), 'sound/magic/charge.ogg', 50, TRUE)
to_chat(L, "[charged_item] suddenly feels very warm!")
diff --git a/code/modules/spells/spell_types/conjure.dm b/code/modules/spells/spell_types/conjure.dm
index 488cbaeecdc..42900f08606 100644
--- a/code/modules/spells/spell_types/conjure.dm
+++ b/code/modules/spells/spell_types/conjure.dm
@@ -16,7 +16,7 @@
var/cast_sound = 'sound/items/welder.ogg'
/obj/effect/proc_holder/spell/aoe_turf/conjure/cast(list/targets,mob/user = usr)
- playsound(get_turf(user), cast_sound, 50,1)
+ playsound(get_turf(user), cast_sound, 50,TRUE)
for(var/turf/T in targets)
if(T.density && !summon_ignore_density)
targets -= T
diff --git a/code/modules/spells/spell_types/construct_spells.dm b/code/modules/spells/spell_types/construct_spells.dm
index 44cde8211e6..43813beb7f9 100644
--- a/code/modules/spells/spell_types/construct_spells.dm
+++ b/code/modules/spells/spell_types/construct_spells.dm
@@ -26,7 +26,7 @@
action_background_icon_state = "bg_cult"
/obj/effect/proc_holder/spell/aoe_turf/area_conversion/cast(list/targets, mob/user = usr)
- playsound(get_turf(user), 'sound/items/welder.ogg', 75, 1)
+ playsound(get_turf(user), 'sound/items/welder.ogg', 75, TRUE)
for(var/turf/T in targets)
T.narsie_act(FALSE, TRUE, 100 - (get_dist(user, T) * 25))
@@ -272,7 +272,7 @@
S.add_atom_colour("#990000", FIXED_COLOUR_PRIORITY)
S.faction = list("cult")
- playsound(get_turf(S), 'sound/effects/ghost.ogg', 100, 1)
+ playsound(get_turf(S), 'sound/effects/ghost.ogg', 100, TRUE)
new /obj/effect/temp_visual/cult/sac(get_turf(S))
/obj/effect/proc_holder/spell/targeted/dominate/can_target(mob/living/target)
diff --git a/code/modules/spells/spell_types/devil.dm b/code/modules/spells/spell_types/devil.dm
index 3e71da327f0..c06987aa29f 100644
--- a/code/modules/spells/spell_types/devil.dm
+++ b/code/modules/spells/spell_types/devil.dm
@@ -144,7 +144,7 @@
dust_animation()
spawn_dust()
visible_message("[src] disappears in a flashfire!")
- playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 100, 1, -1)
+ playsound(get_turf(src), 'sound/magic/enter_blood.ogg', 100, TRUE, -1)
var/obj/effect/dummy/phased_mob/slaughter/holder = new /obj/effect/dummy/phased_mob/slaughter(loc)
ExtinguishMob()
forceMove(holder)
@@ -160,7 +160,7 @@
forceMove(drop_location())
client.eye = src
visible_message("[src] appears in a fiery blaze!")
- playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 100, 1, -1)
+ playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 100, TRUE, -1)
addtimer(CALLBACK(src, .proc/fakefireextinguish), 15, TIMER_UNIQUE)
/obj/effect/proc_holder/spell/targeted/sintouch
diff --git a/code/modules/spells/spell_types/emplosion.dm b/code/modules/spells/spell_types/emplosion.dm
index 8c45c063796..246156bff73 100644
--- a/code/modules/spells/spell_types/emplosion.dm
+++ b/code/modules/spells/spell_types/emplosion.dm
@@ -9,10 +9,10 @@
sound = 'sound/weapons/zapbang.ogg'
/obj/effect/proc_holder/spell/targeted/emplosion/cast(list/targets,mob/user = usr)
- playsound(get_turf(user), sound, 50,1)
+ playsound(get_turf(user), sound, 50,TRUE)
for(var/mob/living/target in targets)
if(target.anti_magic_check())
continue
empulse(target.loc, emp_heavy, emp_light)
- return
\ No newline at end of file
+ return
diff --git a/code/modules/spells/spell_types/ethereal_jaunt.dm b/code/modules/spells/spell_types/ethereal_jaunt.dm
index 32aa247a23f..6987e115156 100644
--- a/code/modules/spells/spell_types/ethereal_jaunt.dm
+++ b/code/modules/spells/spell_types/ethereal_jaunt.dm
@@ -18,7 +18,7 @@
action_icon_state = "jaunt"
/obj/effect/proc_holder/spell/targeted/ethereal_jaunt/cast(list/targets,mob/user = usr) //magnets, so mostly hardcoded
- playsound(get_turf(user), 'sound/magic/ethereal_enter.ogg', 50, 1, -1)
+ playsound(get_turf(user), 'sound/magic/ethereal_enter.ogg', 50, TRUE, -1)
for(var/mob/living/target in targets)
INVOKE_ASYNC(src, .proc/do_jaunt, target)
@@ -42,7 +42,7 @@
jaunt_steam(mobloc)
target.mobility_flags &= ~MOBILITY_MOVE
holder.reappearing = 1
- playsound(get_turf(target), 'sound/magic/ethereal_exit.ogg', 50, 1, -1)
+ playsound(get_turf(target), 'sound/magic/ethereal_exit.ogg', 50, TRUE, -1)
sleep(25 - jaunt_in_time)
new jaunt_in_type(mobloc, holder.dir)
target.setDir(holder.dir)
diff --git a/code/modules/spells/spell_types/godhand.dm b/code/modules/spells/spell_types/godhand.dm
index 5736ea56fb0..d0ba3a016fe 100644
--- a/code/modules/spells/spell_types/godhand.dm
+++ b/code/modules/spells/spell_types/godhand.dm
@@ -32,7 +32,7 @@
/obj/item/melee/touch_attack/afterattack(atom/target, mob/user, proximity)
. = ..()
user.say(catchphrase, forced = "spell")
- playsound(get_turf(user), on_use_sound,50,1)
+ playsound(get_turf(user), on_use_sound,50,TRUE)
charges--
if(charges <= 0)
qdel(src)
diff --git a/code/modules/spells/spell_types/inflict_handler.dm b/code/modules/spells/spell_types/inflict_handler.dm
index f5ce493b4a2..7c2deab3684 100644
--- a/code/modules/spells/spell_types/inflict_handler.dm
+++ b/code/modules/spells/spell_types/inflict_handler.dm
@@ -27,7 +27,7 @@
/obj/effect/proc_holder/spell/targeted/inflict_handler/cast(list/targets,mob/user = usr)
for(var/mob/living/target in targets)
- playsound(target,sound, 50,1)
+ playsound(target,sound, 50,TRUE)
if(target.anti_magic_check(check_anti_magic, check_holy))
return
switch(destroys)
diff --git a/code/modules/spells/spell_types/lightning.dm b/code/modules/spells/spell_types/lightning.dm
index 27d3e6c3a61..574f2bb3ad2 100644
--- a/code/modules/spells/spell_types/lightning.dm
+++ b/code/modules/spells/spell_types/lightning.dm
@@ -27,7 +27,7 @@
Snd = new/sound('sound/magic/lightning_chargeup.ogg',channel = 7)
halo = halo || mutable_appearance('icons/effects/effects.dmi', "electricity", EFFECTS_LAYER)
user.add_overlay(halo)
- playsound(get_turf(user), Snd, 50, 0)
+ playsound(get_turf(user), Snd, 50, FALSE)
if(do_mob(user,user,100,1))
if(ready && cast_check(skipcharge=1))
choose_targets()
@@ -50,13 +50,13 @@
ready = FALSE
var/mob/living/carbon/target = targets[1]
Snd=sound(null, repeat = 0, wait = 1, channel = Snd.channel) //byond, why you suck?
- playsound(get_turf(user),Snd,50,0)// Sorry MrPerson, but the other ways just didn't do it the way i needed to work, this is the only way.
+ playsound(get_turf(user),Snd,50,FALSE)// Sorry MrPerson, but the other ways just didn't do it the way i needed to work, this is the only way.
if(get_dist(user,target)>range)
to_chat(user, "[target.p_theyre(TRUE)] too far away!")
Reset(user)
return
- playsound(get_turf(user), 'sound/magic/lightningbolt.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/magic/lightningbolt.ogg', 50, TRUE)
user.Beam(target,icon_state="lightning[rand(1,12)]",time=5)
Bolt(user,target,30,5,user)
@@ -66,14 +66,14 @@
origin.Beam(target,icon_state="lightning[rand(1,12)]",time=5)
var/mob/living/carbon/current = target
if(current.anti_magic_check())
- playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
+ playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, TRUE, -1)
current.visible_message("[current] absorbs the spell, remaining unharmed!", "You absorb the spell, remaining unharmed!")
else if(bounces < 1)
current.electrocute_act(bolt_energy,"Lightning Bolt",safety=1)
- playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
+ playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, TRUE, -1)
else
current.electrocute_act(bolt_energy,"Lightning Bolt",safety=1)
- playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
+ playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, TRUE, -1)
var/list/possible_targets = new
for(var/mob/living/M in view_or_range(range,target,"view"))
if(user == M || target == M && los_check(current,M)) // || origin == M ? Not sure double shockings is good or not
diff --git a/code/modules/spells/spell_types/rightandwrong.dm b/code/modules/spells/spell_types/rightandwrong.dm
index a7fc485e185..5e383947513 100644
--- a/code/modules/spells/spell_types/rightandwrong.dm
+++ b/code/modules/spells/spell_types/rightandwrong.dm
@@ -120,7 +120,7 @@ GLOBAL_VAR_INIT(summon_magic_triggered, FALSE)
var/obj/item/gun/G = new gun_type(get_turf(H))
if (istype(G)) // The list contains some non-gun type guns like the speargun which do not have this proc
G.unlock()
- playsound(get_turf(H),'sound/magic/summon_guns.ogg', 50, 1)
+ playsound(get_turf(H),'sound/magic/summon_guns.ogg', 50, TRUE)
var/in_hand = H.put_in_hands(G) // not always successful
@@ -144,7 +144,7 @@ GLOBAL_VAR_INIT(summon_magic_triggered, FALSE)
lucky = TRUE
var/obj/item/M = new magic_type(get_turf(H))
- playsound(get_turf(H),'sound/magic/summon_magic.ogg', 50, 1)
+ playsound(get_turf(H),'sound/magic/summon_magic.ogg', 50, TRUE)
var/in_hand = H.put_in_hands(M)
diff --git a/code/modules/spells/spell_types/shadow_walk.dm b/code/modules/spells/spell_types/shadow_walk.dm
index a3afdba9ecd..23b2f46d44f 100644
--- a/code/modules/spells/spell_types/shadow_walk.dm
+++ b/code/modules/spells/spell_types/shadow_walk.dm
@@ -24,7 +24,7 @@
var/turf/T = get_turf(user)
var/light_amount = T.get_lumcount()
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
- playsound(get_turf(user), 'sound/magic/ethereal_enter.ogg', 50, 1, -1)
+ playsound(get_turf(user), 'sound/magic/ethereal_enter.ogg', 50, TRUE, -1)
visible_message("[user] melts into the shadows!")
user.SetAllImmobility(0)
user.setStaminaLoss(0, 0)
@@ -68,7 +68,7 @@
else
visible_message("[jaunter] emerges from the darkness!")
jaunter.forceMove(get_turf(src))
- playsound(get_turf(jaunter), 'sound/magic/ethereal_exit.ogg', 50, 1, -1)
+ playsound(get_turf(jaunter), 'sound/magic/ethereal_exit.ogg', 50, TRUE, -1)
jaunter = null
qdel(src)
diff --git a/code/modules/spells/spell_types/spacetime_distortion.dm b/code/modules/spells/spell_types/spacetime_distortion.dm
index f2c768f7066..aaa9c2fc8ef 100644
--- a/code/modules/spells/spell_types/spacetime_distortion.dm
+++ b/code/modules/spells/spell_types/spacetime_distortion.dm
@@ -98,7 +98,7 @@
busy = TRUE
flick("purplesparkles", src)
AM.forceMove(get_turf(src))
- playsound(get_turf(src),sound,70,0)
+ playsound(get_turf(src),sound,70,FALSE)
busy = FALSE
/obj/effect/cross_action/spacetime_dist/Crossed(atom/movable/AM)
diff --git a/code/modules/spells/spell_types/summonitem.dm b/code/modules/spells/spell_types/summonitem.dm
index bf8332c95eb..3cc8e90064a 100644
--- a/code/modules/spells/spell_types/summonitem.dm
+++ b/code/modules/spells/spell_types/summonitem.dm
@@ -108,10 +108,10 @@
if(!L.put_in_hands(item_to_retrieve))
item_to_retrieve.forceMove(L.drop_location())
item_to_retrieve.loc.visible_message("The [item_to_retrieve.name] suddenly appears!")
- playsound(get_turf(L), 'sound/magic/summonitems_generic.ogg', 50, 1)
+ playsound(get_turf(L), 'sound/magic/summonitems_generic.ogg', 50, TRUE)
else
item_to_retrieve.loc.visible_message("The [item_to_retrieve.name] suddenly appears in [L]'s hand!")
- playsound(get_turf(L), 'sound/magic/summonitems_generic.ogg', 50, 1)
+ playsound(get_turf(L), 'sound/magic/summonitems_generic.ogg', 50, TRUE)
if(message)
diff --git a/code/modules/spells/spell_types/turf_teleport.dm b/code/modules/spells/spell_types/turf_teleport.dm
index 14240de49aa..2d924ca81c8 100644
--- a/code/modules/spells/spell_types/turf_teleport.dm
+++ b/code/modules/spells/spell_types/turf_teleport.dm
@@ -12,7 +12,7 @@
var/sound2 = 'sound/weapons/zapbang.ogg'
/obj/effect/proc_holder/spell/targeted/turf_teleport/cast(list/targets,mob/user = usr)
- playsound(get_turf(user), sound1, 50,1)
+ playsound(get_turf(user), sound1, 50,TRUE)
for(var/mob/living/target in targets)
var/list/turfs = new/list()
for(var/turf/T in range(target,outer_tele_radius))
@@ -41,4 +41,4 @@
return
if(do_teleport(user, picked, forceMove = TRUE, channel = TELEPORT_CHANNEL_MAGIC))
- playsound(get_turf(user), sound1, 50,1)
+ playsound(get_turf(user), sound1, 50,TRUE)
diff --git a/code/modules/spells/spell_types/voice_of_god.dm b/code/modules/spells/spell_types/voice_of_god.dm
index 1552278189b..37bd94107a1 100644
--- a/code/modules/spells/spell_types/voice_of_god.dm
+++ b/code/modules/spells/spell_types/voice_of_god.dm
@@ -32,7 +32,7 @@
..()
/obj/effect/proc_holder/spell/voice_of_god/cast(list/targets, mob/user = usr)
- playsound(get_turf(user), speech_sound, 300, 1, 5)
+ playsound(get_turf(user), speech_sound, 300, TRUE, 5)
var/cooldown = voice_of_god(uppertext(command), user, spans, base_multiplier = power_mod)
charge_max = (cooldown * cooldown_mod)
@@ -42,4 +42,4 @@
power_mod = 0.1
cooldown_mod = 0.5
spans = list("clown")
- speech_sound = 'sound/spookoween/scary_horn2.ogg'
\ No newline at end of file
+ speech_sound = 'sound/spookoween/scary_horn2.ogg'
diff --git a/code/modules/spells/spell_types/wizard.dm b/code/modules/spells/spell_types/wizard.dm
index 9b579968f13..417e37f91bc 100644
--- a/code/modules/spells/spell_types/wizard.dm
+++ b/code/modules/spells/spell_types/wizard.dm
@@ -331,7 +331,7 @@
/obj/effect/proc_holder/spell/aoe_turf/repulse/xeno/cast(list/targets,mob/user = usr)
if(iscarbon(user))
var/mob/living/carbon/C = user
- playsound(C.loc, 'sound/voice/hiss5.ogg', 80, 1, 1)
+ playsound(C.loc, 'sound/voice/hiss5.ogg', 80, TRUE, TRUE)
C.spin(6,1)
..(targets, user, 60)
diff --git a/code/modules/surgery/advanced/revival.dm b/code/modules/surgery/advanced/revival.dm
index 5b326df9457..8c10f1f15bb 100644
--- a/code/modules/surgery/advanced/revival.dm
+++ b/code/modules/surgery/advanced/revival.dm
@@ -61,7 +61,7 @@
display_results(user, target, "You successfully shock [target]'s brain with [tool]...",
"[user] send a powerful shock to [target]'s brain with [tool]...",
"[user] send a powerful shock to [target]'s brain with [tool]...")
- playsound(get_turf(target), 'sound/magic/lightningbolt.ogg', 50, 1)
+ playsound(get_turf(target), 'sound/magic/lightningbolt.ogg', 50, TRUE)
target.adjustOxyLoss(-50, 0)
target.updatehealth()
if(target.revive())
@@ -77,6 +77,6 @@
display_results(user, target, "You shock [target]'s brain with [tool], but [target.p_they()] doesn't react.",
"[user] send a powerful shock to [target]'s brain with [tool], but [target.p_they()] doesn't react.",
"[user] send a powerful shock to [target]'s brain with [tool], but [target.p_they()] doesn't react.")
- playsound(get_turf(target), 'sound/magic/lightningbolt.ogg', 50, 1)
+ playsound(get_turf(target), 'sound/magic/lightningbolt.ogg', 50, TRUE)
target.adjustOrganLoss(ORGAN_SLOT_BRAIN, 15, 180)
return FALSE
diff --git a/code/modules/surgery/bodyparts/bodyparts.dm b/code/modules/surgery/bodyparts/bodyparts.dm
index 6ba91319ea2..fcb0625554f 100644
--- a/code/modules/surgery/bodyparts/bodyparts.dm
+++ b/code/modules/surgery/bodyparts/bodyparts.dm
@@ -104,7 +104,7 @@
if(!contents.len)
to_chat(user, "There is nothing left inside [src]!")
return
- playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1)
+ playsound(loc, 'sound/weapons/slice.ogg', 50, TRUE, -1)
user.visible_message("[user] begins to cut open [src].",\
"You begin to cut open [src]...")
if(do_after(user, 54, target = src))
@@ -115,7 +115,7 @@
/obj/item/bodypart/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
..()
if(status != BODYPART_ROBOTIC)
- playsound(get_turf(src), 'sound/misc/splort.ogg', 50, 1, -1)
+ playsound(get_turf(src), 'sound/misc/splort.ogg', 50, TRUE, -1)
pixel_x = rand(-3, 3)
pixel_y = rand(-3, 3)
@@ -123,7 +123,7 @@
/obj/item/bodypart/proc/drop_organs(mob/user, violent_removal)
var/turf/T = get_turf(src)
if(status != BODYPART_ROBOTIC)
- playsound(T, 'sound/misc/splort.ogg', 50, 1, -1)
+ playsound(T, 'sound/misc/splort.ogg', 50, TRUE, -1)
for(var/obj/item/I in src)
I.forceMove(T)
diff --git a/code/modules/surgery/bodyparts/dismemberment.dm b/code/modules/surgery/bodyparts/dismemberment.dm
index 613e0cbd69d..069cb8fa324 100644
--- a/code/modules/surgery/bodyparts/dismemberment.dm
+++ b/code/modules/surgery/bodyparts/dismemberment.dm
@@ -55,7 +55,7 @@
var/organ_spilled = 0
var/turf/T = get_turf(C)
C.add_splatter_floor(T)
- playsound(get_turf(C), 'sound/misc/splort.ogg', 80, 1)
+ playsound(get_turf(C), 'sound/misc/splort.ogg', 80, TRUE)
for(var/X in C.internal_organs)
var/obj/item/organ/O = X
var/org_zone = check_zone(O.zone)
diff --git a/code/modules/surgery/bodyparts/head.dm b/code/modules/surgery/bodyparts/head.dm
index a8e1d490b7a..6659b41bf46 100644
--- a/code/modules/surgery/bodyparts/head.dm
+++ b/code/modules/surgery/bodyparts/head.dm
@@ -98,7 +98,7 @@
/obj/item/bodypart/head/drop_organs(mob/user, violent_removal)
var/turf/T = get_turf(src)
if(status != BODYPART_ROBOTIC)
- playsound(T, 'sound/misc/splort.ogg', 50, 1, -1)
+ playsound(T, 'sound/misc/splort.ogg', 50, TRUE, -1)
for(var/obj/item/I in src)
if(I == brain)
if(user)
diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm
index a0a946f2742..39025d27f9d 100644
--- a/code/modules/surgery/organs/augments_arms.dm
+++ b/code/modules/surgery/organs/augments_arms.dm
@@ -81,7 +81,7 @@
owner.transferItemToLoc(holder, src, TRUE)
holder = null
- playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, 1)
+ playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, TRUE)
/obj/item/organ/cyberimp/arm/proc/Extend(var/obj/item/item)
if(!(item in src))
@@ -121,7 +121,7 @@
owner.visible_message("[owner] extends [holder] from [owner.p_their()] [zone == BODY_ZONE_R_ARM ? "right" : "left"] arm.",
"You extend [holder] from your [zone == BODY_ZONE_R_ARM ? "right" : "left"] arm.",
"You hear a short mechanical noise.")
- playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, 1)
+ playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, TRUE)
/obj/item/organ/cyberimp/arm/ui_action_click()
if((organ_flags & ORGAN_FAILING) || (!holder && !contents.len))
@@ -151,7 +151,7 @@
if(prob(30/severity) && owner && !(organ_flags & ORGAN_FAILING))
Retract()
owner.visible_message("A loud bang comes from [owner]\'s [zone == BODY_ZONE_R_ARM ? "right" : "left"] arm!")
- playsound(get_turf(owner), 'sound/weapons/flashbang.ogg', 100, 1)
+ playsound(get_turf(owner), 'sound/weapons/flashbang.ogg', 100, TRUE)
to_chat(owner, "You feel an explosion erupt inside your [zone == BODY_ZONE_R_ARM ? "right" : "left"] arm as your implant breaks!")
owner.adjust_fire_stacks(20)
owner.IgniteMob()
diff --git a/code/modules/surgery/organs/autosurgeon.dm b/code/modules/surgery/organs/autosurgeon.dm
index cf22a633cf5..75deef2d49b 100644
--- a/code/modules/surgery/organs/autosurgeon.dm
+++ b/code/modules/surgery/organs/autosurgeon.dm
@@ -31,7 +31,7 @@
return
storedorgan.Insert(user)//insert stored organ into the user
user.visible_message("[user] presses a button on [src], and you hear a short mechanical noise.", "You feel a sharp sting as [src] plunges into your body.")
- playsound(get_turf(user), 'sound/weapons/circsawhit.ogg', 50, 1)
+ playsound(get_turf(user), 'sound/weapons/circsawhit.ogg', 50, TRUE)
storedorgan = null
name = initial(name)
if(uses != INFINITE)
diff --git a/code/modules/surgery/organs/heart.dm b/code/modules/surgery/organs/heart.dm
index c322516b2cd..65f92a7cf0c 100644
--- a/code/modules/surgery/organs/heart.dm
+++ b/code/modules/surgery/organs/heart.dm
@@ -111,7 +111,7 @@
/obj/item/organ/heart/cursed/attack(mob/living/carbon/human/H, mob/living/carbon/human/user, obj/target)
if(H == user && istype(H))
- playsound(user,'sound/effects/singlebeat.ogg',40,1)
+ playsound(user,'sound/effects/singlebeat.ogg',40,TRUE)
user.temporarilyRemoveItemFromInventory(src, TRUE)
Insert(user)
else
@@ -153,7 +153,7 @@
return
cursed_heart.last_pump = world.time
- playsound(owner,'sound/effects/singlebeat.ogg',40,1)
+ playsound(owner,'sound/effects/singlebeat.ogg',40,TRUE)
to_chat(owner, "Your heart beats.")
var/mob/living/carbon/human/H = owner
diff --git a/code/modules/surgery/organs/tongue.dm b/code/modules/surgery/organs/tongue.dm
index c9d404782ac..02aa41aaee1 100644
--- a/code/modules/surgery/organs/tongue.dm
+++ b/code/modules/surgery/organs/tongue.dm
@@ -174,7 +174,7 @@
languages_possible = languages_possible_alien
/obj/item/organ/tongue/alien/handle_speech(datum/source, list/speech_args)
- playsound(owner, "hiss", 25, 1, 1)
+ playsound(owner, "hiss", 25, TRUE, TRUE)
/obj/item/organ/tongue/bone
name = "bone \"tongue\""
diff --git a/code/modules/surgery/organs/vocal_cords.dm b/code/modules/surgery/organs/vocal_cords.dm
index 404bd340354..8d78f8f2b82 100644
--- a/code/modules/surgery/organs/vocal_cords.dm
+++ b/code/modules/surgery/organs/vocal_cords.dm
@@ -110,7 +110,7 @@
return TRUE
/obj/item/organ/vocal_cords/colossus/handle_speech(message)
- playsound(get_turf(owner), 'sound/magic/clockwork/invoke_general.ogg', 300, 1, 5)
+ playsound(get_turf(owner), 'sound/magic/clockwork/invoke_general.ogg', 300, TRUE, 5)
return //voice of god speaks for us
/obj/item/organ/vocal_cords/colossus/speak_with(message)
diff --git a/code/modules/surgery/tools.dm b/code/modules/surgery/tools.dm
index 40d98b27a05..c6d523e67e9 100644
--- a/code/modules/surgery/tools.dm
+++ b/code/modules/surgery/tools.dm
@@ -292,7 +292,7 @@
set_light(1)
/obj/item/scalpel/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/machines/click.ogg',50,1)
+ playsound(get_turf(user),'sound/machines/click.ogg',50,TRUE)
var/obj/item/circular_saw/advanced/saw = new /obj/item/circular_saw/advanced(drop_location())
to_chat(user, "You incease the power, now it can cut bones.")
qdel(src)
@@ -314,7 +314,7 @@
set_light(2)
/obj/item/circular_saw/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/machines/click.ogg',50,1)
+ playsound(get_turf(user),'sound/machines/click.ogg',50,TRUE)
var/obj/item/scalpel/advanced/scalpel = new /obj/item/scalpel/advanced(drop_location())
to_chat(user, "You lower the power.")
qdel(src)
@@ -328,7 +328,7 @@
toolspeed = 0.7
/obj/item/retractor/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/items/change_drill.ogg',50,1)
+ playsound(get_turf(user),'sound/items/change_drill.ogg',50,TRUE)
var/obj/item/hemostat/advanced/hemostat = new /obj/item/hemostat/advanced(drop_location())
to_chat(user, "You set the [src] to hemostat mode.")
qdel(src)
@@ -342,7 +342,7 @@
toolspeed = 0.7
/obj/item/hemostat/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/items/change_drill.ogg',50,1)
+ playsound(get_turf(user),'sound/items/change_drill.ogg',50,TRUE)
var/obj/item/retractor/advanced/retractor = new /obj/item/retractor/advanced(drop_location())
to_chat(user, "You set the [src] to retractor mode.")
qdel(src)
@@ -362,7 +362,7 @@
set_light(1)
/obj/item/surgicaldrill/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/weapons/tap.ogg',50,1)
+ playsound(get_turf(user),'sound/weapons/tap.ogg',50,TRUE)
var/obj/item/cautery/advanced/cautery = new /obj/item/cautery/advanced(drop_location())
to_chat(user, "You dilate the lenses, setting it to mending mode.")
qdel(src)
@@ -383,7 +383,7 @@
set_light(1)
/obj/item/cautery/advanced/attack_self(mob/user)
- playsound(get_turf(user),'sound/items/welderdeactivate.ogg',50,1)
+ playsound(get_turf(user),'sound/items/welderdeactivate.ogg',50,TRUE)
var/obj/item/surgicaldrill/advanced/surgicaldrill = new /obj/item/surgicaldrill/advanced(drop_location())
to_chat(user, "You focus the lensess, it is now set to drilling mode.")
qdel(src)
diff --git a/code/modules/vehicles/lavaboat.dm b/code/modules/vehicles/lavaboat.dm
index d512a57ccc9..0944ee76041 100644
--- a/code/modules/vehicles/lavaboat.dm
+++ b/code/modules/vehicles/lavaboat.dm
@@ -55,7 +55,7 @@
/obj/item/ship_in_a_bottle/attack_self(mob/user)
to_chat(user, "You're not sure how they get the ships in these things, but you're pretty sure you know how to get it out.")
- playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, 1)
+ playsound(user.loc, 'sound/effects/glassbr1.ogg', 100, TRUE)
new /obj/vehicle/ridden/lavaboat/dragon(get_turf(src))
qdel(src)
diff --git a/code/modules/vehicles/scooter.dm b/code/modules/vehicles/scooter.dm
index e66e16fcf76..f28ac307368 100644
--- a/code/modules/vehicles/scooter.dm
+++ b/code/modules/vehicles/scooter.dm
@@ -294,4 +294,4 @@
H.adjustOrganLoss(ORGAN_SLOT_BRAIN, 1)
H.updatehealth()
visible_message("[src] crashes into [A], sending [H] flying!")
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
diff --git a/code/modules/vehicles/speedbike.dm b/code/modules/vehicles/speedbike.dm
index b6af3116b41..6d2c3ca16ea 100644
--- a/code/modules/vehicles/speedbike.dm
+++ b/code/modules/vehicles/speedbike.dm
@@ -73,7 +73,7 @@
if(crash_all)
A.throw_at(throw_target, 4, 3)
visible_message("[src] crashes into [A]!")
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
if(ishuman(A))
var/mob/living/carbon/human/H = A
H.Paralyze(100)
@@ -82,7 +82,7 @@
if(!crash_all)
H.throw_at(throw_target, 4, 3)
visible_message("[src] crashes into [H]!")
- playsound(src, 'sound/effects/bang.ogg', 50, 1)
+ playsound(src, 'sound/effects/bang.ogg', 50, TRUE)
/obj/vehicle/ridden/space/speedwagon/Moved()
. = ..()
diff --git a/code/modules/vehicles/wheelchair.dm b/code/modules/vehicles/wheelchair.dm
index 342dcc7993d..6ccbc058790 100644
--- a/code/modules/vehicles/wheelchair.dm
+++ b/code/modules/vehicles/wheelchair.dm
@@ -50,7 +50,7 @@
/obj/vehicle/ridden/wheelchair/Moved()
. = ..()
cut_overlays()
- playsound(src, 'sound/effects/roll.ogg', 75, 1)
+ playsound(src, 'sound/effects/roll.ogg', 75, TRUE)
if(has_buckled_mobs())
handle_rotation_overlayed()
diff --git a/code/modules/zombie/organs.dm b/code/modules/zombie/organs.dm
index 4526528aefc..58e511bf104 100644
--- a/code/modules/zombie/organs.dm
+++ b/code/modules/zombie/organs.dm
@@ -89,7 +89,7 @@
owner.grab_ghost()
owner.visible_message("[owner] suddenly convulses, as [owner.p_they()][stand_up ? " stagger to [owner.p_their()] feet and" : ""] gain a ravenous hunger in [owner.p_their()] eyes!", "You HUNGER!")
- playsound(owner.loc, 'sound/hallucinations/far_noise.ogg', 50, 1)
+ playsound(owner.loc, 'sound/hallucinations/far_noise.ogg', 50, TRUE)
owner.do_jitter_animation(living_transformation_time)
owner.Stun(living_transformation_time)
to_chat(owner, "You are now a zombie! Do not seek to be cured, do not help any non-zombies in any way, do not harm your zombie brethren and spread the disease by killing others. You are a creature of hunger and violence.")