diff --git a/code/ATMOSPHERICS/components/unary/vent_pump.dm b/code/ATMOSPHERICS/components/unary/vent_pump.dm index e687eac639..593d3cbd8b 100644 --- a/code/ATMOSPHERICS/components/unary/vent_pump.dm +++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm @@ -396,7 +396,7 @@ to_chat(user, "Now welding the vent.") if(do_after(user, 20 * WT.toolspeed)) if(!src || !WT.isOn()) return - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(!welded) user.visible_message("\The [user] welds the vent shut.", "You weld the vent shut.", "You hear welding.") welded = 1 diff --git a/code/ATMOSPHERICS/pipes/simple.dm b/code/ATMOSPHERICS/pipes/simple.dm index 215f3498b7..e0f6f7d951 100644 --- a/code/ATMOSPHERICS/pipes/simple.dm +++ b/code/ATMOSPHERICS/pipes/simple.dm @@ -78,7 +78,7 @@ /obj/machinery/atmospherics/pipe/simple/proc/burst() src.visible_message("\The [src] bursts!"); - playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) + playsound(src, 'sound/effects/bang.ogg', 25, 1) var/datum/effect/effect/system/smoke_spread/smoke = new smoke.set_up(1,0, src.loc, 0) smoke.start() diff --git a/code/ZAS/Airflow.dm b/code/ZAS/Airflow.dm index 59837bbe5f..4d92a42c35 100644 --- a/code/ZAS/Airflow.dm +++ b/code/ZAS/Airflow.dm @@ -97,7 +97,7 @@ atom/movable/proc/airflow_hit(atom/A) mob/airflow_hit(atom/A) for(var/mob/M in hearers(src)) M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2) - playsound(src.loc, "smash.ogg", 25, 1, -1) + playsound(src, "smash.ogg", 25, 1, -1) var/weak_amt = istype(A,/obj/item) ? A:w_class : rand(1,5) //Heheheh Weaken(weak_amt) . = ..() @@ -105,7 +105,7 @@ mob/airflow_hit(atom/A) obj/airflow_hit(atom/A) for(var/mob/M in hearers(src)) M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2) - playsound(src.loc, "smash.ogg", 25, 1, -1) + playsound(src, "smash.ogg", 25, 1, -1) . = ..() obj/item/airflow_hit(atom/A) @@ -115,7 +115,7 @@ obj/item/airflow_hit(atom/A) mob/living/carbon/human/airflow_hit(atom/A) // for(var/mob/M in hearers(src)) // M.show_message("[src] slams into [A]!",1,"You hear a loud slam!",2) - playsound(src.loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) if (prob(33)) loc:add_blood(src) bloody_body(src) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 89e0baa087..afed5b2c54 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -308,7 +308,7 @@ var/obj/item/projectile/beam/LE = new (T) LE.icon = 'icons/effects/genetics.dmi' LE.icon_state = "eyelasers" - playsound(usr.loc, 'sound/weapons/taser2.ogg', 75, 1) + playsound(src, 'sound/weapons/taser2.ogg', 75, 1) LE.firer = src LE.preparePixelProjectile(A, src, params) LE.fire() diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index 954eb90c44..8f34599fba 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -98,7 +98,7 @@ avoid code duplication. This includes items that may sometimes act as a standard /obj/item/proc/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone, var/attack_modifier) user.break_cloak() if(hitsound) - playsound(loc, hitsound, 50, 1, -1) + playsound(src, hitsound, 50, 1, -1) var/power = force for(var/datum/modifier/M in user.modifiers) diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index 2dac39e0e7..49c481be15 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -420,7 +420,7 @@ var/list/mob/living/forced_ambiance_list = new H.AdjustStunned(3) H.AdjustWeakened(3) to_chat(mob, "The sudden appearance of gravity makes you fall to the floor!") - playsound(get_turf(src), "bodyfall", 50, 1) + playsound(mob, "bodyfall", 50, 1) /area/proc/prison_break(break_lights = TRUE, open_doors = TRUE, open_blast_doors = TRUE) var/obj/machinery/power/apc/theAPC = get_apc() diff --git a/code/game/gamemodes/changeling/powers/armblade.dm b/code/game/gamemodes/changeling/powers/armblade.dm index 664e6191ae..4a84fde371 100644 --- a/code/game/gamemodes/changeling/powers/armblade.dm +++ b/code/game/gamemodes/changeling/powers/armblade.dm @@ -113,11 +113,11 @@ /obj/item/weapon/melee/changeling/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(default_parry_check(user, attacker, damage_source) && prob(defend_chance)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/slash.ogg', 50, 1) + playsound(src, 'sound/weapons/slash.ogg', 50, 1) return 1 if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance)) user.visible_message("\The [user] deflects [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/slash.ogg', 50, 1) + playsound(src, 'sound/weapons/slash.ogg', 50, 1) return 1 return 0 diff --git a/code/game/gamemodes/cult/construct_spells.dm b/code/game/gamemodes/cult/construct_spells.dm index 64c97a30f4..954361fb9f 100644 --- a/code/game/gamemodes/cult/construct_spells.dm +++ b/code/game/gamemodes/cult/construct_spells.dm @@ -537,7 +537,7 @@ proc/findNullRod(var/atom/target) new_projectile.fire() log_and_message_admins("has casted [src] at \the [hit_atom].") if(fire_sound) - playsound(get_turf(src), fire_sound, 75, 1) + playsound(src, fire_sound, 75, 1) return 1 return 0 diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm index 8560582ee8..827e9730da 100644 --- a/code/game/gamemodes/cult/cult_items.dm +++ b/code/game/gamemodes/cult/cult_items.dm @@ -35,7 +35,7 @@ throw_at(get_edge_target_turf(src, pick(alldirs)), rand(1,3), throw_speed) var/spooky = pick('sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg', 'sound/hallucinations/growl3.ogg', 'sound/hallucinations/wail.ogg') - playsound(loc, spooky, 50, 1) + playsound(src, spooky, 50, 1) return 1 diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index b9d434902e..bbf4bfb343 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -57,7 +57,7 @@ if(prob(1+ damage * 5)) visible_message("[shatter_message]") STOP_PROCESSING(SSobj, src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" @@ -73,21 +73,21 @@ ) STOP_PROCESSING(SSobj, src) user.do_attack_animation(src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" set_light(0) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) else if(prob(damage * 2)) to_chat(user, "You pulverize what was left of \the [src]!") qdel(src) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) /obj/structure/cult/pylon/proc/repair(mob/user as mob) if(isbroken) diff --git a/code/game/gamemodes/events/dust.dm b/code/game/gamemodes/events/dust.dm index 400ae1058d..526164cd58 100644 --- a/code/game/gamemodes/events/dust.dm +++ b/code/game/gamemodes/events/dust.dm @@ -95,7 +95,7 @@ The "dust" will damage the hull of the station causin minor hull breaches. if(!M.stat && !istype(M, /mob/living/silicon/ai)) shake_camera(M, 3, 1) if (A) - playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, 1) + playsound(src, 'sound/effects/meteorimpact.ogg', 40, 1) if(ismob(A)) A.ex_act(strength)//This should work for now I guess diff --git a/code/game/gamemodes/events/holidays/Christmas.dm b/code/game/gamemodes/events/holidays/Christmas.dm index ed86c4045d..e0991edaa2 100644 --- a/code/game/gamemodes/events/holidays/Christmas.dm +++ b/code/game/gamemodes/events/holidays/Christmas.dm @@ -40,7 +40,7 @@ "What do you get from eating tree decorations?\n\nTinsilitis!", "What do snowmen wear on their heads?\n\nIce caps!", "Why is Christmas just like life on ss13?\n\nYou do all the work and the fat guy gets all the credit.", - "Why doesn’t Santa have any children?\n\nBecause he only comes down the chimney.") + "Why doesn't Santa have any children?\n\nBecause he only comes down the chimney.") new /obj/item/clothing/head/festive(target.loc) user.update_icons() cracked = 1 @@ -49,7 +49,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(src, 'sound/effects/snap.ogg', 50, 1) return 1 return ..() diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 5447431279..62406c3877 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -211,7 +211,7 @@ /obj/item/weapon/pinpointer/nukeop/proc/workdisk() if(bomb_set) //If the bomb is set, lead to the shuttle mode = 1 //Ensures worklocation() continues to work - playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) //Plays a beep + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) //Plays a beep visible_message("Shuttle Locator active.") //Lets the mob holding it know that the mode has changed return //Get outta here @@ -236,7 +236,7 @@ /obj/item/weapon/pinpointer/nukeop/proc/worklocation() if(!bomb_set) mode = 0 - playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) visible_message("Authentication Disk Locator active.") return diff --git a/code/game/gamemodes/technomancer/devices/shield_armor.dm b/code/game/gamemodes/technomancer/devices/shield_armor.dm index c8e8130adc..7618708aad 100644 --- a/code/game/gamemodes/technomancer/devices/shield_armor.dm +++ b/code/game/gamemodes/technomancer/devices/shield_armor.dm @@ -70,7 +70,7 @@ to_chat(user, "Your shield has absorbed most of \the [damage_source].") spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 0 // This shield does not block all damage, so returning 0 is needed to tell the game to apply the new damage. /obj/item/clothing/suit/armor/shield/attack_self(mob/user) diff --git a/code/game/gamemodes/technomancer/devices/tesla_armor.dm b/code/game/gamemodes/technomancer/devices/tesla_armor.dm index 86d6f82b08..124e1ed1f3 100644 --- a/code/game/gamemodes/technomancer/devices/tesla_armor.dm +++ b/code/game/gamemodes/technomancer/devices/tesla_armor.dm @@ -81,4 +81,4 @@ lightning.old_style_target(target) lightning.fire() visible_message("\The [src] strikes \the [target] with lightning!") - playsound(get_turf(src), 'sound/weapons/gauss_shoot.ogg', 75, 1) \ No newline at end of file + playsound(src, 'sound/weapons/gauss_shoot.ogg', 75, 1) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/audible_deception.dm b/code/game/gamemodes/technomancer/spells/audible_deception.dm index c8a66fac3c..1914b72f14 100644 --- a/code/game/gamemodes/technomancer/spells/audible_deception.dm +++ b/code/game/gamemodes/technomancer/spells/audible_deception.dm @@ -75,7 +75,7 @@ /obj/item/weapon/spell/audible_deception/on_ranged_cast(atom/hit_atom, mob/living/user) var/turf/T = get_turf(hit_atom) if(selected_sound && pay_energy(200)) - playsound(T, selected_sound, 80, 1, -1) + playsound(src, selected_sound, 80, 1, -1) adjust_instability(1) // Air Horn time. if(selected_sound == 'sound/items/AirHorn.ogg' && pay_energy(3800)) diff --git a/code/game/gamemodes/technomancer/spells/instability_tap.dm b/code/game/gamemodes/technomancer/spells/instability_tap.dm index 13a2b5e318..ad2c72518b 100644 --- a/code/game/gamemodes/technomancer/spells/instability_tap.dm +++ b/code/game/gamemodes/technomancer/spells/instability_tap.dm @@ -26,5 +26,5 @@ else core.give_energy(amount) adjust_instability(50) - playsound(get_turf(src), 'sound/effects/supermatter.ogg', 75, 1) + playsound(src, 'sound/effects/supermatter.ogg', 75, 1) qdel(src) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/oxygenate.dm b/code/game/gamemodes/technomancer/spells/oxygenate.dm index 61c6367260..b36f17c726 100644 --- a/code/game/gamemodes/technomancer/spells/oxygenate.dm +++ b/code/game/gamemodes/technomancer/spells/oxygenate.dm @@ -29,5 +29,5 @@ if(pay_energy(1500)) T.assume_gas("oxygen", 200) T.assume_gas("nitrogen", 800) - playsound(src.loc, 'sound/effects/spray.ogg', 50, 1, -3) + playsound(src, 'sound/effects/spray.ogg', 50, 1, -3) adjust_instability(10) \ No newline at end of file diff --git a/code/game/gamemodes/technomancer/spells/projectile/projectile.dm b/code/game/gamemodes/technomancer/spells/projectile/projectile.dm index a52bb2e584..62ae49b0f0 100644 --- a/code/game/gamemodes/technomancer/spells/projectile/projectile.dm +++ b/code/game/gamemodes/technomancer/spells/projectile/projectile.dm @@ -16,7 +16,7 @@ new_projectile.fire() log_and_message_admins("has casted [src] at \the [hit_atom].") if(fire_sound) - playsound(get_turf(src), fire_sound, 75, 1) + playsound(src, fire_sound, 75, 1) adjust_instability(instability_per_shot) return 1 return 0 diff --git a/code/game/gamemodes/technomancer/spells/reflect.dm b/code/game/gamemodes/technomancer/spells/reflect.dm index 47ed0663f2..756e9e27fc 100644 --- a/code/game/gamemodes/technomancer/spells/reflect.dm +++ b/code/game/gamemodes/technomancer/spells/reflect.dm @@ -60,7 +60,7 @@ P.damage = P.damage * 1.5 spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) // now send a log so that admins don't think they're shooting themselves on purpose. log_and_message_admins("[user] reflected [attacker]'s attack back at them.") @@ -80,7 +80,7 @@ on the same side, and hits you!") spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) log_and_message_admins("[user] reflected [attacker]'s attack back at them.") diff --git a/code/game/gamemodes/technomancer/spells/shield.dm b/code/game/gamemodes/technomancer/spells/shield.dm index 6bcbda5ec4..b11d5590b0 100644 --- a/code/game/gamemodes/technomancer/spells/shield.dm +++ b/code/game/gamemodes/technomancer/spells/shield.dm @@ -55,7 +55,7 @@ if(check_shield_arc(user, bad_arc, damage_source, attacker)) user.visible_message("\The [user]'s [src] blocks [attack_text]!") spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) adjust_instability(2) return 1 return 0 diff --git a/code/game/machinery/CableLayer.dm b/code/game/machinery/CableLayer.dm index d954a80b29..8edc131ac8 100644 --- a/code/game/machinery/CableLayer.dm +++ b/code/game/machinery/CableLayer.dm @@ -41,7 +41,7 @@ m = min(m, cable.amount) m = min(m, 30) if(m) - playsound(src.loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) use_cable(m) var/obj/item/stack/cable_coil/CC = new (get_turf(src)) CC.amount = m diff --git a/code/game/machinery/air_alarm.dm b/code/game/machinery/air_alarm.dm index 65b536c0ba..82e534ba2a 100644 --- a/code/game/machinery/air_alarm.dm +++ b/code/game/machinery/air_alarm.dm @@ -116,7 +116,7 @@ /obj/machinery/alarm/proc/first_run() alarm_area = get_area(src) - area_uid = "\ref[alarm_area]" + area_uid = "\ref[alarm_area]" if(name == "alarm") name = "[alarm_area.name] Air Alarm" @@ -192,7 +192,7 @@ regulating_temperature = 1 audible_message("\The [src] clicks as it starts [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\ "You hear a click and a faint electronic hum.") - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) else //check for when we should stop adjusting temperature if(get_danger_level(target_temperature, TLV["temperature"]) || abs(environment.temperature - target_temperature) <= 0.5) @@ -200,7 +200,7 @@ regulating_temperature = 0 audible_message("\The [src] clicks quietly as it stops [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\ "You hear a click as a faint electronic humming stops.") - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) if(regulating_temperature) if(target_temperature > T0C + MAX_TEMPERATURE) diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 3833c72ee4..3a012a1ccd 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -171,7 +171,7 @@ update_flag location.assume_air(air_contents) src.destroyed = 1 - playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3) + playsound(src, 'sound/effects/spray.ogg', 10, 1, -3) src.density = 0 update_icon() diff --git a/code/game/machinery/atmoalter/pump_vr.dm b/code/game/machinery/atmoalter/pump_vr.dm index ce1376503a..69be9208a1 100644 --- a/code/game/machinery/atmoalter/pump_vr.dm +++ b/code/game/machinery/atmoalter/pump_vr.dm @@ -89,7 +89,7 @@ return anchored = !anchored - playsound(get_turf(src), I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") return diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index dd81a92616..219cf7801f 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -220,7 +220,7 @@ return anchored = !anchored - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") return diff --git a/code/game/machinery/biogenerator.dm b/code/game/machinery/biogenerator.dm index 220d9fd013..4bd89e07dc 100644 --- a/code/game/machinery/biogenerator.dm +++ b/code/game/machinery/biogenerator.dm @@ -164,11 +164,11 @@ processing = 1 update_icon() updateUsrDialog() - playsound(src.loc, 'sound/machines/blender.ogg', 40, 1) + playsound(src, 'sound/machines/blender.ogg', 40, 1) use_power(S * 30) sleep((S + 15) / eat_eff) processing = 0 - playsound(src.loc, 'sound/machines/biogenerator_end.ogg', 40, 1) + playsound(src, 'sound/machines/biogenerator_end.ogg', 40, 1) update_icon() else menustat = "void" diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm index b5a25b24a0..43cd3e0e2d 100644 --- a/code/game/machinery/bioprinter.dm +++ b/code/game/machinery/bioprinter.dm @@ -285,7 +285,7 @@ /obj/machinery/organ_printer/flesh/print_organ(var/choice) var/obj/item/organ/O = ..() - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) visible_message("\The [src] dings, then spits out \a [O].") return O @@ -350,7 +350,7 @@ var/obj/item/organ/O = ..() O.robotize() O.status |= ORGAN_CUT_AWAY // robotize() resets status to 0 - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) audible_message("\The [src] dings, then spits out \a [O].") return O diff --git a/code/game/machinery/bomb_tester_vr.dm b/code/game/machinery/bomb_tester_vr.dm index fb5b2819c0..b4f3b192ed 100644 --- a/code/game/machinery/bomb_tester_vr.dm +++ b/code/game/machinery/bomb_tester_vr.dm @@ -359,11 +359,11 @@ if(cancelled) return if(simulation_results == "Error") - playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) state("Invalid parameters.") else ping("Simulation complete!") - playsound(loc, "sound/effects/printer.ogg", 50, 1) + playsound(src, "sound/effects/printer.ogg", 50, 1) var/obj/item/weapon/paper/P = new(get_turf(src)) P.name = "Explosive Simulator printout" P.info = simulation_results diff --git a/code/game/machinery/buttons.dm b/code/game/machinery/buttons.dm index 786761b3b1..0f209a1a99 100644 --- a/code/game/machinery/buttons.dm +++ b/code/game/machinery/buttons.dm @@ -21,5 +21,5 @@ // VOREStation Edit Begin /obj/machinery/button/attack_hand(obj/item/weapon/W, mob/user as mob) if(..()) return 1 - playsound(loc, 'sound/machines/button.ogg', 100, 1) + playsound(src, 'sound/machines/button.ogg', 100, 1) // VOREStation Edit End diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index ba5e1038f0..454025d425 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -158,7 +158,7 @@ user.do_attack_animation(src) user.setClickCooldown(user.get_attack_speed()) visible_message("\The [user] slashes at [src]!") - playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1) + playsound(src, 'sound/weapons/slash.ogg', 100, 1) add_hiddenprint(user) destroy() @@ -169,7 +169,7 @@ S.do_attack_animation(src) S.setClickCooldown(user.get_attack_speed()) visible_message("\The [user] [pick(S.attacktext)] \the [src]!") - playsound(src.loc, S.attack_sound, 100, 1) + playsound(src, S.attack_sound, 100, 1) add_hiddenprint(user) destroy() ..() @@ -183,7 +183,7 @@ panel_open = !panel_open user.visible_message("[user] screws the camera's panel [panel_open ? "open" : "closed"]!", "You screw the camera's panel [panel_open ? "open" : "closed"].") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open) interact(user) @@ -258,7 +258,7 @@ if (istype(W, /obj/item)) //is it even possible to get into attackby() with non-items? var/obj/item/I = W if (I.hitsound) - playsound(loc, I.hitsound, 50, 1, -1) + playsound(src, I.hitsound, 50, 1, -1) take_damage(W.force) else @@ -278,7 +278,7 @@ visible_message(" [user] has deactivated [src]!") else visible_message(" [src] clicks and shuts down. ") - playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) + playsound(src, 'sound/items/Wirecutter.ogg', 100, 1) icon_state = "[initial(icon_state)]1" add_hiddenprint(user) else @@ -286,7 +286,7 @@ visible_message(" [user] has reactivated [src]!") else visible_message(" [src] clicks and reactivates itself. ") - playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) + playsound(src, 'sound/items/Wirecutter.ogg', 100, 1) icon_state = initial(icon_state) add_hiddenprint(user) @@ -308,7 +308,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, loc) spark_system.start() - playsound(loc, "sparks", 50, 1) + playsound(src, "sparks", 50, 1) /obj/machinery/camera/proc/set_status(var/newstatus) if (status != newstatus) @@ -404,7 +404,7 @@ // Do after stuff here to_chat(user, "You start to weld [src]..") - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) WT.eyecheck(user) busy = 1 if(do_after(user, 100 * WT.toolspeed)) diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm index 759a09107a..17f82629d4 100644 --- a/code/game/machinery/camera/camera_assembly.dm +++ b/code/game/machinery/camera/camera_assembly.dm @@ -78,7 +78,7 @@ if(3) // State 3 if(W.is_screwdriver()) - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) var/input = sanitize(input(usr, "Which networks would you like to connect this camera to? Separate networks with a comma. No Spaces!\nFor example: "+using_map.station_short+",Security,Secret ", "Set Network", camera_network ? camera_network : NETWORK_DEFAULT)) if(!input) @@ -118,7 +118,7 @@ else if(W.is_wirecutter()) new/obj/item/stack/cable_coil(get_turf(src), 2) - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You cut the wires from the circuits.") state = 2 return @@ -161,7 +161,7 @@ return 0 to_chat(user, "You start to weld the [src]..") - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) WT.eyecheck(user) busy = 1 if(do_after(user, 20 * WT.toolspeed)) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index e5fec765ca..2c6a5d34e6 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -201,7 +201,7 @@ return else if((occupant.health >= heal_level || occupant.health == occupant.getMaxHealth()) && (!eject_wait)) - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) audible_message("\The [src] signals that the cloning process is complete.") connected_message("Cloning Process Complete.") locked = 0 diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index 8a88948ee0..397366c6c2 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -15,7 +15,7 @@ switch(state) if(0) if(P.is_wrench()) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) to_chat(user, "You wrench the frame into place.") anchored = 1 @@ -25,7 +25,7 @@ if(!WT.isOn()) to_chat(user, "The welder must be on for this task.") return - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(do_after(user, 20 * WT.toolspeed)) if(!src || !WT.remove_fuel(0, user)) return to_chat(user, "You deconstruct the frame.") @@ -33,25 +33,25 @@ qdel(src) if(1) if(P.is_wrench()) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) to_chat(user, "You unfasten the frame.") anchored = 0 state = 0 if(istype(P, /obj/item/weapon/circuitboard/aicore) && !circuit) - playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You place the circuit board inside the frame.") icon_state = "1" circuit = P user.drop_item() P.loc = src if(P.is_screwdriver() && circuit) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You screw the circuit board into place.") state = 2 icon_state = "2" if(P.is_crowbar() && circuit) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the circuit board.") state = 1 icon_state = "0" @@ -59,7 +59,7 @@ circuit = null if(2) if(P.is_screwdriver() && circuit) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You unfasten the circuit board.") state = 1 icon_state = "1" @@ -69,7 +69,7 @@ to_chat(user, "You need five coils of wire to add them to the frame.") return to_chat(user, "You start to add cables to the frame.") - playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if (do_after(user, 20) && state == 2) if (C.use(5)) state = 3 @@ -81,7 +81,7 @@ if (brain) to_chat(user, "Get that brain out of there first") else - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the cables.") state = 2 icon_state = "2" @@ -94,7 +94,7 @@ to_chat(user, "You need two sheets of glass to put in the glass panel.") return to_chat(user, "You start to put in the glass panel.") - playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if (do_after(user, 20) && state == 3) if(RG.use(2)) to_chat(user, "You put in the glass panel.") @@ -146,7 +146,7 @@ icon_state = "3b" if(P.is_crowbar() && brain) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the brain.") brain.loc = loc brain = null @@ -154,7 +154,7 @@ if(4) if(P.is_crowbar()) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the glass panel.") state = 3 if (brain) @@ -165,7 +165,7 @@ return if(P.is_screwdriver()) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You connect the monitor.") if(!brain) var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes" diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm index 960ce3dc35..054c9c2cc3 100644 --- a/code/game/machinery/computer/buildandrepair.dm +++ b/code/game/machinery/computer/buildandrepair.dm @@ -14,7 +14,7 @@ switch(state) if(0) if(P.is_wrench()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) to_chat(user, "You wrench the frame into place.") src.anchored = 1 @@ -24,7 +24,7 @@ if(!WT.remove_fuel(0, user)) to_chat(user, "The welding tool must be on to complete this task.") return - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(do_after(user, 20 * WT.toolspeed)) if(!src || !WT.isOn()) return to_chat(user, "You deconstruct the frame.") @@ -32,7 +32,7 @@ qdel(src) if(1) if(P.is_wrench()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) to_chat(user, "You unfasten the frame.") src.anchored = 0 @@ -40,7 +40,7 @@ if(istype(P, /obj/item/weapon/circuitboard) && !circuit) var/obj/item/weapon/circuitboard/B = P if(B.board_type == "computer") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You place the circuit board inside the frame.") src.icon_state = "1" src.circuit = P @@ -49,12 +49,12 @@ else to_chat(user, "This frame does not accept circuit boards of this type!") if(P.is_screwdriver() && circuit) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You screw the circuit board into place.") src.state = 2 src.icon_state = "2" if(P.is_crowbar()) && circuit) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the circuit board.") src.state = 1 src.icon_state = "0" @@ -62,7 +62,7 @@ src.circuit = null if(2) if(P.is_screwdriver() && circuit) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You unfasten the circuit board.") src.state = 1 src.icon_state = "1" @@ -72,7 +72,7 @@ to_chat(user, "You need five coils of wire to add them to the frame.") return to_chat(user, "You start to add cables to the frame.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20) && state == 2) if (C.use(5)) to_chat(user, "You add cables to the frame.") @@ -80,7 +80,7 @@ icon_state = "3" if(3) if(P.is_wirecutter()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the cables.") src.state = 2 src.icon_state = "2" @@ -92,7 +92,7 @@ if (G.get_amount() < 2) to_chat(user, "You need two sheets of glass to put in the glass panel.") return - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You start to put in the glass panel.") if(do_after(user, 20) && state == 3) if (G.use(2)) @@ -101,13 +101,13 @@ src.icon_state = "4" if(4) if(P.is_crowbar()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the glass panel.") src.state = 3 src.icon_state = "3" new /obj/item/stack/material/glass( src.loc, 2 ) if(P.is_screwdriver()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You connect the monitor.") var/B = new src.circuit.build_path ( src.loc ) src.circuit.construct(B) diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index 441970a8cb..dbd5ba8383 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -51,7 +51,7 @@ /* /obj/machinery/computer/pod/attackby(I as obj, user as mob) if(I.is_screwdriver()) - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) if(do_after(user, 20)) if(stat & BROKEN) to_chat(user, "The broken glass falls out.") diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index aa9c230e22..3717da58c5 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -33,7 +33,7 @@ if (C.get_amount() < 5) to_chat(user, "You need five lengths of cable to add them to the frame.") return - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You start to add cables to the frame.") if(do_after(user, 20) && state == 1) if(C.use(5)) @@ -50,7 +50,7 @@ if(istype(P, /obj/item/weapon/circuitboard)) var/obj/item/weapon/circuitboard/B = P if(B.board_type == "machine") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You add the circuit board to the frame.") circuit = P user.drop_item() @@ -72,7 +72,7 @@ to_chat(user, "This frame does not accept circuit boards of this type!") else if(P.is_wirecutter()) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You remove the cables.") state = 1 icon_state = "box_0" @@ -103,7 +103,7 @@ component_check = 0 break if(component_check) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) var/obj/machinery/new_machine = new src.circuit.build_path(src.loc, src.dir) if(new_machine.component_parts) @@ -131,7 +131,7 @@ if(istype(P, /obj/item)) for(var/I in req_components) if(istype(P, text2path(I)) && (req_components[I] > 0)) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(P.is_cable_coil)) var/obj/item/stack/cable_coil/CP = P if(CP.get_amount() > 1) diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index 42725bbe28..05eb9c322c 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -57,7 +57,7 @@ Barricades if("brute") health -= W.force * 0.75 if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD))) - playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 100, 1) else playsound(src, 'sound/weapons/smash.ogg', 50, 1) CheckHealth() @@ -76,9 +76,9 @@ Barricades /obj/structure/barricade/attack_generic(var/mob/user, var/damage, var/attack_verb) visible_message("[user] [attack_verb] the [src]!") if(material == get_material_by_name("resin")) - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD))) - playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 100, 1) else playsound(src, 'sound/weapons/smash.ogg', 50, 1) user.do_attack_animation(src) diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm index 18e0678fcf..958101a3b9 100644 --- a/code/game/machinery/door_control.dm +++ b/code/game/machinery/door_control.dm @@ -31,7 +31,7 @@ if(req_access.len || req_one_access.len) req_access = list() req_one_access = list() - playsound(src.loc, "sparks", 100, 1) + playsound(src, "sparks", 100, 1) return 1 /obj/machinery/button/remote/attack_hand(mob/user as mob) diff --git a/code/game/machinery/doorbell_vr.dm b/code/game/machinery/doorbell_vr.dm index 9df92aa209..3c453682b7 100644 --- a/code/game/machinery/doorbell_vr.dm +++ b/code/game/machinery/doorbell_vr.dm @@ -20,7 +20,7 @@ if(inoperable()) return use_power(active_power_usage) - playsound(src.loc, chime_sound, 75) + playsound(src, chime_sound, 75) icon_state = "dbchime-active" set_light(2, 0.5, "#33FF33") visible_message("\The [src]'s light flashes.") @@ -139,7 +139,7 @@ to_chat(user, "You save the data in \the [M]'s buffer.") else if(W.is_wrench()) to_chat(user, "You start to unwrench \the [src].") - playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) + playsound(src, 'sound/items/Ratchet.ogg', 50, 1) if(do_after(user, 15) && !QDELETED(src)) to_chat(user, "You unwrench \the [src].") new /obj/item/frame/doorbell(src.loc) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 2a14c17bdb..ee66c2172a 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -81,7 +81,7 @@ if(do_after(user,5 SECONDS,src)) visible_message("\The [user] forces \the [src] open, sparks flying from its electronics!") src.do_animate("spark") - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) src.locked = 0 src.welded = 0 update_icon() @@ -90,7 +90,7 @@ else if(src.density) visible_message("\The [user] begins forcing \the [src] open!") if(do_after(user, 5 SECONDS,src)) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) visible_message("\The [user] forces \the [src] open!") open(1) else @@ -946,7 +946,7 @@ About the new airlock wires panel: src.welded = 1 else src.welded = null - playsound(src.loc, C.usesound, 75, 1) + playsound(src, C.usesound, 75, 1) src.update_icon() return else @@ -1066,9 +1066,9 @@ About the new airlock wires panel: //if the door is unpowered then it doesn't make sense to hear the woosh of a pneumatic actuator if(arePowerSystemsOn()) - playsound(src.loc, open_sound_powered, 50, 1) + playsound(src, open_sound_powered, 50, 1) else - playsound(src.loc, open_sound_unpowered, 75, 1) + playsound(src, open_sound_unpowered, 75, 1) if(src.closeOther != null && istype(src.closeOther, /obj/machinery/door/airlock/) && !src.closeOther.density) src.closeOther.close() @@ -1150,7 +1150,7 @@ About the new airlock wires panel: for(var/atom/movable/AM in turf) if(AM.blocks_airlock()) if(!has_beeped) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 0) has_beeped = 1 autoclose_in(6) return @@ -1163,9 +1163,9 @@ About the new airlock wires panel: use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people has_beeped = 0 if(arePowerSystemsOn()) - playsound(src.loc, close_sound_powered, 50, 1) + playsound(src, close_sound_powered, 50, 1) else - playsound(src.loc, open_sound_unpowered, 75, 1) + playsound(src, open_sound_unpowered, 75, 1) for(var/turf/turf in locs) var/obj/structure/window/killthis = (locate(/obj/structure/window) in turf) if(killthis) diff --git a/code/game/machinery/doors/blast_door.dm b/code/game/machinery/doors/blast_door.dm index 5ff587a7d9..136b793f10 100644 --- a/code/game/machinery/doors/blast_door.dm +++ b/code/game/machinery/doors/blast_door.dm @@ -100,7 +100,7 @@ // Description: Opens or closes the door, depending on current state. No checks are done inside this proc. /obj/machinery/door/blast/proc/force_toggle(var/forced = 0, mob/user as mob) if (forced) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) if(src.density) src.force_open() @@ -150,7 +150,7 @@ user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.") else user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!") - playsound(src.loc, hitsound, 100, 1) + playsound(src, hitsound, 100, 1) take_damage(W.force*0.35) //it's a blast door, it should take a while. -Luke return @@ -180,7 +180,7 @@ user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.") else user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!") - playsound(src.loc, hitsound, 100, 1) + playsound(src, hitsound, 100, 1) take_damage(W.force*0.15) //If the item isn't a weapon, let's make this take longer than usual to break it down. return @@ -194,13 +194,13 @@ if(src.density) visible_message("\The [user] begins forcing \the [src] open!") if(do_after(user, 15 SECONDS,src)) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) visible_message("\The [user] forces \the [src] open!") force_open(1) else visible_message("\The [user] begins forcing \the [src] closed!") if(do_after(user, 5 SECONDS,src)) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) visible_message("\The [user] forces \the [src] closed!") force_close(1) else diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 20f83d9de2..49a16849ea 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -201,7 +201,7 @@ tforce = 15 * (speed/5) else tforce = AM:throwforce * (speed/5) - playsound(src.loc, hitsound, 100, 1) + playsound(src, hitsound, 100, 1) take_damage(tforce) return @@ -289,7 +289,7 @@ user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.") else user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!") - playsound(src.loc, hitsound, 100, 1) + playsound(src, hitsound, 100, 1) take_damage(W.force) return @@ -414,7 +414,7 @@ if("deny") if(density && !(stat & (NOPOWER|BROKEN))) flick("door_deny", src) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 0) return diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index 29125c8500..e31465168f 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -200,14 +200,14 @@ if(src.blocked) visible_message("\The [user] begins digging into \the [src] internals!") if(do_after(user,5 SECONDS,src)) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) src.blocked = 0 update_icon() open(1) else if(src.density) visible_message("\The [user] begins forcing \the [src] open!") if(do_after(user, 2 SECONDS,src)) - playsound(src.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(src, 'sound/machines/airlock_creaking.ogg', 100, 1) visible_message("\The [user] forces \the [src] open!") open(1) else diff --git a/code/game/machinery/doors/firedoor_assembly.dm b/code/game/machinery/doors/firedoor_assembly.dm index 4eeec7c5ff..aa857d5065 100644 --- a/code/game/machinery/doors/firedoor_assembly.dm +++ b/code/game/machinery/doors/firedoor_assembly.dm @@ -32,7 +32,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) to_chat(user, "You wire \the [src].") else if(C.is_wirecutter() && wired ) - playsound(src.loc, C.usesound, 100, 1) + playsound(src, C.usesound, 100, 1) user.visible_message("[user] cuts the wires from \the [src].", "You start to cut the wires from \the [src].") if(do_after(user, 40)) @@ -43,7 +43,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) else if(istype(C, /obj/item/weapon/circuitboard/airalarm) && wired) if(anchored) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) user.visible_message("[user] has inserted a circuit into \the [src]!", "You have inserted the circuit into \the [src]!") if(glass) @@ -56,7 +56,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) to_chat(user, "You must secure \the [src] first!") else if(C.is_wrench()) anchored = !anchored - playsound(src.loc, C.usesound, 50, 1) + playsound(src, C.usesound, 50, 1) user.visible_message("[user] has [anchored ? "" : "un" ]secured \the [src]!", "You have [anchored ? "" : "un" ]secured \the [src]!") update_icon() @@ -86,7 +86,7 @@ obj/structure/firedoor_assembly/attackby(obj/item/C, mob/user as mob) else if(istype(C, /obj/item/stack/material) && C.get_material_name() == "rglass" && !glass) var/obj/item/stack/S = C if (S.get_amount() >= 1) - playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) + playsound(src, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [S.name] to \the [src].", "You start to install [S.name] into \the [src].") if(do_after(user, 40, src) && !glass && S.use(1)) diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index f7b8a1222d..98fb1c75d8 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -115,7 +115,7 @@ if (!operating) //in case of emag operating = 1 flick(text("[src.base_state]opening"), src) - playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1) + playsound(src, 'sound/machines/windowdoor.ogg', 100, 1) sleep(10) explosion_resistance = 0 @@ -132,7 +132,7 @@ return FALSE operating = TRUE flick(text("[]closing", src.base_state), src) - playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1) + playsound(src, 'sound/machines/windowdoor.ogg', 100, 1) density = TRUE update_icon() @@ -158,7 +158,7 @@ if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user if(H.species.can_shred(H)) - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) visible_message("[user] smashes against the [src.name].", 1) user.do_attack_animation(src) user.setClickCooldown(user.get_attack_speed()) @@ -212,8 +212,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, "sparks", 50, 1) - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) visible_message("The glass door was sliced open by [user]!") return 1 @@ -259,7 +259,7 @@ if(src.density && istype(I, /obj/item/weapon) && !istype(I, /obj/item/weapon/card)) user.setClickCooldown(user.get_attack_speed(I)) var/aforce = I.force - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) visible_message("[src] was hit by [I].") if(I.damtype == BRUTE || I.damtype == BURN) take_damage(aforce) diff --git a/code/game/machinery/fire_alarm.dm b/code/game/machinery/fire_alarm.dm index 82237b32ea..388b834e82 100644 --- a/code/game/machinery/fire_alarm.dm +++ b/code/game/machinery/fire_alarm.dm @@ -208,7 +208,7 @@ FIRE ALARM for(var/obj/machinery/firealarm/FA in area) fire_alarm.triggerAlarm(loc, FA, duration, hidden = alarms_hidden) update_icon() - playsound(src.loc, 'sound/machines/airalarm.ogg', 25, 0, 4) + playsound(src, 'sound/machines/airalarm.ogg', 25, 0, 4) return /obj/machinery/firealarm/proc/set_security_level(var/newlevel) diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index 169fc6386c..ad82ffd656 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -56,7 +56,7 @@ if((disable) || (last_flash && world.time < last_flash + 150)) return - playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1) + playsound(src, 'sound/weapons/flash.ogg', 100, 1) flick("[base_state]_flash", src) last_flash = world.time use_power(1500) diff --git a/code/game/machinery/floor_light.dm b/code/game/machinery/floor_light.dm index c494782ce1..0a3f13fedc 100644 --- a/code/game/machinery/floor_light.dm +++ b/code/game/machinery/floor_light.dm @@ -31,7 +31,7 @@ var/list/floor_light_cache = list() if(!WT.remove_fuel(0, user)) to_chat(user, "\The [src] must be on to complete this task.") return - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(!do_after(user, 20 * WT.toolspeed)) return if(!src || !WT.isOn()) @@ -53,7 +53,7 @@ var/list/floor_light_cache = list() stat |= BROKEN else visible_message("\The [user] attacks \the [src]!") - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) if(isnull(damaged)) damaged = 0 update_brightness() return diff --git a/code/game/machinery/frame.dm b/code/game/machinery/frame.dm index 85bb2dfa9d..17cbfcfe53 100644 --- a/code/game/machinery/frame.dm +++ b/code/game/machinery/frame.dm @@ -277,7 +277,7 @@ if(P.is_wrench()) if(state == FRAME_PLACED && !anchored) to_chat(user, "You start to wrench the frame into place.") - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) anchored = TRUE if(!need_circuit && circuit) @@ -298,7 +298,7 @@ if(state == FRAME_PLACED) var/obj/item/weapon/weldingtool/WT = P if(WT.remove_fuel(0, user)) - playsound(src.loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) if(do_after(user, 20 * P.toolspeed)) if(src && WT.isOn()) to_chat(user, "You deconstruct the frame.") @@ -314,7 +314,7 @@ var/obj/item/weapon/circuitboard/B = P var/datum/frame/frame_types/board_type = B.board_type if(board_type.name == frame_type.name) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You place the circuit board inside the frame.") circuit = P user.drop_item() @@ -467,7 +467,7 @@ to_chat(user, "You need five coils of wire to add them to the frame.") return to_chat(user, "You start to add cables to the frame.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20) && state == FRAME_FASTENED) if(C.use(5)) to_chat(user, "You add cables to the frame.") @@ -478,7 +478,7 @@ if(frame_type.frame_class == FRAME_CLASS_MACHINE) for(var/I in req_components) if(istype(P, I) && (req_components[I] > 0)) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(istype(P, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CP = P if(CP.get_amount() > 1) @@ -527,7 +527,7 @@ if(G.get_amount() < 2) to_chat(user, "You need two sheets of glass to put in the glass panel.") return - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You start to put in the glass panel.") if(do_after(user, 20) && state == FRAME_WIRED) if(G.use(2)) @@ -539,7 +539,7 @@ if(G.get_amount() < 2) to_chat(user, "You need two sheets of glass to put in the glass panel.") return - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You start to put in the glass panel.") if(do_after(user, 20) && state == FRAME_WIRED) if(G.use(2)) @@ -551,7 +551,7 @@ if(frame_type.frame_class == FRAME_CLASS_MACHINE) for(var/I in req_components) if(istype(P, I) && (req_components[I] > 0)) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(istype(P, /obj/item/stack)) var/obj/item/stack/ST = P if(ST.get_amount() > 1) diff --git a/code/game/machinery/holoposter.dm b/code/game/machinery/holoposter.dm index b894c0313b..a273cc1474 100644 --- a/code/game/machinery/holoposter.dm +++ b/code/game/machinery/holoposter.dm @@ -83,7 +83,7 @@ GLOBAL_LIST_EMPTY(holoposters) if(stat & (NOPOWER)) return if (W.is_multitool()) - playsound(user.loc, 'sound/items/penclick.ogg', 60, 1) + playsound(src, 'sound/items/penclick.ogg', 60, 1) icon_state = input("Available Posters", "Holographic Poster") as null|anything in postertypes + "random" if(!Adjacent(user)) return diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm index 42f7b681b7..54ea37b5c6 100644 --- a/code/game/machinery/jukebox.dm +++ b/code/game/machinery/jukebox.dm @@ -217,7 +217,7 @@ StopPlaying() else if(href_list["play"]) if(emagged) - playsound(src.loc, 'sound/items/AirHorn.ogg', 100, 1) + playsound(src, 'sound/items/AirHorn.ogg', 100, 1) for(var/mob/living/carbon/M in ohearers(6, src)) if(M.get_ear_protection() >= 2) continue diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index b126376ecc..2611a418ee 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -277,7 +277,7 @@ Class Procs: text = "\The [src] pings." state(text, "blue") - playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) + playsound(src, 'sound/machines/ping.ogg', 50, 0) /obj/machinery/proc/shock(mob/user, prb) if(inoperable()) @@ -342,7 +342,7 @@ Class Procs: return FALSE if(panel_open) return FALSE // Close panel first! - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) var/actual_time = W.toolspeed * time if(actual_time != 0) user.visible_message( \ @@ -403,12 +403,12 @@ Class Procs: if(!panel_open) return 0 user.visible_message("[user] has cut the wires inside \the [src]!", "You have cut the wires inside \the [src].") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) new/obj/item/stack/cable_coil(get_turf(src), 5) . = dismantle() /obj/machinery/proc/dismantle() - playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) //TFF 3/6/19 - port Cit RP fix of infinite frames. If it doesn't have a circuit board, don't create a frame. Return a smack instead. BONK! if(!circuit) return 0 diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index 9fd9f74999..4c9c2f0359 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -904,7 +904,7 @@ obj/item/weapon/newspaper/Topic(href, href_list) if(curr_page == 0) //We're at the start, get to the middle screen = 1 curr_page++ - playsound(loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) else if(href_list["prev_page"]) if(curr_page == 0) @@ -916,7 +916,7 @@ obj/item/weapon/newspaper/Topic(href, href_list) if(curr_page == pages+1) //we're at the end, let's go back to the middle. screen = 1 curr_page-- - playsound(src.loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) if(istype(src.loc, /mob)) attack_self(src.loc) @@ -974,9 +974,9 @@ obj/item/weapon/newspaper/attackby(obj/item/weapon/W as obj, mob/user as mob) spawn(300) alert = 0 update_icon() - playsound(src.loc, 'sound/machines/twobeep.ogg', 75, 1) + playsound(src, 'sound/machines/twobeep.ogg', 75, 1) else for(var/mob/O in hearers(world.view-1, T)) O.show_message("[name] beeps, \"Attention! Wanted issue distributed!\"",2) - playsound(src.loc, 'sound/machines/warning-buzzer.ogg', 75, 1) + playsound(src, 'sound/machines/warning-buzzer.ogg', 75, 1) return diff --git a/code/game/machinery/painter_vr.dm b/code/game/machinery/painter_vr.dm index 4130194012..cc961a737f 100644 --- a/code/game/machinery/painter_vr.dm +++ b/code/game/machinery/painter_vr.dm @@ -93,12 +93,12 @@ if(href_list["paint"]) for(var/atom/movable/O in processing) O.color = activecolor - playsound(src.loc, 'sound/effects/spray3.ogg', 50, 1) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) if(href_list["clear"]) for(var/atom/movable/O in processing) O.color = initial(O.color) - playsound(src.loc, 'sound/effects/spray3.ogg', 50, 1) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) if(href_list["eject"]) for(var/atom/movable/O in processing) diff --git a/code/game/machinery/partslathe_vr.dm b/code/game/machinery/partslathe_vr.dm index 7763e28f1a..a4a027d5e4 100644 --- a/code/game/machinery/partslathe_vr.dm +++ b/code/game/machinery/partslathe_vr.dm @@ -167,7 +167,7 @@ busy = 0 update_use_power(USE_POWER_IDLE) update_icon() - playsound(src.loc, 'sound/machines/chime.ogg', 50, 0) + playsound(src, 'sound/machines/chime.ogg', 50, 0) /obj/machinery/partslathe/proc/addToQueue(var/datum/category_item/partslathe/D) queue += D diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index 0004949067..c307017d8a 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -549,12 +549,12 @@ if(do_after(user, 50 * I.toolspeed)) //This code handles moving the turret around. After all, it's a portable turret! if(!anchored) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) anchored = TRUE update_icon() to_chat(user, "You secure the exterior bolts on the turret.") else if(anchored) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) anchored = FALSE to_chat(user, "You unsecure the exterior bolts on the turret.") update_icon() @@ -890,10 +890,10 @@ var/obj/item/projectile/A if(emagged || lethal) A = new lethal_projectile(loc) - playsound(loc, lethal_shot_sound, 75, 1) + playsound(src, lethal_shot_sound, 75, 1) else A = new projectile(loc) - playsound(loc, shot_sound, 75, 1) + playsound(src, shot_sound, 75, 1) // Lethal/emagged turrets use twice the power due to higher energy beams // Emagged turrets again use twice as much power due to higher firing rates @@ -966,14 +966,14 @@ switch(build_step) if(0) //first step if(I.is_wrench() && !anchored) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) to_chat(user, "You secure the external bolts.") anchored = TRUE build_step = 1 return else if(I.is_crowbar() && !anchored) - playsound(loc, I.usesound, 75, 1) + playsound(src, I.usesound, 75, 1) to_chat(user, "You dismantle the turret construction.") new /obj/item/stack/material/steel(loc, 5) qdel(src) @@ -991,7 +991,7 @@ return else if(I.is_wrench()) - playsound(loc, I.usesound, 75, 1) + playsound(src, I.usesound, 75, 1) to_chat(user, "You unfasten the external bolts.") anchored = FALSE build_step = 0 @@ -999,7 +999,7 @@ if(2) if(I.is_wrench()) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) to_chat(user, "You bolt the metal armor into place.") build_step = 3 return @@ -1012,7 +1012,7 @@ to_chat(user, "You need more fuel to complete this task.") return - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) if(do_after(user, 20 * I.toolspeed)) if(!src || !WT.remove_fuel(5, user)) return build_step = 1 @@ -1039,7 +1039,7 @@ return else if(I.is_wrench()) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) to_chat(user, "You remove the turret's metal armor bolts.") build_step = 2 return @@ -1058,7 +1058,7 @@ if(5) if(I.is_screwdriver()) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) build_step = 6 to_chat(user, "You close the internal access hatch.") return @@ -1076,7 +1076,7 @@ return else if(I.is_screwdriver()) - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) build_step = 5 to_chat(user, "You open the internal access hatch.") return @@ -1088,7 +1088,7 @@ if(WT.get_fuel() < 5) to_chat(user, "You need more fuel to complete this task.") - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(do_after(user, 30 * WT.toolspeed)) if(!src || !WT.remove_fuel(5, user)) return @@ -1106,7 +1106,7 @@ qdel(src) // qdel else if(I.is_crowbar()) - playsound(loc, I.usesound, 75, 1) + playsound(src, I.usesound, 75, 1) to_chat(user, "You pry off the turret's exterior armor.") new /obj/item/stack/material/steel(loc, 2) build_step = 6 diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm index 2b8b8aa637..db5594685e 100644 --- a/code/game/machinery/recharger.dm +++ b/code/game/machinery/recharger.dm @@ -84,7 +84,7 @@ return anchored = !anchored to_chat(user, "You [anchored ? "attached" : "detached"] [src].") - playsound(loc, G.usesound, 75, 1) + playsound(src, G.usesound, 75, 1) else if(default_deconstruction_screwdriver(user, G)) return else if(default_deconstruction_crowbar(user, G)) diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 49f426ac6f..297ba24442 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -206,7 +206,7 @@ protected = 1 if(!protected) - playsound(src.loc, "sparks", 75, 1, -1) + playsound(src, "sparks", 75, 1, -1) to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") return*/ else //welp, the guy is protected, we can continue @@ -232,7 +232,7 @@ protected = 1 if(!protected) - playsound(src.loc, "sparks", 75, 1, -1) + playsound(src, "sparks", 75, 1, -1) to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") return*/ else diff --git a/code/game/machinery/telecomms/logbrowser.dm b/code/game/machinery/telecomms/logbrowser.dm index f04cf7076a..8cd1d8811e 100644 --- a/code/game/machinery/telecomms/logbrowser.dm +++ b/code/game/machinery/telecomms/logbrowser.dm @@ -192,7 +192,7 @@ /obj/machinery/computer/telecomms/server/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You you disable the security protocols") src.updateUsrDialog() diff --git a/code/game/machinery/telecomms/telemonitor.dm b/code/game/machinery/telecomms/telemonitor.dm index 819108b2ce..51a6ebf991 100644 --- a/code/game/machinery/telecomms/telemonitor.dm +++ b/code/game/machinery/telecomms/telemonitor.dm @@ -127,7 +127,7 @@ /obj/machinery/computer/telecomms/monitor/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You you disable the security protocols") src.updateUsrDialog() diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index 686a764ada..51c09d95e3 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -210,7 +210,7 @@ /obj/machinery/computer/telecomms/traffic/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You you disable the security protocols") src.updateUsrDialog() diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm index c9c8ba20ae..621feae713 100644 --- a/code/game/machinery/transformer.dm +++ b/code/game/machinery/transformer.dm @@ -28,14 +28,14 @@ if(stat & (BROKEN|NOPOWER)) return if(!transform_dead && H.stat == DEAD) - playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) return - playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) + playsound(src, 'sound/items/Welder.ogg', 50, 1) use_power(5000) // Use a lot of power. var/mob/living/silicon/robot = H.Robotize() robot.SetLockDown() spawn(50) // So he can't jump out the gate right away. - playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) + playsound(src, 'sound/machines/ping.ogg', 50, 0) if(robot) robot.SetLockDown(0) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 17483c09bc..4ac6f6259c 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -252,7 +252,7 @@ */ /obj/machinery/vending/proc/pay_with_ewallet(var/obj/item/weapon/spacecash/ewallet/wallet) visible_message("\The [usr] swipes \the [wallet] through \the [src].") - playsound(src.loc, 'sound/machines/id_swipe.ogg', 50, 1) + playsound(src, 'sound/machines/id_swipe.ogg', 50, 1) if(currently_vending.price > wallet.worth) status_message = "Insufficient funds on chargecard." status_error = 1 @@ -273,7 +273,7 @@ visible_message("\The [usr] swipes \the [I] through \the [src].") else visible_message("\The [usr] swipes \the [ID_container] through \the [src].") - playsound(src.loc, 'sound/machines/id_swipe.ogg', 50, 1) + playsound(src, 'sound/machines/id_swipe.ogg', 50, 1) var/datum/money_account/customer_account = get_account(I.associated_account_number) if(!customer_account) status_message = "Error: Unable to access account. Please contact technical support if problem persists." @@ -429,7 +429,7 @@ if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH to_chat(usr, "Access denied.") //Unless emagged of course flick("[icon_state]-deny",src) - playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0) + playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0) return var/key = text2num(href_list["vend"]) @@ -466,7 +466,7 @@ if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH to_chat(usr, "Access denied.") //Unless emagged of course flick("[icon_state]-deny",src) - playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0) + playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0) return vend_ready = 0 //One thing at a time!! status_message = "Vending..." @@ -505,7 +505,7 @@ sleep(3) if(R.get_product(get_turf(src))) visible_message("\The [src] clunks as it vends an additional item.") - playsound(src.loc, "sound/[vending_sound]", 100, 1, 1) + playsound(src, "sound/[vending_sound]", 100, 1, 1) status_message = "" status_error = 0 diff --git a/code/game/mecha/combat/fighter.dm b/code/game/mecha/combat/fighter.dm index 5b04451dce..9d0fd7cfbf 100644 --- a/code/game/mecha/combat/fighter.dm +++ b/code/game/mecha/combat/fighter.dm @@ -164,7 +164,7 @@ else if(moved && gravity && !ground_capable) occupant_message("Collision alert! Vehicle not rated for use in gravity!") take_damage(NOGRAV_FIGHTER_DAMAGE, "brute") - playsound(loc, 'sound/effects/grillehit.ogg', 50, 1) + playsound(src, 'sound/effects/grillehit.ogg', 50, 1) /obj/mecha/combat/fighter/handle_equipment_movement() . = ..() diff --git a/code/game/mecha/combat/gorilla.dm b/code/game/mecha/combat/gorilla.dm index e413fc892a..2f75de4a15 100644 --- a/code/game/mecha/combat/gorilla.dm +++ b/code/game/mecha/combat/gorilla.dm @@ -179,7 +179,7 @@ src.occupant_message("Zoom mode [zoom?"en":"dis"]abled.") if(zoom) src.occupant.set_viewsize(12) - playsound(src.occupant, 'sound/mecha/imag_enh.ogg',50) + playsound(src, 'sound/mecha/imag_enh.ogg',50) else src.occupant.set_viewsize() // Reset to default return diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm index 56a2169b06..678ac64910 100644 --- a/code/game/mecha/equipment/mecha_equipment.dm +++ b/code/game/mecha/equipment/mecha_equipment.dm @@ -32,7 +32,7 @@ sleep(equip_cooldown) set_ready_state(1) if(ready_sound) //Kind of like the kinetic accelerator. - playsound(loc, ready_sound, 50, 1, -1) + playsound(src, ready_sound, 50, 1, -1) if(target && chassis) return 1 return 0 diff --git a/code/game/mecha/equipment/tools/clamp.dm b/code/game/mecha/equipment/tools/clamp.dm index a587d89568..6091764c2b 100644 --- a/code/game/mecha/equipment/tools/clamp.dm +++ b/code/game/mecha/equipment/tools/clamp.dm @@ -33,7 +33,7 @@ if(FD.blocked) FD.visible_message("\The [chassis] begins prying on \the [FD]!") if(do_after(chassis.occupant,10 SECONDS,FD)) - playsound(FD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(FD, 'sound/machines/airlock_creaking.ogg', 100, 1) FD.blocked = 0 FD.update_icon() FD.open(1) @@ -41,7 +41,7 @@ else if(FD.density) FD.visible_message("\The [chassis] begins forcing \the [FD] open!") if(do_after(chassis.occupant, 5 SECONDS,FD)) - playsound(FD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(FD, 'sound/machines/airlock_creaking.ogg', 100, 1) FD.visible_message("\The [chassis] forces \the [FD] open!") FD.open(1) else @@ -57,7 +57,7 @@ if(do_after(chassis.occupant, 15 SECONDS,AD) && chassis.Adjacent(AD)) AD.welded = FALSE AD.update_icon() - playsound(AD.loc, 'sound/machines/airlock_creaking.ogg', 100, 1) + playsound(AD, 'sound/machines/airlock_creaking.ogg', 100, 1) AD.visible_message("\The [chassis] tears \the [AD] open!") if(!AD.welded) if(density) @@ -100,15 +100,15 @@ M.adjustOxyLoss(round(dam_force/2)) M.updatehealth() occupant_message("You squeeze [target] with [src.name]. Something cracks.") - playsound(src.loc, "fracture", 5, 1, -2) //CRACK + playsound(src, "fracture", 5, 1, -2) //CRACK chassis.visible_message("[chassis] squeezes [target].") else if(chassis.occupant.a_intent == I_DISARM && enable_special) - playsound(src.loc, 'sound/mecha/hydraulic.ogg', 10, 1, -2) + playsound(src, 'sound/mecha/hydraulic.ogg', 10, 1, -2) M.take_overall_damage(dam_force/2) M.adjustOxyLoss(round(dam_force/3)) M.updatehealth() occupant_message("You slam [target] with [src.name]. Something cracks.") - playsound(src.loc, "fracture", 3, 1, -2) //CRACK 2 + playsound(src, "fracture", 3, 1, -2) //CRACK 2 chassis.visible_message("[chassis] slams [target].") M.throw_at(get_step(M,get_dir(src, M)), 14, 1.5, chassis) else diff --git a/code/game/mecha/equipment/tools/cloak.dm b/code/game/mecha/equipment/tools/cloak.dm index 6f6ddd1c8f..e78a4f7395 100644 --- a/code/game/mecha/equipment/tools/cloak.dm +++ b/code/game/mecha/equipment/tools/cloak.dm @@ -46,7 +46,7 @@ log_message("Activated.") cloak_iterator.start() set_ready_state(0) - playsound(get_turf(src), 'sound/effects/EMPulse.ogg', 100, 1) + playsound(src, 'sound/effects/EMPulse.ogg', 100, 1) /obj/item/mecha_parts/mecha_equipment/cloak/proc/stop_cloak() if(chassis) @@ -54,7 +54,7 @@ log_message("Deactivated.") cloak_iterator.stop() set_ready_state(1) - playsound(get_turf(src), 'sound/effects/EMPulse.ogg', 100, 1) + playsound(src, 'sound/effects/EMPulse.ogg', 100, 1) // These things are so silly /datum/global_iterator/mecha_cloak/process(var/obj/item/mecha_parts/mecha_equipment/cloak/cloak) diff --git a/code/game/mecha/equipment/tools/extinguisher.dm b/code/game/mecha/equipment/tools/extinguisher.dm index 4ed6735b62..98712726c0 100644 --- a/code/game/mecha/equipment/tools/extinguisher.dm +++ b/code/game/mecha/equipment/tools/extinguisher.dm @@ -25,14 +25,14 @@ var/obj/o = target var/amount = o.reagents.trans_to_obj(src, 200) occupant_message("[amount] units transferred into internal tank.") - playsound(chassis, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) return if (src.reagents.total_volume < 1) occupant_message("\The [src] is empty.") return - playsound(chassis, 'sound/effects/extinguish.ogg', 75, 1, -3) + playsound(src, 'sound/effects/extinguish.ogg', 75, 1, -3) var/direction = get_dir(chassis,target) diff --git a/code/game/mecha/equipment/tools/syringe_gun.dm b/code/game/mecha/equipment/tools/syringe_gun.dm index 57e63b7829..a914839869 100644 --- a/code/game/mecha/equipment/tools/syringe_gun.dm +++ b/code/game/mecha/equipment/tools/syringe_gun.dm @@ -67,7 +67,7 @@ syringes -= S S.icon = 'icons/obj/chemical.dmi' S.icon_state = "syringeproj" - playsound(chassis, 'sound/items/syringeproj.ogg', 50, 1) + playsound(src, 'sound/items/syringeproj.ogg', 50, 1) log_message("Launched [S] from [src], targeting [target].") spawn(-1) src = null //if src is deleted, still process the syringe diff --git a/code/game/mecha/equipment/weapons/honk.dm b/code/game/mecha/equipment/weapons/honk.dm index 921111a6cd..427d53295c 100644 --- a/code/game/mecha/equipment/weapons/honk.dm +++ b/code/game/mecha/equipment/weapons/honk.dm @@ -16,7 +16,7 @@ if(!equip_ready) return 0 - playsound(chassis, 'sound/effects/bang.ogg', 30, 1, 30) + playsound(src, 'sound/effects/bang.ogg', 30, 1, 30) chassis.occupant_message("You emit a high-pitched noise from the mech.") for(var/mob/living/carbon/M in ohearers(6, chassis)) if(istype(M, /mob/living/carbon/human)) diff --git a/code/game/mecha/equipment/weapons/weapons.dm b/code/game/mecha/equipment/weapons/weapons.dm index 5d01416785..355ce629ac 100644 --- a/code/game/mecha/equipment/weapons/weapons.dm +++ b/code/game/mecha/equipment/weapons/weapons.dm @@ -36,7 +36,7 @@ aimloc = locate(targloc.x+GaussRandRound(deviation,1),targloc.y+GaussRandRound(deviation,1),targloc.z) if(!aimloc || aimloc == curloc || (locs && aimloc in locs)) break - playsound(chassis, fire_sound, fire_volume, 1) + playsound(src, fire_sound, fire_volume, 1) projectiles-- var/turf/projectile_turf if(chassis.locs && chassis.locs.len) // Multi tile. diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 594c89a4ee..d030979576 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -673,12 +673,12 @@ if(!prob(src.deflect_chance)) src.take_damage(15) src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) - playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1) to_chat(user, "You slash at the armored suit!") visible_message("\The [user] slashes at [src.name]'s armor!") else src.log_append_to_last("Armor saved.") - playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1) to_chat(user, "Your claws had no effect!") src.occupant_message("\The [user]'s claws are stopped by the armor.") visible_message("\The [user] rebounds off [src.name]'s armor!") @@ -807,14 +807,14 @@ if(!prob(src.deflect_chance)) src.take_damage(6) src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) - playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1) + playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1) to_chat(user, "You smash at the armored suit!") for (var/mob/V in viewers(src)) if(V.client && !(V.blinded)) V.show_message("\The [user] smashes against [src.name]'s armor!", 1) else src.log_append_to_last("Armor saved.") - playsound(src.loc, 'sound/effects/blobattack.ogg', 50, 1, -1) + playsound(src, 'sound/effects/blobattack.ogg', 50, 1, -1) to_chat(user, "Your attack had no effect!") src.occupant_message("\The [user]'s attack is stopped by the armor.") for (var/mob/V in viewers(src)) @@ -2023,7 +2023,7 @@ user.attack_log += text("\[[time_stamp()]\] attacked [src.name]") else src.log_append_to_last("Armor saved.") - playsound(src.loc, 'sound/weapons/slash.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/slash.ogg', 50, 1, -1) src.occupant_message("\The [user]'s attack is stopped by the armor.") visible_message("\The [user] rebounds off [src.name]'s armor!") user.attack_log += text("\[[time_stamp()]\] attacked [src.name]") diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index 3d4c2ffe37..171fcadd22 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -135,7 +135,7 @@ // step_towards(M, src) . = buckle_mob(M, forced) - playsound(src.loc, 'sound/effects/seatbelt.ogg', 50, 1) + playsound(src, 'sound/effects/seatbelt.ogg', 50, 1) if(.) var/reveal_message = list("buckled_mob" = null, "buckled_to" = null) //VORE EDIT: This being a list and messages existing for the buckle target atom. if(!silent) @@ -163,7 +163,7 @@ /atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user) var/mob/living/M = unbuckle_mob(buckled_mob) - playsound(src.loc, 'sound/effects/seatbelt.ogg', 50, 1) + playsound(src, 'sound/effects/seatbelt.ogg', 50, 1) if(M) if(M != user) M.visible_message(\ diff --git a/code/game/objects/effects/alien/aliens.dm b/code/game/objects/effects/alien/aliens.dm index d11b054730..3d2676c4dd 100644 --- a/code/game/objects/effects/alien/aliens.dm +++ b/code/game/objects/effects/alien/aliens.dm @@ -66,7 +66,7 @@ /obj/effect/alien/resin/attack_generic(var/mob/user, var/damage, var/attack_verb) visible_message("[user] [attack_verb] the [src]!") - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) user.do_attack_animation(src) health -= damage healthcheck() @@ -100,7 +100,7 @@ tforce = 10 else tforce = AM:throwforce - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) health = max(0, health - tforce) healthcheck() ..() @@ -137,7 +137,7 @@ user.setClickCooldown(user.get_attack_speed(W)) var/aforce = W.force health = max(0, health - aforce) - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) healthcheck() ..() return @@ -328,7 +328,7 @@ if(WT.remove_fuel(0, user)) damage = 15 - playsound(loc, 'sound/items/Welder.ogg', 100, 1) + playsound(src, 'sound/items/Welder.ogg', 100, 1) health -= damage healthcheck() @@ -531,7 +531,7 @@ if(WT.remove_fuel(0, user)) damage = 15 - playsound(src.loc, 'sound/items/Welder.ogg', 100, 1) + playsound(src, 'sound/items/Welder.ogg', 100, 1) src.health -= damage src.healthcheck() diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm index b0a28aa490..4222f58e35 100644 --- a/code/game/objects/effects/decals/contraband.dm +++ b/code/game/objects/effects/decals/contraband.dm @@ -146,7 +146,7 @@ /obj/structure/sign/poster/attackby(obj/item/weapon/W as obj, mob/user as mob) if(W.is_wirecutter()) - playsound(src.loc, W.usesound, 100, 1) + playsound(src, W.usesound, 100, 1) if(ruined) to_chat(user, "You remove the remnants of the poster.") qdel(src) @@ -166,7 +166,7 @@ return visible_message("[user] rips [src] in a single, decisive motion!" ) - playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1) + playsound(src, 'sound/items/poster_ripped.ogg', 100, 1) ruined = 1 icon_state = "poster_ripped" name = "ripped poster" diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index b872f9b3d3..15931b5868 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -98,7 +98,7 @@ steam.start() -- spawns the effect /obj/effect/effect/sparks/New() ..() - playsound(src.loc, "sparks", 100, 1) + playsound(src, "sparks", 100, 1) var/turf/T = src.loc if (istype(T, /turf)) T.hotspot_expose(1000,100) diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm index f2a15be551..1497e4e7a0 100644 --- a/code/game/objects/effects/mines.dm +++ b/code/game/objects/effects/mines.dm @@ -61,7 +61,7 @@ panel_open = !panel_open user.visible_message("[user] very carefully screws the mine's panel [panel_open ? "open" : "closed"].", "You very carefully screw the mine's panel [panel_open ? "open" : "closed"].") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) else if((W.is_wirecutter() || istype(W, /obj/item/device/multitool)) && panel_open) interact(user) @@ -224,7 +224,7 @@ msg_admin_attack("[key_name_admin(user)] primed \a [src]") user.visible_message("[user] starts priming \the [src.name].", "You start priming \the [src.name]. Hold still!") if(do_after(user, 10 SECONDS)) - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3) prime(user) else visible_message("[user] triggers \the [src.name]!", "You accidentally trigger \the [src.name]!") diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 6fd5f0b386..c938476cd4 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -508,7 +508,7 @@ var/list/global/slot_flags_enumeration = list( var/hit_zone = get_zone_with_miss_chance(U.zone_sel.selecting, M, U.get_accuracy_penalty(U)) if(!hit_zone) U.do_attack_animation(M) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) //visible_message("[U] attempts to stab [M] in the eyes, but misses!") for(var/mob/V in viewers(M)) V.show_message("[U] attempts to stab [M] in the eyes, but misses!") diff --git a/code/game/objects/items/bells.dm b/code/game/objects/items/bells.dm index af9d7ce0f8..c05c7d2686 100644 --- a/code/game/objects/items/bells.dm +++ b/code/game/objects/items/bells.dm @@ -19,7 +19,7 @@ /obj/item/weapon/deskbell/attack(mob/target as mob, mob/living/user as mob) if(!broken) - playsound(user.loc, 'sound/effects/deskbell.ogg', 50, 1) + playsound(src, 'sound/effects/deskbell.ogg', 50, 1) ..() /obj/item/weapon/deskbell/attack_hand(mob/user) @@ -61,12 +61,12 @@ /obj/item/weapon/deskbell/proc/ring(mob/user) if(user.a_intent == "harm") - playsound(user.loc, 'sound/effects/deskbell_rude.ogg', 50, 1) + playsound(src, 'sound/effects/deskbell_rude.ogg', 50, 1) to_chat(user,"You hammer [src] rudely!") if (prob(2)) break_bell(user) else - playsound(user.loc, 'sound/effects/deskbell.ogg', 50, 1) + playsound(src, 'sound/effects/deskbell.ogg', 50, 1) to_chat(user,"You gracefully ring [src].") /obj/item/weapon/deskbell/proc/check_ability(mob/user) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 6277d24e20..74fa1b56d6 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -330,7 +330,7 @@ var/global/list/obj/item/device/pda/PDAs = list() /obj/item/device/pda/ai/attack_self(mob/user as mob) if ((honkamt > 0) && (prob(60)))//For clown virus. honkamt-- - playsound(loc, 'sound/items/bikehorn.ogg', 30, 1) + playsound(src, 'sound/items/bikehorn.ogg', 30, 1) return @@ -774,7 +774,7 @@ var/global/list/obj/item/device/pda/PDAs = list() scanmode = 4 if("Honk") if ( !(last_honk && world.time < last_honk + 20) ) - playsound(loc, 'sound/items/bikehorn.ogg', 50, 1) + playsound(src, 'sound/items/bikehorn.ogg', 50, 1) last_honk = world.time if("Gas Scan") if(scanmode == 5) @@ -983,7 +983,7 @@ var/global/list/obj/item/device/pda/PDAs = list() if ((honkamt > 0) && (prob(60)))//For clown virus. honkamt-- - playsound(loc, 'sound/items/bikehorn.ogg', 30, 1) + playsound(src, 'sound/items/bikehorn.ogg', 30, 1) return 1 // return 1 tells it to refresh the UI in NanoUI @@ -1020,14 +1020,14 @@ var/global/list/obj/item/device/pda/PDAs = list() var/datum/effect/effect/system/smoke_spread/chem/S = new /datum/effect/effect/system/smoke_spread/chem S.attach(P.loc) S.set_up(P, 10, 0, P.loc) - playsound(P.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(P, 'sound/effects/smoke.ogg', 50, 1, -3) S.start() message += "Large clouds of smoke billow forth from your [P]!" if(i>=40 && i<=45) //Bad smoke var/datum/effect/effect/system/smoke_spread/bad/B = new /datum/effect/effect/system/smoke_spread/bad B.attach(P.loc) B.set_up(P, 10, 0, P.loc) - playsound(P.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(P, 'sound/effects/smoke.ogg', 50, 1, -3) B.start() message += "Large clouds of noxious smoke billow forth from your [P]!" if(i>=65 && i<=75) //Weaken @@ -1064,7 +1064,7 @@ var/global/list/obj/item/device/pda/PDAs = list() var/mob/M = loc M.put_in_hands(id) to_chat(usr, "You remove the ID from the [name].") - playsound(loc, 'sound/machines/id_swipe.ogg', 100, 1) + playsound(src, 'sound/machines/id_swipe.ogg', 100, 1) else id.loc = get_turf(src) id = null @@ -1151,7 +1151,7 @@ var/global/list/obj/item/device/pda/PDAs = list() /obj/item/device/pda/proc/new_info(var/beep_silent, var/message_tone, var/reception_message) if (!beep_silent) - playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) for (var/mob/O in hearers(2, loc)) O.show_message(text("[bicon(src)] *[message_tone]*")) //Search for holder of the PDA. @@ -1280,7 +1280,7 @@ var/global/list/obj/item/device/pda/PDAs = list() if (cartridge.radio) cartridge.radio.hostpda = null to_chat(usr, "You remove \the [cartridge] from the [name].") - playsound(loc, 'sound/machines/id_swipe.ogg', 100, 1) + playsound(src, 'sound/machines/id_swipe.ogg', 100, 1) cartridge = null /obj/item/device/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use. diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 627145a38f..d6f42bee8f 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -31,7 +31,7 @@ if(!proximity) return if(!active_dummy) if(istype(target,/obj/item) && !istype(target, /obj/item/weapon/disk/nuclear)) - playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6) + playsound(src, 'sound/weapons/flash.ogg', 100, 1, -6) to_chat(user, "Scanned [target].") saved_item = target.type saved_icon = target.icon @@ -42,7 +42,7 @@ if(!can_use || !saved_item) return if(active_dummy) eject_all() - playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) + playsound(src, 'sound/effects/pop.ogg', 100, 1, -6) qdel(active_dummy) active_dummy = null to_chat(usr, "You deactivate the [src].") @@ -51,7 +51,7 @@ flick("emppulse",T) spawn(8) qdel(T) else - playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) + playsound(src, 'sound/effects/pop.ogg', 100, 1, -6) var/obj/O = new saved_item(src) if(!O) return var/obj/effect/dummy/chameleon/C = new /obj/effect/dummy/chameleon(usr.loc) diff --git a/code/game/objects/items/devices/communicator/messaging.dm b/code/game/objects/items/devices/communicator/messaging.dm index 57e480957f..263f6d4db3 100644 --- a/code/game/objects/items/devices/communicator/messaging.dm +++ b/code/game/objects/items/devices/communicator/messaging.dm @@ -76,7 +76,7 @@ return if(ringer) - playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) for (var/mob/O in hearers(2, loc)) O.show_message(text("[bicon(src)] *beep*")) diff --git a/code/game/objects/items/devices/communicator/phone.dm b/code/game/objects/items/devices/communicator/phone.dm index d7816fbb82..7075dbe958 100644 --- a/code/game/objects/items/devices/communicator/phone.dm +++ b/code/game/objects/items/devices/communicator/phone.dm @@ -161,7 +161,7 @@ voice_requests |= candidate if(ringer) - playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) for (var/mob/O in hearers(2, loc)) O.show_message(text("[bicon(src)] *beep*")) diff --git a/code/game/objects/items/devices/defib.dm b/code/game/objects/items/devices/defib.dm index 8df119f0d5..80a015e7bf 100644 --- a/code/game/objects/items/devices/defib.dm +++ b/code/game/objects/items/devices/defib.dm @@ -395,12 +395,12 @@ if(!do_after(user, 30, H)) return user.visible_message("\The [user] places [src] on [H]'s chest.", "You place [src] on [H]'s chest.") - playsound(get_turf(src), 'sound/machines/defib_charge.ogg', 50, 0) + playsound(src, 'sound/machines/defib_charge.ogg', 50, 0) var/error = can_defib(H) if(error) make_announcement(error, "warning") - playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) + playsound(src, 'sound/machines/defib_failed.ogg', 50, 0) return if(check_blood_level(H)) @@ -413,18 +413,18 @@ //deduct charge here, in case the base unit was EMPed or something during the delay time if(!checked_use(chargecost)) make_announcement("buzzes, \"Insufficient charge.\"", "warning") - playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) + playsound(src, 'sound/machines/defib_failed.ogg', 50, 0) return H.visible_message("\The [H]'s body convulses a bit.") - playsound(get_turf(src), "bodyfall", 50, 1) - playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(src, "bodyfall", 50, 1) + playsound(src, 'sound/machines/defib_zap.ogg', 50, 1, -1) set_cooldown(cooldowntime) error = can_revive(H) if(error) make_announcement(error, "warning") - playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) + playsound(src, 'sound/machines/defib_failed.ogg', 50, 0) return H.apply_damage(burn_damage_amt, BURN, BP_TORSO) @@ -438,7 +438,7 @@ H.adjustToxLoss(-H.getToxLoss()) make_announcement("pings, \"Resuscitation successful.\"", "notice") - playsound(get_turf(src), 'sound/machines/defib_success.ogg', 50, 0) + playsound(src, 'sound/machines/defib_success.ogg', 50, 0) make_alive(H) @@ -459,7 +459,7 @@ to_chat(user, "You can't do that while the safety is enabled.") return - playsound(get_turf(src), 'sound/machines/defib_charge.ogg', 50, 0) + playsound(src, 'sound/machines/defib_charge.ogg', 50, 0) audible_message("\The [src] lets out a steadily rising hum...") if(!do_after(user, chargetime, H)) @@ -468,12 +468,12 @@ //deduct charge here, in case the base unit was EMPed or something during the delay time if(!checked_use(chargecost)) make_announcement("buzzes, \"Insufficient charge.\"", "warning") - playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0) + playsound(src, 'sound/machines/defib_failed.ogg', 50, 0) return user.visible_message("\The [user] shocks [H] with \the [src]!", "You shock [H] with \the [src]!") - playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 100, 1, -1) - playsound(loc, 'sound/weapons/Egloves.ogg', 100, 1, -1) + playsound(src, 'sound/machines/defib_zap.ogg', 100, 1, -1) + playsound(src, 'sound/weapons/Egloves.ogg', 100, 1, -1) set_cooldown(cooldowntime) H.stun_effect_act(2, 120, target_zone) @@ -547,10 +547,10 @@ safety = new_safety if(safety) make_announcement("beeps, \"Safety protocols enabled!\"", "notice") - playsound(get_turf(src), 'sound/machines/defib_safetyon.ogg', 50, 0) + playsound(src, 'sound/machines/defib_safetyon.ogg', 50, 0) else make_announcement("beeps, \"Safety protocols disabled!\"", "warning") - playsound(get_turf(src), 'sound/machines/defib_safetyoff.ogg', 50, 0) + playsound(src, 'sound/machines/defib_safetyoff.ogg', 50, 0) update_icon() ..() diff --git a/code/game/objects/items/devices/flash.dm b/code/game/objects/items/devices/flash.dm index bd7a4687ae..2247674f60 100644 --- a/code/game/objects/items/devices/flash.dm +++ b/code/game/objects/items/devices/flash.dm @@ -48,7 +48,7 @@ user.visible_message("\The [user] successfully repairs \the [src]!") broken = FALSE update_icon() - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) else user.visible_message("\The [user] fails to repair \the [src].") repairing = FALSE @@ -138,7 +138,7 @@ if(user) update_icon() to_chat(user, "click") - playsound(src.loc, 'sound/weapons/empty.ogg', 80, 1) + playsound(src, 'sound/weapons/empty.ogg', 80, 1) return FALSE else if(battery && battery.checked_use(charge_cost + (round(charge_cost / 4) * max(0, times_used - max_flashes)))) // Using over your maximum flashes starts taking more charge per added flash. times_used++ @@ -164,7 +164,7 @@ if(!check_capacitor(user)) return - playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1) + playsound(src, 'sound/weapons/flash.ogg', 100, 1) var/flashfail = 0 //VOREStation Add - NIF @@ -253,7 +253,7 @@ if(!check_capacitor(user)) return - playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1) + playsound(src, 'sound/weapons/flash.ogg', 100, 1) flick("flash2", src) if(user && isrobot(user)) spawn(0) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index c908f30e17..d45f4ff716 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -60,7 +60,7 @@ if(cell.use(power_usage) != power_usage) // we weren't able to use our full power_usage amount! visible_message("\The [src] flickers before going dull.") set_light(0) - playsound(src.loc, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket. + playsound(src, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket. on = 0 update_icon() return PROCESS_KILL @@ -109,7 +109,7 @@ START_PROCESSING(SSobj, src) else if(power_use) STOP_PROCESSING(SSobj, src) - playsound(src.loc, 'sound/weapons/empty.ogg', 15, 1, -3) + playsound(src, 'sound/weapons/empty.ogg', 15, 1, -3) update_icon() user.update_action_buttons() return 1 diff --git a/code/game/objects/items/devices/hacktool.dm b/code/game/objects/items/devices/hacktool.dm index 0b6d25f0c9..a48a3da024 100644 --- a/code/game/objects/items/devices/hacktool.dm +++ b/code/game/objects/items/devices/hacktool.dm @@ -26,7 +26,7 @@ /obj/item/device/multitool/hacktool/attackby(var/obj/item/W, var/mob/user) if(W.is_screwdriver()) in_hack_mode = !in_hack_mode - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) else ..() diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm index 3ce7a0b236..6ae95bcf8a 100644 --- a/code/game/objects/items/devices/lightreplacer.dm +++ b/code/game/objects/items/devices/lightreplacer.dm @@ -96,7 +96,7 @@ new_bulbs += AddShards(1) qdel(L) if(new_bulbs != 0) - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) to_chat(user, "You insert \the [L.name] into \the [src.name]. You have [uses] light\s remaining.") return @@ -148,7 +148,7 @@ /obj/item/device/lightreplacer/proc/Use(var/mob/user) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) add_uses(-1) return 1 @@ -182,7 +182,7 @@ var/new_bulbs = AddShards(1) if(new_bulbs != 0) to_chat(U, "\The [src] has fabricated a new bulb from the broken bulbs it has stored. It now has [uses] uses.") - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) target.status = LIGHT_EMPTY target.update() @@ -211,7 +211,7 @@ /obj/item/device/lightreplacer/emag_act(var/remaining_charges, var/mob/user) emagged = !emagged - playsound(src.loc, "sparks", 100, 1) + playsound(src, "sparks", 100, 1) update_icon() return 1 diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm index 7e7bbdb629..5516ccb099 100644 --- a/code/game/objects/items/devices/megaphone.dm +++ b/code/game/objects/items/devices/megaphone.dm @@ -134,7 +134,7 @@ user.audible_message("[user.GetVoice()][user.GetAltName()] broadcasts, \"[pick(insultmsg)]\"") if(broadcast_size >= 11) var/turf/T = get_turf(user) - playsound(T, 'sound/items/AirHorn.ogg', 100, 1) + playsound(src, 'sound/items/AirHorn.ogg', 100, 1) for(var/mob/living/carbon/M in oviewers(4, T)) if(M.get_ear_protection() >= 2) continue diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm index 6847bb6fb0..820229fd83 100644 --- a/code/game/objects/items/devices/modkit.dm +++ b/code/game/objects/items/devices/modkit.dm @@ -47,7 +47,7 @@ to_chat(user, "[O] must be safely placed on the ground for modification.") return - playsound(src.loc, O.usesound, 100, 1) + playsound(src, O.usesound, 100, 1) user.visible_message("\The [user] opens \the [src] and modifies \the [O].","You open \the [src] and modify \the [O].") diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 7a9b07b999..3ddc35a209 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. add_attack_logs(user,affected,"Used a [name]") - playsound(src.loc, 'sound/misc/interference.ogg', 50, 1) + playsound(src, 'sound/misc/interference.ogg', 50, 1) to_chat(user, "You trigger [src].") times_used += 1 if(times_used >= max_uses) diff --git a/code/game/objects/items/devices/translocator_vr.dm b/code/game/objects/items/devices/translocator_vr.dm index 40c61b1c2c..6778bfae7a 100644 --- a/code/game/objects/items/devices/translocator_vr.dm +++ b/code/game/objects/items/devices/translocator_vr.dm @@ -506,7 +506,7 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/device/perfect_tele_beac while(recharging) if(!do_after(user, 10, src)) break - playsound(get_turf(src),'sound/items/change_drill.ogg',25,1) + playsound(src,'sound/items/change_drill.ogg',25,1) if(power_source.give(phase_power) < phase_power) break diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index c26d3f80aa..cf8cebeec1 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -32,11 +32,11 @@ return if(isnull(insults)) - playsound(get_turf(src), 'sound/voice/halt.ogg', 100, 1, vary = 0) + playsound(src, 'sound/voice/halt.ogg', 100, 1, vary = 0) user.audible_message("[user]'s [name] rasps, \"[use_message]\"", "\The [user] holds up \the [name].") else if(insults > 0) - playsound(get_turf(src), 'sound/voice/binsult.ogg', 100, 1, vary = 0) + playsound(src, 'sound/voice/binsult.ogg', 100, 1, vary = 0) // Yes, it used to show the transcription of the sound clip. That was a) inaccurate b) immature as shit. user.audible_message("[user]'s [name] gurgles something indecipherable and deeply offensive.", "\The [user] holds up \the [name].") insults-- diff --git a/code/game/objects/items/falling_object_vr.dm b/code/game/objects/items/falling_object_vr.dm index 038fc51025..2769b7f013 100644 --- a/code/game/objects/items/falling_object_vr.dm +++ b/code/game/objects/items/falling_object_vr.dm @@ -38,7 +38,7 @@ for(var/mob/living/M in oviewers(3, src)) shake_camera(M, 2, 2) - playsound(loc, 'sound/effects/meteorimpact.ogg', 50, 1) + playsound(src, 'sound/effects/meteorimpact.ogg', 50, 1) density = initial(density) opacity = initial(opacity) plane = initial(plane) diff --git a/code/game/objects/items/paintkit.dm b/code/game/objects/items/paintkit.dm index f3bd0c1d3a..223c9a2018 100644 --- a/code/game/objects/items/paintkit.dm +++ b/code/game/objects/items/paintkit.dm @@ -16,7 +16,7 @@ /obj/item/device/kit/proc/use(var/amt, var/mob/user) uses -= amt - playsound(get_turf(user), 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) if(uses<1) user.drop_item() qdel(src) diff --git a/code/game/objects/items/stacks/marker_beacons.dm b/code/game/objects/items/stacks/marker_beacons.dm index 88eb8e6271..5c7ed3aa04 100644 --- a/code/game/objects/items/stacks/marker_beacons.dm +++ b/code/game/objects/items/stacks/marker_beacons.dm @@ -58,7 +58,7 @@ var/list/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(src, 'sound/machines/click.ogg', 50, 1) var/obj/structure/marker_beacon/M = new(user.loc, picked_color) transfer_fingerprints_to(M) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 7e89f96807..eb432d63c1 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -181,7 +181,7 @@ bullets-- D.icon_state = "foamdart" D.name = "foam dart" - playsound(user.loc, 'sound/items/syringeproj.ogg', 50, 1) + playsound(src, 'sound/items/syringeproj.ogg', 50, 1) for(var/i=0, i<6, i++) if (D) @@ -229,7 +229,7 @@ O.show_message(text("\The [] casually lines up a shot with []'s head and pulls the trigger!", user, M), 1, "You hear the sound of foam against skull", 2) O.show_message(text("\The [] was hit in the head by the foam dart!", M), 1) - playsound(user.loc, 'sound/items/syringeproj.ogg', 50, 1) + playsound(src, 'sound/items/syringeproj.ogg', 50, 1) new /obj/item/toy/ammo/crossbow(M.loc) src.bullets-- else if (M.lying && src.bullets == 0) @@ -278,12 +278,12 @@ src.active = !( src.active ) if (src.active) to_chat(user, "You extend the plastic blade with a quick flick of your wrist.") - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) src.item_state = "[icon_state]_blade" src.w_class = ITEMSIZE_LARGE else to_chat(user, "You push the plastic blade back down into the handle.") - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) src.item_state = "[icon_state]" src.w_class = ITEMSIZE_SMALL update_icon() @@ -397,7 +397,7 @@ /obj/item/toy/bosunwhistle/attack_self(mob/user as mob) if(cooldown < world.time - 35) to_chat(user, "You blow on [src], creating an ear-splitting noise!") - playsound(user, 'sound/misc/boatswain.ogg', 20, 1) + playsound(src, 'sound/misc/boatswain.ogg', 20, 1) cooldown = world.time /* @@ -413,14 +413,14 @@ /obj/item/toy/prize/attack_self(mob/user as mob) if(cooldown < world.time - 8) to_chat(user, "You play with [src].") - playsound(user, 'sound/mecha/mechstep.ogg', 20, 1) + playsound(src, 'sound/mecha/mechstep.ogg', 20, 1) cooldown = world.time /obj/item/toy/prize/attack_hand(mob/user as mob) if(loc == user) if(cooldown < world.time - 8) to_chat(user, "You play with [src].") - playsound(user, 'sound/mecha/mechturn.ogg', 20, 1) + playsound(src, 'sound/mecha/mechturn.ogg', 20, 1) cooldown = world.time return ..() @@ -499,7 +499,7 @@ if(cooldown < world.time) cooldown = (world.time + 30) //3 second cooldown user.visible_message("The [src] says \"[toysay]\".") - playsound(user, 'sound/machines/click.ogg', 20, 1) + playsound(src, 'sound/machines/click.ogg', 20, 1) /obj/item/toy/figure/cmo name = "Chief Medical Officer action figure" @@ -753,12 +753,12 @@ // Attack mob /obj/item/toy/plushie/carp/attack(mob/M as mob, mob/user as mob) - playsound(loc, bitesound, 20, 1) // Play bite sound in local area + playsound(src, bitesound, 20, 1) // Play bite sound in local area return ..() // Attack self /obj/item/toy/plushie/carp/attack_self(mob/user as mob) - playsound(src.loc, bitesound, 20, 1) + playsound(src, bitesound, 20, 1) return ..() @@ -1371,7 +1371,7 @@ if(!cooldown) //for the sanity of everyone var/message = generate_ion_law() to_chat(user, "You press the button on [src].") - playsound(user, 'sound/machines/click.ogg', 20, 1) + playsound(src, 'sound/machines/click.ogg', 20, 1) visible_message("[message]") cooldown = 1 spawn(30) cooldown = 0 @@ -1390,7 +1390,7 @@ if(!cooldown) //for the sanity of everyone var/message = pick("You won't get away this time, Griffin!", "Stop right there, criminal!", "Hoot! Hoot!", "I am the night!") to_chat(user, "You pull the string on the [src].") - //playsound(user, 'sound/misc/hoot.ogg', 25, 1) + //playsound(src, 'sound/misc/hoot.ogg', 25, 1) visible_message("[message]") cooldown = 1 spawn(30) cooldown = 0 @@ -1409,7 +1409,7 @@ if(!cooldown) //for the sanity of everyone var/message = pick("You can't stop me, Owl!", "My plan is flawless! The vault is mine!", "Caaaawwww!", "You will never catch me!") to_chat(user, "You pull the string on the [src].") - //playsound(user, 'sound/misc/caw.ogg', 25, 1) + //playsound(src, 'sound/misc/caw.ogg', 25, 1) visible_message("[message]") cooldown = 1 spawn(30) cooldown = 0 diff --git a/code/game/objects/items/trash_vr.dm b/code/game/objects/items/trash_vr.dm index e60d39321e..7619130ed0 100644 --- a/code/game/objects/items/trash_vr.dm +++ b/code/game/objects/items/trash_vr.dm @@ -4,7 +4,7 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(H.species.trashcan == 1) - playsound(H.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) user.drop_item() forceMove(H.vore_selected) to_chat(H, "You can taste the flavor of garbage. Wait what?") @@ -13,7 +13,7 @@ if(isrobot(M)) var/mob/living/silicon/robot/R = M if(R.module.type == /obj/item/weapon/robot_module/robot/scrubpup) // You can now feed the trash borg yay. - playsound(R.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) user.drop_item() forceMove(R.vore_selected) R.visible_message("[user] feeds [R] with [src]!") diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index 5a0deea83a..d90a462519 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -59,7 +59,7 @@ stored_matter += cartridge.remaining user.drop_from_inventory(W) qdel(W) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) to_chat(user, span("notice", "The RCD now holds [stored_matter]/[max_stored_matter] matter-units.")) return TRUE return ..() @@ -73,7 +73,7 @@ mode_index++ to_chat(user, span("notice", "Changed mode to '[modes[mode_index]]'.")) - playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) + playsound(src, 'sound/effects/pop.ogg', 50, 0) if(prob(20)) src.spark_system.start() @@ -109,7 +109,7 @@ to_chat(user, span("warning", "\The [src] lacks the required material to start.")) return FALSE - playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) var/true_delay = rcd_results[RCD_VALUE_DELAY] * toolspeed @@ -130,7 +130,7 @@ return FALSE if(A.rcd_act(user, src, rcd_results[RCD_VALUE_MODE])) consume_resources(rcd_results[RCD_VALUE_COST]) - playsound(get_turf(A), 'sound/items/deconstruct.ogg', 50, 1) + playsound(A, 'sound/items/deconstruct.ogg', 50, 1) return TRUE // If they moved, kill the beam immediately. diff --git a/code/game/objects/items/weapons/RCD_vr.dm b/code/game/objects/items/weapons/RCD_vr.dm index 65786bc7bc..d120e593f4 100644 --- a/code/game/objects/items/weapons/RCD_vr.dm +++ b/code/game/objects/items/weapons/RCD_vr.dm @@ -77,7 +77,7 @@ to_chat(user, span("warning", "\The [cartridge] dissolves as it empties of compressed matter.")) user.drop_from_inventory(W) qdel(W) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) to_chat(user, span("notice", "The RCD now holds [stored_matter]/[max_stored_matter] matter-units.")) update_icon() return TRUE diff --git a/code/game/objects/items/weapons/RPD_vr.dm b/code/game/objects/items/weapons/RPD_vr.dm index c627956d63..b40f28701f 100644 --- a/code/game/objects/items/weapons/RPD_vr.dm +++ b/code/game/objects/items/weapons/RPD_vr.dm @@ -64,8 +64,8 @@ /obj/item/weapon/pipe_dispenser/suicide_act(mob/user) var/datum/gender/TU = gender_datums[user.get_visible_gender()] user.visible_message("[user] points the end of the RPD down [TU.his] throat and presses a button! It looks like [TU.hes] 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(src, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/items/deconstruct.ogg', 50, 1) return(BRUTELOSS) /obj/item/weapon/pipe_dispenser/attack_self(mob/user) @@ -231,7 +231,7 @@ if(anyclicked) if(playeffect) spark_system.start() - playsound(get_turf(src), 'sound/effects/pop.ogg', 50, 0) + playsound(src, 'sound/effects/pop.ogg', 50, 0) src.interact(usr) /obj/item/weapon/pipe_dispenser/afterattack(atom/A, mob/user as mob, proximity) @@ -255,7 +255,7 @@ if(!istype(A, /obj/machinery/atmospherics/pipe)) return ..() var/obj/machinery/atmospherics/pipe/P = A - playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) P.change_color(pipe_colors[paint_color]) user.visible_message("[user] paints \the [P] [paint_color].", "You paint \the [P] [paint_color].") return @@ -264,7 +264,7 @@ if(!(istype(A, /obj/item/pipe) || istype(A, /obj/item/pipe_meter) || istype(A, /obj/structure/disposalconstruct))) return ..() to_chat(user, "You start destroying a pipe...") - playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 2, target = A)) activate() animate_deletion(A) @@ -272,7 +272,7 @@ if(ATMOS_MODE) //Making pipes if(!can_make_pipe) return ..() - playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) if (istype(recipe, /datum/pipe_recipe/meter)) to_chat(user, "You start building a meter...") if(do_after(user, 2, target = A)) @@ -311,7 +311,7 @@ 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(src, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 4, target = A)) var/obj/structure/disposalconstruct/C = new(A, R.pipe_type, queued_p_dir, queued_p_flipped, R.subtype) @@ -352,7 +352,7 @@ qdel(P) /obj/item/weapon/pipe_dispenser/proc/activate() - playsound(get_turf(src), 'sound/items/deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/deconstruct.ogg', 50, 1) /obj/item/weapon/pipe_dispenser/proc/do_wrench(var/atom/target, mob/user) var/resolved = target.attackby(tool,user) diff --git a/code/game/objects/items/weapons/RSF.dm b/code/game/objects/items/weapons/RSF.dm index 09ac6e4690..d7ced2bc7a 100644 --- a/code/game/objects/items/weapons/RSF.dm +++ b/code/game/objects/items/weapons/RSF.dm @@ -48,7 +48,7 @@ RSF qdel(W) stored_matter += 10 - playsound(src.loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) to_chat(user,"The RSF now holds [stored_matter]/30 fabrication-units.") return @@ -64,7 +64,7 @@ RSF glasstype = /obj/item/weapon/reagent_containers/food/drinks/metaglass /obj/item/weapon/rsf/attack_self(mob/user as mob) - playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) + playsound(src, 'sound/effects/pop.ogg', 50, 0) if (mode == 1) mode = 2 to_chat(user,"Changed dispensing mode to 'Container'.") @@ -101,7 +101,7 @@ RSF if(!istype(A, /obj/structure/table) && !istype(A, /turf/simulated/floor)) return - playsound(src.loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) var/used_energy = 0 var/obj/product diff --git a/code/game/objects/items/weapons/canes.dm b/code/game/objects/items/weapons/canes.dm index f7688fb2d1..5b7f346684 100644 --- a/code/game/objects/items/weapons/canes.dm +++ b/code/game/objects/items/weapons/canes.dm @@ -33,7 +33,7 @@ if(concealed_blade) user.visible_message("[user] has unsheathed \a [concealed_blade] from [T.his] [src]!", "You unsheathe \the [concealed_blade] from \the [src].") // Calling drop/put in hands to properly call item drop/pickup procs - playsound(user.loc, 'sound/weapons/holster/sheathout.ogg', 50, 1) + playsound(src, 'sound/weapons/holster/sheathout.ogg', 50, 1) user.drop_from_inventory(src) user.put_in_hands(concealed_blade) user.put_in_hands(src) @@ -47,7 +47,7 @@ if(!src.concealed_blade && istype(W)) var/datum/gender/T = gender_datums[user.get_visible_gender()] user.visible_message("[user] has sheathed \a [W] into [T.his] [src]!", "You sheathe \the [W] into \the [src].") - playsound(user.loc, 'sound/weapons/holster/sheathin.ogg', 50, 1) + playsound(src, 'sound/weapons/holster/sheathin.ogg', 50, 1) user.drop_from_inventory(W) W.loc = src src.concealed_blade = W @@ -119,6 +119,6 @@ H.update_inv_l_hand() H.update_inv_r_hand() - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) add_fingerprint(user) return TRUE \ No newline at end of file diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm index ffa3753233..3577ea0a55 100644 --- a/code/game/objects/items/weapons/cigs_lighters.dm +++ b/code/game/objects/items/weapons/cigs_lighters.dm @@ -193,7 +193,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM /obj/item/clothing/mask/smokable/proc/die(var/nomessage = 0) var/turf/T = get_turf(src) set_light(0) - playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) + playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) STOP_PROCESSING(SSobj, src) if (type_butt) var/obj/item/butt = new type_butt(T) @@ -215,7 +215,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM var/mob/living/M = loc if (!nomessage) to_chat(M, "Your [name] goes out, and you empty the ash.") - playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) + playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) lit = 0 icon_state = initial(icon_state) item_state = initial(item_state) @@ -327,7 +327,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM if(lit == 1) if(user.a_intent == I_HURT) user.visible_message("[user] drops and treads on the lit [src], putting it out instantly.") - playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) + playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) die(1) else user.visible_message("[user] puts out \the [src].") @@ -421,7 +421,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM if(lit == 1) if(user.a_intent == I_HURT) user.visible_message("[user] empties the lit [src] on the floor!.") - playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) + playsound(src, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) die(1) else user.visible_message("[user] puts out \the [src].") @@ -546,7 +546,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM lit = 1 icon_state = "[base_state]on" item_state = "[base_state]on" - playsound(src.loc, activation_sound, 75, 1) + playsound(src, activation_sound, 75, 1) if(istype(src, /obj/item/weapon/flame/lighter/zippo) ) user.visible_message("Without even breaking stride, [user] flips open and lights [src] in one smooth movement.") else @@ -566,7 +566,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM lit = 0 icon_state = "[base_state]" item_state = "[base_state]" - playsound(src.loc, deactivation_sound, 75, 1) + playsound(src, deactivation_sound, 75, 1) if(istype(src, /obj/item/weapon/flame/lighter/zippo) ) user.visible_message("You hear a quiet click, as [user] shuts off [src] without even looking at what they're doing.") else diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm index 1f53e64e77..73604b49f9 100644 --- a/code/game/objects/items/weapons/clown_items.dm +++ b/code/game/objects/items/weapons/clown_items.dm @@ -71,7 +71,7 @@ /obj/item/weapon/bikehorn/attack_self(mob/user as mob) if (spam_flag == 0) spam_flag = 1 - playsound(src.loc, 'sound/items/bikehorn.ogg', 50, 1) + playsound(src, 'sound/items/bikehorn.ogg', 50, 1) src.add_fingerprint(user) spawn(20) spam_flag = 0 diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm index c50998557e..ca8a538646 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -75,7 +75,7 @@ var/obj/o = target var/amount = o.reagents.trans_to_obj(src, 50) to_chat(user, "You fill [src] with [amount] units of the contents of [target].") - playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) return if (!safety) @@ -88,7 +88,7 @@ src.last_use = world.time - playsound(src.loc, 'sound/effects/extinguish.ogg', 75, 1, -3) + playsound(src, 'sound/effects/extinguish.ogg', 75, 1, -3) var/direction = get_dir(src,target) diff --git a/code/game/objects/items/weapons/gift_wrappaper.dm b/code/game/objects/items/weapons/gift_wrappaper.dm index 94ca8b7cd2..88d9b0ff5d 100644 --- a/code/game/objects/items/weapons/gift_wrappaper.dm +++ b/code/game/objects/items/weapons/gift_wrappaper.dm @@ -27,7 +27,7 @@ /obj/item/weapon/gift/attack_self(mob/user as mob) user.drop_item() - playsound(src.loc, 'sound/items/package_unwrap.ogg', 50,1) + playsound(src, 'sound/items/package_unwrap.ogg', 50,1) if(src.gift) user.put_in_active_hand(gift) src.gift.add_fingerprint(user) diff --git a/code/game/objects/items/weapons/grenades/anti_photon_grenade.dm b/code/game/objects/items/weapons/grenades/anti_photon_grenade.dm index 6646e698f9..fe4d80418d 100644 --- a/code/game/objects/items/weapons/grenades/anti_photon_grenade.dm +++ b/code/game/objects/items/weapons/grenades/anti_photon_grenade.dm @@ -7,7 +7,7 @@ origin_tech = list(TECH_BLUESPACE = 4, TECH_MATERIAL = 4) /obj/item/weapon/grenade/anti_photon/detonate() - playsound(src.loc, 'sound/effects/phasein.ogg', 50, 1, 5) + playsound(src, 'sound/effects/phasein.ogg', 50, 1, 5) set_light(10, -10, "#FFFFFF") var/extra_delay = rand(0,90) @@ -18,5 +18,5 @@ set_light(10, 10, "#[num2hex(rand(64,255))][num2hex(rand(64,255))][num2hex(rand(64,255))]") spawn(210) ..() - playsound(src.loc, 'sound/effects/bang.ogg', 50, 1, 5) + playsound(src, 'sound/effects/bang.ogg', 50, 1, 5) qdel(src) diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 157c64f09f..cb3184a7f6 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -63,7 +63,7 @@ return path = 1 to_chat(user, "You add [W] to the metal casing.") - playsound(src.loc, 'sound/items/Screwdriver2.ogg', 25, -3) + playsound(src, 'sound/items/Screwdriver2.ogg', 25, -3) user.remove_from_mob(det) det.loc = src detonator = det @@ -96,7 +96,7 @@ return else to_chat(user, "You unlock the assembly.") - playsound(src.loc, W.usesound, 50, -3) + playsound(src, W.usesound, 50, -3) name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]" icon_state = initial(icon_state) + (detonator?"_ass":"") stage = 1 @@ -154,7 +154,7 @@ active = 0 if(!has_reagents) icon_state = initial(icon_state) +"_locked" - playsound(src.loc, 'sound/items/Screwdriver2.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver2.ogg', 50, 1) spawn(0) //Otherwise det_time is erroneously set to 0 after this if(istimer(detonator.a_left)) //Make sure description reflects that the timer has been reset var/obj/item/device/assembly/timer/T = detonator.a_left @@ -164,7 +164,7 @@ det_time = 10*T.time return - playsound(src.loc, 'sound/effects/bamf.ogg', 50, 1) + playsound(src, 'sound/effects/bamf.ogg', 50, 1) for(var/obj/item/weapon/reagent_containers/glass/G in beakers) G.reagents.trans_to_obj(src, G.reagents.total_volume) diff --git a/code/game/objects/items/weapons/grenades/concussion.dm b/code/game/objects/items/weapons/grenades/concussion.dm index 073b5ed9d1..fb821ab6f8 100644 --- a/code/game/objects/items/weapons/grenades/concussion.dm +++ b/code/game/objects/items/weapons/grenades/concussion.dm @@ -19,7 +19,7 @@ if(is_below_sound_pressure(T)) visible_message("Whump.") return - playsound(src.loc, 'sound/effects/bang.ogg', 75, 1, -3) + playsound(src, 'sound/effects/bang.ogg', 75, 1, -3) if(istype(T)) for(var/mob/living/L in orange(T, radius)) if(ishuman(L)) diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index 087265ca5b..e2d095e0e1 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -29,7 +29,7 @@ /obj/item/weapon/grenade/flashbang/proc/bang(var/turf/T , var/mob/living/carbon/M) // Added a new proc called 'bang' that takes a location and a person to be banged. to_chat(M, "BANG") // Called during the loop that bangs people in lockers/containers and when banging - playsound(src.loc, 'sound/effects/bang.ogg', 50, 1, 30) // people in normal view. Could theroetically be called during other explosions. + playsound(src, 'sound/effects/bang.ogg', 50, 1, 30) // people in normal view. Could theroetically be called during other explosions. // -- Polymorph //Checking for protections @@ -119,11 +119,11 @@ for(var/do_spawn = numspawned, do_spawn > 0, do_spawn--) new /obj/item/weapon/grenade/flashbang/cluster(src.loc)//Launches flashbangs - playsound(src.loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3) for(var/do_again = again, do_again > 0, do_again--) new /obj/item/weapon/grenade/flashbang/clusterbang/segment(src.loc)//Creates a 'segment' that launches a few more flashbangs - playsound(src.loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3) qdel(src) return diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index fdab7aaf39..7ac049a774 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -33,7 +33,7 @@ to_chat(user, "You prime the [name]! [det_time/10] seconds!") active = 1 icon_state = initial(icon_state) + "_active" - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3) spawn(det_time) detonate() return @@ -75,7 +75,7 @@ icon_state = initial(icon_state) + "_active" active = 1 - playsound(loc, arm_sound, 75, 1, -3) + playsound(src, arm_sound, 75, 1, -3) spawn(det_time) detonate() @@ -83,7 +83,7 @@ /obj/item/weapon/grenade/proc/detonate() -// playsound(loc, 'sound/items/Welder2.ogg', 25, 1) +// playsound(src, 'sound/items/Welder2.ogg', 25, 1) var/turf/T = get_turf(src) if(T) T.hotspot_expose(700,125) diff --git a/code/game/objects/items/weapons/grenades/smokebomb.dm b/code/game/objects/items/weapons/grenades/smokebomb.dm index 28540b981f..75c0e6a299 100644 --- a/code/game/objects/items/weapons/grenades/smokebomb.dm +++ b/code/game/objects/items/weapons/grenades/smokebomb.dm @@ -21,7 +21,7 @@ return ..() /obj/item/weapon/grenade/smokebomb/detonate() - playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3) src.smoke.set_up(10, 0, usr.loc) spawn(0) for(var/i = 1 to smoke_strength) diff --git a/code/game/objects/items/weapons/grenades/spawnergrenade.dm b/code/game/objects/items/weapons/grenades/spawnergrenade.dm index 5cab658098..5f1bd4503b 100644 --- a/code/game/objects/items/weapons/grenades/spawnergrenade.dm +++ b/code/game/objects/items/weapons/grenades/spawnergrenade.dm @@ -15,7 +15,7 @@ if(spawner_type && deliveryamt) // Make a quick flash var/turf/T = get_turf(src) - playsound(T, 'sound/effects/phasein.ogg', 100, 1) + playsound(src, 'sound/effects/phasein.ogg', 100, 1) for(var/mob/living/carbon/human/M in viewers(T, null)) if(M:eyecheck() <= 0) M.flash_eyes() diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index 2f7e3d6e08..b28ebcaf1e 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -60,7 +60,7 @@ return 0 /obj/item/weapon/handcuffs/proc/place_handcuffs(var/mob/living/carbon/target, var/mob/user) - playsound(src.loc, cuff_sound, 30, 1, -2) + playsound(src, cuff_sound, 30, 1, -2) var/mob/living/carbon/human/H = target if(!istype(H)) @@ -244,7 +244,7 @@ var/last_chew = 0 to_chat(user, "You need to have a firm grip on [C] before you can put \the [src] on!") /obj/item/weapon/handcuffs/legcuffs/proc/place_legcuffs(var/mob/living/carbon/target, var/mob/user) - playsound(src.loc, cuff_sound, 30, 1, -2) + playsound(src, cuff_sound, 30, 1, -2) var/mob/living/carbon/human/H = target if(!istype(H)) @@ -315,7 +315,7 @@ var/last_chew = 0 qdel(src) /obj/item/weapon/handcuffs/legcuffs/bola/place_legcuffs(var/mob/living/carbon/target, var/mob/user) - playsound(src.loc, cuff_sound, 30, 1, -2) + playsound(src, cuff_sound, 30, 1, -2) var/mob/living/carbon/human/H = target if(!istype(H)) diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index 34f44ffc8d..81d5bb8f04 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -252,7 +252,7 @@ Implant Specifics:
"} if (elevel == "Localized Limb") if(part) //For some reason, small_boom() didn't work. So have this bit of working copypaste. imp_in.visible_message("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!") - playsound(loc, 'sound/items/countdown.ogg', 75, 1, -3) + playsound(src, 'sound/items/countdown.ogg', 75, 1, -3) sleep(25) if (istype(part,/obj/item/organ/external/chest) || \ istype(part,/obj/item/organ/external/groin) || \ @@ -325,7 +325,7 @@ Implant Specifics:
"} /obj/item/weapon/implant/explosive/proc/small_boom() if (ishuman(imp_in) && part) imp_in.visible_message("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!") - playsound(loc, 'sound/items/countdown.ogg', 75, 1, -3) + playsound(src, 'sound/items/countdown.ogg', 75, 1, -3) spawn(25) if (ishuman(imp_in) && part) //No tearing off these parts since it's pretty much killing diff --git a/code/game/objects/items/weapons/material/chainsaw.dm b/code/game/objects/items/weapons/material/chainsaw.dm index fe99fad674..8ba5f20695 100644 --- a/code/game/objects/items/weapons/material/chainsaw.dm +++ b/code/game/objects/items/weapons/material/chainsaw.dm @@ -53,7 +53,7 @@ obj/item/weapon/chainsaw/proc/turnOff(mob/user as mob) if(!on) return to_chat(user, "You switch the gas nozzle on the chainsaw, turning it off.") attack_verb = list("bluntly hit", "beat", "knocked") - playsound(user, 'sound/weapons/chainsaw_turnoff.ogg',40,1) + playsound(src, 'sound/weapons/chainsaw_turnoff.ogg',40,1) force = inactive_force edge = 0 sharp = 0 @@ -93,7 +93,7 @@ obj/item/weapon/chainsaw/afterattack(atom/A as mob|obj|turf|area, mob/user as mo to_chat(user, "You begin filling the tank on the chainsaw.") if(do_after(usr, 15)) A.reagents.trans_to_obj(src, max_fuel) - playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) to_chat(user, "Chainsaw succesfully refueled.") else to_chat(user, "Don't move while you're refilling the chainsaw.") diff --git a/code/game/objects/items/weapons/material/kitchen.dm b/code/game/objects/items/weapons/material/kitchen.dm index b2369f995d..4464084f85 100644 --- a/code/game/objects/items/weapons/material/kitchen.dm +++ b/code/game/objects/items/weapons/material/kitchen.dm @@ -46,7 +46,7 @@ if(!(M.can_force_feed(user, loaded) && do_mob(user, M, 5 SECONDS))) return M.visible_message("\The [user] feeds some [loaded] to \the [M] with \the [src].") - playsound(M.loc,'sound/items/eatfood.ogg', rand(10,40), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,40), 1) overlays.Cut() return else diff --git a/code/game/objects/items/weapons/material/knives.dm b/code/game/objects/items/weapons/material/knives.dm index cf5a706525..9f8a27102c 100644 --- a/code/game/objects/items/weapons/material/knives.dm +++ b/code/game/objects/items/weapons/material/knives.dm @@ -46,7 +46,7 @@ active = !active if(active) to_chat(user, "You flip out \the [src].") - playsound(user, 'sound/weapons/flipblade.ogg', 15, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 15, 1) else to_chat(user, "\The [src] can now be concealed.") update_force() diff --git a/code/game/objects/items/weapons/material/material_armor.dm b/code/game/objects/items/weapons/material/material_armor.dm index d981cafc07..91aca12dc1 100644 --- a/code/game/objects/items/weapons/material/material_armor.dm +++ b/code/game/objects/items/weapons/material/material_armor.dm @@ -125,7 +125,7 @@ Protectiveness | Armor % var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/effects/teleport.ogg', 50, 1) + playsound(src, 'sound/effects/teleport.ogg', 50, 1) user.loc = picked return PROJECTILE_FORCE_MISS diff --git a/code/game/objects/items/weapons/material/shards.dm b/code/game/objects/items/weapons/material/shards.dm index e2394537f3..19eaf7f776 100644 --- a/code/game/objects/items/weapons/material/shards.dm +++ b/code/game/objects/items/weapons/material/shards.dm @@ -102,7 +102,7 @@ if(will_break && src.loc == user) // If it's not in our hand anymore user.visible_message("[user] hit \the [target] with \the [src], shattering it!", "You shatter \the [src] in your hand!") - playsound(user, pick('sound/effects/Glassbr1.ogg', 'sound/effects/Glassbr2.ogg', 'sound/effects/Glassbr3.ogg'), 30, 1) + playsound(src, pick('sound/effects/Glassbr1.ogg', 'sound/effects/Glassbr2.ogg', 'sound/effects/Glassbr3.ogg'), 30, 1) qdel(src) return @@ -116,7 +116,7 @@ if(M.buckled) //wheelchairs, office chairs, rollerbeds return - playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds + playsound(src, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds if(ishuman(M)) var/mob/living/carbon/human/H = M diff --git a/code/game/objects/items/weapons/material/swords.dm b/code/game/objects/items/weapons/material/swords.dm index 3affd40887..ba0fe4ddfe 100644 --- a/code/game/objects/items/weapons/material/swords.dm +++ b/code/game/objects/items/weapons/material/swords.dm @@ -14,7 +14,7 @@ /obj/item/weapon/material/sword/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(unique_parry_check(user, attacker, damage_source) && prob(50)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 diff --git a/code/game/objects/items/weapons/material/twohanded.dm b/code/game/objects/items/weapons/material/twohanded.dm index 108751654a..0ffd1dfaac 100644 --- a/code/game/objects/items/weapons/material/twohanded.dm +++ b/code/game/objects/items/weapons/material/twohanded.dm @@ -61,7 +61,7 @@ /obj/item/weapon/material/twohanded/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(wielded && default_parry_check(user, attacker, damage_source) && prob(15)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm index 21d4d53a5c..7153ebfa60 100644 --- a/code/game/objects/items/weapons/melee/energy.dm +++ b/code/game/objects/items/weapons/melee/energy.dm @@ -57,14 +57,14 @@ sharp = 1 edge = 1 w_class = active_w_class - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) update_icon() set_light(lrange, lpower, lcolor) /obj/item/weapon/melee/energy/proc/deactivate(mob/living/user) if(!active) return - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) item_state = "[icon_state]" active = 0 embed_chance = initial(embed_chance) @@ -310,7 +310,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 1 if(active && unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance)) user.visible_message("\The [user] deflects [attack_text] with \the [src]!") @@ -318,7 +318,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 1 return 0 @@ -370,7 +370,7 @@ // EMP stuff. var/obj/O = AM O.emp_act(3) // A weaker severity is used because this has infinite uses. - playsound(get_turf(O), 'sound/effects/EMPulse.ogg', 100, 1) + playsound(O, 'sound/effects/EMPulse.ogg', 100, 1) user.setClickCooldown(user.get_attack_speed(src)) // A lot of objects don't set click delay. return ..() @@ -379,9 +379,9 @@ if(target.isSynthetic() && active) // Do some extra damage. Not a whole lot more since emp_act() is pretty nasty on FBPs already. target.emp_act(3) // A weaker severity is used because this has infinite uses. - playsound(get_turf(target), 'sound/effects/EMPulse.ogg', 100, 1) + playsound(target, 'sound/effects/EMPulse.ogg', 100, 1) target.adjustFireLoss(force * 3) // 15 Burn, for 20 total. - playsound(get_turf(target), 'sound/weapons/blade1.ogg', 100, 1) + playsound(target, 'sound/weapons/blade1.ogg', 100, 1) // Make lesser robots really mad at us. if(target.mob_class & MOB_CLASS_SYNTHETIC) @@ -481,7 +481,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 1 if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance)) user.visible_message("\The [user] deflects [attack_text] with \the [src]!") @@ -489,7 +489,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 1 return 0 @@ -547,6 +547,6 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return 1 return 0 diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm index 7d390d613f..4185cf92c2 100644 --- a/code/game/objects/items/weapons/melee/misc.dm +++ b/code/game/objects/items/weapons/melee/misc.dm @@ -69,7 +69,7 @@ /obj/item/weapon/melee/cursedblade/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(default_parry_check(user, attacker, damage_source) && prob(50)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 diff --git a/code/game/objects/items/weapons/paiwire.dm b/code/game/objects/items/weapons/paiwire.dm index 3dfa83b844..48358ea259 100644 --- a/code/game/objects/items/weapons/paiwire.dm +++ b/code/game/objects/items/weapons/paiwire.dm @@ -8,7 +8,7 @@ return //VOREStation Add End user.visible_message("[user] inserts [src] into a data port on [M].", "You insert [src] into a data port on [M].", "You hear the satisfying click of a wire jack fastening into place.") - playsound(user, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) user.drop_item() src.forceMove(M) src.machine = M diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm index 4d78a09bc5..e4a518e8db 100644 --- a/code/game/objects/items/weapons/shields.dm +++ b/code/game/objects/items/weapons/shields.dm @@ -94,7 +94,7 @@ return 0 //Otherwise, if we're here, we're gonna stop the attack entirely. user.visible_message("\The [user] blocks [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/Genhit.ogg', 50, 1) + playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) return 1 return 0 @@ -102,7 +102,7 @@ if(istype(W, /obj/item/weapon/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(src, 'sound/effects/shieldbash.ogg', 50, 1) cooldown = world.time else ..() @@ -144,7 +144,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) /obj/item/weapon/shield/energy/get_block_chance(mob/user, var/damage, atom/damage_source = null, mob/attacker = null) if(istype(damage_source, /obj/item/projectile)) @@ -163,7 +163,7 @@ update_icon() w_class = ITEMSIZE_LARGE slot_flags = null - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) to_chat(user, "\The [src] is now active.") else @@ -171,7 +171,7 @@ update_icon() w_class = ITEMSIZE_TINY slot_flags = SLOT_EARS - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) to_chat(user, "\The [src] can now be concealed.") if(istype(user,/mob/living/carbon/human)) @@ -240,7 +240,7 @@ /obj/item/weapon/shield/riot/tele/attack_self(mob/living/user) active = !active icon_state = "teleriot[active]" - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) if(active) force = 8 diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index 88f6caeb74..2cdc341523 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -21,13 +21,13 @@ /obj/item/weapon/storage/backpack/equipped(var/mob/user, var/slot) if (slot == slot_back && src.use_sound) - playsound(src.loc, src.use_sound, 50, 1, -5) + playsound(src, src.use_sound, 50, 1, -5) ..(user, slot) /* /obj/item/weapon/storage/backpack/dropped(mob/user as mob) if (loc == user && src.use_sound) - playsound(src.loc, src.use_sound, 50, 1, -5) + playsound(src, src.use_sound, 50, 1, -5) ..(user) */ diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm index 0d97b4f878..75cbc2297e 100644 --- a/code/game/objects/items/weapons/storage/bible.dm +++ b/code/game/objects/items/weapons/storage/bible.dm @@ -35,5 +35,5 @@ /obj/item/weapon/storage/bible/attackby(obj/item/weapon/W as obj, mob/user as mob) if (src.use_sound) - playsound(src.loc, src.use_sound, 50, 1, -5) + playsound(src, src.use_sound, 50, 1, -5) ..() diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 5128657811..3ef882c381 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -52,7 +52,7 @@ return // Now make the cardboard to_chat(user, "You fold [src] flat.") - playsound(src.loc, 'sound/items/storage/boxfold.ogg', 30, 1) + playsound(src, 'sound/items/storage/boxfold.ogg', 30, 1) new foldable(get_turf(src)) qdel(src) diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index 2fa8e54e87..b10caa3610 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -40,8 +40,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) - playsound(src.loc, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) if(!locked) ..() else diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm index c8bc129e3d..034e37ff8e 100644 --- a/code/game/objects/items/weapons/storage/secure.dm +++ b/code/game/objects/items/weapons/storage/secure.dm @@ -39,8 +39,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) - playsound(src.loc, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) return if (W.is_screwdriver()) diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 5fc789549a..bfcbd695e5 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -142,7 +142,7 @@ /obj/item/weapon/storage/proc/open(mob/user as mob) if (use_sound) - playsound(src.loc, src.use_sound, 50, 0, -5) + playsound(src, src.use_sound, 50, 0, -5) orient2hud(user) if (user.s_active) diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index 183366a4c7..87ce75a233 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -148,7 +148,7 @@ if(bcell && bcell.charge > hitcost) status = !status to_chat(user, "[src] is now [status ? "on" : "off"].") - playsound(loc, "sparks", 75, 1, -1) + playsound(src, "sparks", 75, 1, -1) update_icon() else status = 0 @@ -193,7 +193,7 @@ target.visible_message("[target] has been prodded in the [affecting.name] with [src] by [user]!") else target.visible_message("[target] has been prodded with [src] by [user]!") - playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/Egloves.ogg', 50, 1, -1) //stun effects if(status) diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm index 204ebb6f89..a4a7992872 100644 --- a/code/game/objects/items/weapons/swords_axes_etc.dm +++ b/code/game/objects/items/weapons/swords_axes_etc.dm @@ -77,7 +77,7 @@ H.update_inv_l_hand() H.update_inv_r_hand() - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) add_fingerprint(user) if(blood_overlay && blood_DNA && (blood_DNA.len >= 1)) //updates blood overlay, if any @@ -104,7 +104,7 @@ user.take_organ_damage(2*force) return if(..()) - //playsound(src.loc, "swing_hit", 50, 1, -1) + //playsound(src, "swing_hit", 50, 1, -1) return else return ..() diff --git a/code/game/objects/items/weapons/syndie.dm b/code/game/objects/items/weapons/syndie.dm index c4e273deea..b97f5303df 100644 --- a/code/game/objects/items/weapons/syndie.dm +++ b/code/game/objects/items/weapons/syndie.dm @@ -48,7 +48,7 @@ /obj/item/weapon/syndie/c4explosive/proc/detonate() icon_state = "c-4[size]_1" - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1) + playsound(src, 'sound/weapons/armbomb.ogg', 75, 1) for(var/mob/O in hearers(src, null)) O.show_message("[bicon(src)] The [src.name] beeps! ") sleep(50) diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm index f8c4dd68be..4dbe4e7a35 100644 --- a/code/game/objects/items/weapons/tanks/jetpack.dm +++ b/code/game/objects/items/weapons/tanks/jetpack.dm @@ -32,7 +32,7 @@ . = ..() if(air_contents.total_moles < 5) . += "The meter on \the [src] indicates you are almost out of gas!" - playsound(user, 'sound/effects/alert.ogg', 50, 1) + playsound(src, 'sound/effects/alert.ogg', 50, 1) /obj/item/weapon/tank/jetpack/verb/toggle_rockets() set name = "Toggle Jetpack Stabilization" diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm index 0cdf8887a5..25c08c725a 100644 --- a/code/game/objects/items/weapons/tanks/tanks.dm +++ b/code/game/objects/items/weapons/tanks/tanks.dm @@ -471,7 +471,7 @@ var/list/global/tank_gauge_cache = list() if(!T) return T.assume_air(air_contents) - playsound(get_turf(src), 'sound/weapons/Gunshot_shotgun.ogg', 20, 1) + playsound(src, 'sound/weapons/Gunshot_shotgun.ogg', 20, 1) visible_message("[bicon(src)] \The [src] flies apart!", "You hear a bang!") T.hotspot_expose(air_contents.temperature, 70, 1) @@ -518,7 +518,7 @@ var/list/global/tank_gauge_cache = list() T.assume_air(leaked_gas) if(!leaking) visible_message("[bicon(src)] \The [src] relief valve flips open with a hiss!", "You hear hissing.") - playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3) + playsound(src, 'sound/effects/spray.ogg', 10, 1, -3) leaking = 1 #ifdef FIREDBG log_debug("[x],[y] tank is leaking: [pressure] kPa, integrity [integrity]") diff --git a/code/game/objects/items/weapons/tools/crowbar.dm b/code/game/objects/items/weapons/tools/crowbar.dm index 56afaf8219..a139efe9f6 100644 --- a/code/game/objects/items/weapons/tools/crowbar.dm +++ b/code/game/objects/items/weapons/tools/crowbar.dm @@ -102,7 +102,7 @@ return ..() /obj/item/weapon/tool/crowbar/power/attack_self(mob/user) - playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, 1) + playsound(src, 'sound/items/change_jaws.ogg', 50, 1) user.drop_item(src) counterpart.forceMove(get_turf(src)) src.forceMove(counterpart) diff --git a/code/game/objects/items/weapons/tools/screwdriver.dm b/code/game/objects/items/weapons/tools/screwdriver.dm index 8045445ca3..ce405db83b 100644 --- a/code/game/objects/items/weapons/tools/screwdriver.dm +++ b/code/game/objects/items/weapons/tools/screwdriver.dm @@ -154,7 +154,7 @@ return ..() /obj/item/weapon/tool/screwdriver/power/attack_self(mob/user) - playsound(get_turf(user),'sound/items/change_drill.ogg',50,1) + playsound(src,'sound/items/change_drill.ogg',50,1) user.drop_item(src) counterpart.forceMove(get_turf(src)) src.forceMove(counterpart) diff --git a/code/game/objects/items/weapons/tools/weldingtool.dm b/code/game/objects/items/weapons/tools/weldingtool.dm index 418c5f7513..e682d3af6e 100644 --- a/code/game/objects/items/weapons/tools/weldingtool.dm +++ b/code/game/objects/items/weapons/tools/weldingtool.dm @@ -151,7 +151,7 @@ if(!welding && max_fuel) O.reagents.trans_to_obj(src, max_fuel) to_chat(user, "Welder refueled") - playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) return else if(!welding) to_chat(user, "[src] doesn't use fuel.") @@ -278,7 +278,7 @@ to_chat(M, "You switch the [src] on.") else if(T) T.visible_message("\The [src] turns on.") - playsound(loc, acti_sound, 50, 1) + playsound(src, acti_sound, 50, 1) src.force = 15 src.damtype = "fire" src.w_class = ITEMSIZE_LARGE @@ -300,7 +300,7 @@ to_chat(M, "You switch \the [src] off.") else if(T) T.visible_message("\The [src] turns off.") - playsound(loc, deac_sound, 50, 1) + playsound(src, deac_sound, 50, 1) src.force = 3 src.damtype = "brute" src.w_class = initial(src.w_class) diff --git a/code/game/objects/items/weapons/tools/wirecutters.dm b/code/game/objects/items/weapons/tools/wirecutters.dm index 91a48299c6..6e25b57d47 100644 --- a/code/game/objects/items/weapons/tools/wirecutters.dm +++ b/code/game/objects/items/weapons/tools/wirecutters.dm @@ -121,7 +121,7 @@ return ..() /obj/item/weapon/tool/wirecutters/power/attack_self(mob/user) - playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, 1) + playsound(src, 'sound/items/change_jaws.ogg', 50, 1) user.drop_item(src) counterpart.forceMove(get_turf(src)) src.forceMove(counterpart) diff --git a/code/game/objects/items/weapons/tools/wrench.dm b/code/game/objects/items/weapons/tools/wrench.dm index 89a51cf217..6a1e7ccb99 100644 --- a/code/game/objects/items/weapons/tools/wrench.dm +++ b/code/game/objects/items/weapons/tools/wrench.dm @@ -103,7 +103,7 @@ return ..() /obj/item/weapon/tool/wrench/power/attack_self(mob/user) - playsound(get_turf(user),'sound/items/change_drill.ogg',50,1) + playsound(src,'sound/items/change_drill.ogg',50,1) user.drop_item(src) counterpart.forceMove(get_turf(src)) src.forceMove(counterpart) diff --git a/code/game/objects/items/weapons/towels.dm b/code/game/objects/items/weapons/towels.dm index ba1b662ebb..b9566c399b 100644 --- a/code/game/objects/items/weapons/towels.dm +++ b/code/game/objects/items/weapons/towels.dm @@ -12,7 +12,7 @@ /obj/item/weapon/towel/attack_self(mob/living/user as mob) user.visible_message(text("[] uses [] to towel themselves off.", user, src)) - playsound(user, 'sound/weapons/towelwipe.ogg', 25, 1) + playsound(src, 'sound/weapons/towelwipe.ogg', 25, 1) if(user.fire_stacks > 0) user.fire_stacks = (max(0, user.fire_stacks - 1.5)) else if(user.fire_stacks < 0) diff --git a/code/game/objects/items/weapons/traps.dm b/code/game/objects/items/weapons/traps.dm index 8e6667c759..42bbc38410 100644 --- a/code/game/objects/items/weapons/traps.dm +++ b/code/game/objects/items/weapons/traps.dm @@ -39,7 +39,7 @@ "You have deployed \the [src]!", "You hear a latch click loudly." ) - playsound(src.loc, 'sound/machines/click.ogg',70, 1) + playsound(src, 'sound/machines/click.ogg',70, 1) deployed = 1 user.drop_from_inventory(src) @@ -64,7 +64,7 @@ "You begin disarming \the [src]!", "You hear a latch click followed by the slow creaking of a spring." ) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) if(do_after(user, 60)) user.visible_message( diff --git a/code/game/objects/items/weapons/trays.dm b/code/game/objects/items/weapons/trays.dm index 48d65ffb16..6809ae4547 100644 --- a/code/game/objects/items/weapons/trays.dm +++ b/code/game/objects/items/weapons/trays.dm @@ -36,10 +36,10 @@ M.Weaken(1) user.take_organ_damage(2) if(prob(50)) - playsound(M, 'sound/items/trayhit1.ogg', 50, 1) + playsound(src, 'sound/items/trayhit1.ogg', 50, 1) return else - playsound(M, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' + playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' return //it always returns, but I feel like adding an extra return just for safety's sakes. EDIT; Oh well I won't :3 var/mob/living/carbon/human/H = M ///////////////////////////////////// /Let's have this ready for later. @@ -60,12 +60,12 @@ else M.take_organ_damage(5) if(prob(50)) - playsound(M, 'sound/items/trayhit1.ogg', 50, 1) + playsound(src, 'sound/items/trayhit1.ogg', 50, 1) for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] with the tray!", user, M), 1) return else - playsound(M, 'sound/items/trayhit2.ogg', 50, 1) //we applied the damage, we played the sound, we showed the appropriate messages. Time to return and stop the proc + playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //we applied the damage, we played the sound, we showed the appropriate messages. Time to return and stop the proc for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] with the tray!", user, M), 1) return @@ -93,11 +93,11 @@ location.add_blood(H) if(prob(50)) - playsound(M, 'sound/items/trayhit1.ogg', 50, 1) + playsound(src, 'sound/items/trayhit1.ogg', 50, 1) for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] with the tray!", user, M), 1) else - playsound(M, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' + playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] with the tray!", user, M), 1) if(prob(10)) @@ -117,11 +117,11 @@ location.add_blood(H) if(prob(50)) - playsound(M, 'sound/items/trayhit1.ogg', 50, 1) + playsound(src, 'sound/items/trayhit1.ogg', 50, 1) for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] in the face with the tray!", user, M), 1) else - playsound(M, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' again + playsound(src, 'sound/items/trayhit2.ogg', 50, 1) //sound playin' again for(var/mob/O in viewers(M, null)) O.show_message(text("[] slams [] in the face with the tray!", user, M), 1) if(prob(30)) @@ -141,7 +141,7 @@ if(istype(W, /obj/item/weapon/material/kitchen/rollingpin)) if(cooldown < world.time - 25) user.visible_message("[user] bashes [src] with [W]!") - playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, 1) + playsound(src, 'sound/effects/shieldbash.ogg', 50, 1) cooldown = world.time else ..() diff --git a/code/game/objects/items/weapons/weldbackpack.dm b/code/game/objects/items/weapons/weldbackpack.dm index f603aa6498..e839bba3b3 100644 --- a/code/game/objects/items/weapons/weldbackpack.dm +++ b/code/game/objects/items/weapons/weldbackpack.dm @@ -68,7 +68,7 @@ to_chat(user, "That was close!") src.reagents.trans_to_obj(W, T.max_fuel) to_chat(user, "Welder refilled!") - playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) return else if(nozzle) if(nozzle == W) @@ -105,7 +105,7 @@ if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume < max_fuel) O.reagents.trans_to_obj(src, max_fuel) to_chat(user, "You crack the cap off the top of the pack and fill it back up again from the tank.") - playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(src, 'sound/effects/refill.ogg', 50, 1, -6) return else if (istype(O, /obj/structure/reagent_dispensers/fueltank) && src.reagents.total_volume == max_fuel) to_chat(user, "The pack is already full!") diff --git a/code/game/objects/structures/catwalk.dm b/code/game/objects/structures/catwalk.dm index da481521d6..c8c312334f 100644 --- a/code/game/objects/structures/catwalk.dm +++ b/code/game/objects/structures/catwalk.dm @@ -123,7 +123,7 @@ health -= amount if(health <= 0) visible_message("\The [src] breaks down!") - playsound(loc, 'sound/effects/grillehit.ogg', 50, 1) + playsound(src, 'sound/effects/grillehit.ogg', 50, 1) new /obj/item/stack/rods(get_turf(src)) Destroy() diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index d14ccc602b..83e77f1570 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -123,7 +123,7 @@ src.icon_state = src.icon_opened src.opened = 1 - playsound(src.loc, open_sound, 15, 1, -3) + playsound(src, open_sound, 15, 1, -3) if(initial(density)) density = !density return 1 @@ -148,7 +148,7 @@ src.icon_state = src.icon_closed src.opened = 0 - playsound(src.loc, close_sound, 15, 1, -3) + playsound(src, close_sound, 15, 1, -3) if(initial(density)) density = !density return 1 @@ -428,7 +428,7 @@ breakout = 0 return - playsound(src.loc, breakout_sound, 100, 1) + playsound(src, breakout_sound, 100, 1) animate_shake() add_fingerprint(escapee) @@ -436,7 +436,7 @@ breakout = 0 to_chat(escapee, "You successfully break out!") visible_message("\The [escapee] successfully broke out of \the [src]!") - playsound(src.loc, breakout_sound, 100, 1) + playsound(src, breakout_sound, 100, 1) break_open() animate_shake() diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm index 7c90e2a50a..d75cf18e5a 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -82,8 +82,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) - playsound(src.loc, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) else to_chat(user, "Access Denied") return diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm index af07ceb9e5..c5732a337e 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm @@ -56,7 +56,7 @@ return if(src.allowed(user)) src.locked = !src.locked - playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(src, 'sound/machines/click.ogg', 15, 1, -3) for(var/mob/O in viewers(user, 3)) if((O.client && !( O.blinded ))) to_chat(O, "The locker has been [locked ? null : "un"]locked by [user].") @@ -86,8 +86,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) - playsound(src.loc, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) else if(W.is_wrench()) if(sealed) if(anchored) diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index bf4a10d5b1..7a9abe17e9 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -34,7 +34,7 @@ if(usr.stunned) return 2 - playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(src, 'sound/machines/click.ogg', 15, 1, -3) for(var/obj/O in src) O.forceMove(get_turf(src)) icon_state = icon_opened @@ -50,7 +50,7 @@ if(!src.can_close()) return 0 - playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3) + playsound(src, 'sound/machines/click.ogg', 15, 1, -3) var/itemcount = 0 for(var/obj/O in get_turf(src)) if(itemcount >= storage_capacity) @@ -97,7 +97,7 @@ else if(W.is_wirecutter()) if(rigged) to_chat(user , "You cut away the wiring.") - playsound(src.loc, W.usesound, 100, 1) + playsound(src, W.usesound, 100, 1) rigged = 0 return else return attack_hand(user) @@ -206,7 +206,7 @@ overlays += emag overlays += sparks spawn(6) overlays -= sparks //Tried lots of stuff but nothing works right. so i have to use this *sadface* - playsound(src.loc, "sparks", 60, 1) + playsound(src, "sparks", 60, 1) src.locked = 0 src.broken = 1 to_chat(user, "You unlock \the [src].") @@ -225,7 +225,7 @@ overlays += emag overlays += sparks spawn(6) overlays -= sparks //Tried lots of stuff but nothing works right. so i have to use this *sadface* - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) src.locked = 0 if(!opened && prob(20/severity)) if(!locked) diff --git a/code/game/objects/structures/crates_lockers/vehiclecage.dm b/code/game/objects/structures/crates_lockers/vehiclecage.dm index b565124e78..b98636eb16 100644 --- a/code/game/objects/structures/crates_lockers/vehiclecage.dm +++ b/code/game/objects/structures/crates_lockers/vehiclecage.dm @@ -32,11 +32,11 @@ if(!T) to_chat(user, "You can't open this here!") if(W.is_wrench() && do_after(user, 60 * W.toolspeed, src)) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) disassemble(W, user) user.visible_message("[user] begins loosening \the [src]'s bolts.") if(W.is_wirecutter() && do_after(user, 70 * W.toolspeed, src)) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) disassemble(W, user) user.visible_message("[user] begins cutting \the [src]'s bolts.") else diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm index c44f714cc5..9de63fd3d0 100644 --- a/code/game/objects/structures/curtains.dm +++ b/code/game/objects/structures/curtains.dm @@ -22,7 +22,7 @@ ..(P, def_zone) /obj/structure/curtain/attack_hand(mob/user) - playsound(get_turf(loc), "rustle", 15, 1, -5) + playsound(src, "rustle", 15, 1, -5) toggle() ..() diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index 088dbd33c6..0f18d967b3 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -43,7 +43,7 @@ playsound(src, "shatter", 70, 1) update_icon() else - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) return /obj/structure/displaycase/update_icon() @@ -57,7 +57,7 @@ /obj/structure/displaycase/attackby(obj/item/weapon/W as obj, mob/user as mob) user.setClickCooldown(user.get_attack_speed(W)) user.do_attack_animation(src) - playsound(loc, 'sound/effects/Glasshit.ogg', 50, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 50, 1) src.health -= W.force src.healthcheck() ..() diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm index 40c47c9bb9..5a786cacd8 100644 --- a/code/game/objects/structures/door_assembly.dm +++ b/code/game/objects/structures/door_assembly.dm @@ -268,7 +268,7 @@ if (S) if (S.get_amount() >= 1) if(material_name == "rglass") - playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) + playsound(src, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.") if(do_after(user, 40) && !glass) if (S.use(1)) @@ -280,7 +280,7 @@ to_chat(user, "You cannot make an airlock out of that material.") return if(S.get_amount() >= 2) - playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) + playsound(src, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [S.name] to the airlock assembly.", "You start to install [S.name] into the airlock assembly.") if(do_after(user, 40) && !glass) if (S.use(2)) diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm index 0879e196f2..ed3669247a 100644 --- a/code/game/objects/structures/extinguisher.dm +++ b/code/game/objects/structures/extinguisher.dm @@ -38,7 +38,7 @@ if(O.is_wrench()) if(!has_extinguisher) to_chat(user, "You start to unwrench the extinguisher cabinet.") - playsound(src.loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) if(do_after(user, 15 * O.toolspeed)) to_chat(user, "You unwrench the extinguisher cabinet.") new /obj/item/frame/extinguisher_cabinet( src.loc ) diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm index e5735d1255..2e2251fabe 100644 --- a/code/game/objects/structures/fireaxe.dm +++ b/code/game/objects/structures/fireaxe.dm @@ -31,7 +31,7 @@ if (isrobot(user) || locked) if(istype(O, /obj/item/device/multitool)) to_chat(user, "Resetting circuitry...") - playsound(user, 'sound/machines/lockreset.ogg', 50, 1) + playsound(src, 'sound/machines/lockreset.ogg', 50, 1) if(do_after(user, 20 * O.toolspeed)) locked = 0 to_chat(user, " You disable the locking modules.") @@ -44,13 +44,13 @@ toggle_close_open() return else - playsound(user, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time + playsound(src, 'sound/effects/Glasshit.ogg', 100, 1) //We don't want this playing every time if(W.force < 15) to_chat(user, "The cabinet's protective glass glances off the hit.") else hitstaken++ if(hitstaken == 4) - playsound(user, 'sound/effects/Glassbr3.ogg', 100, 1) //Break cabinet, receive goodies. Cabinet's fucked for life after that. + playsound(src, 'sound/effects/Glassbr3.ogg', 100, 1) //Break cabinet, receive goodies. Cabinet's fucked for life after that. smashed = 1 locked = 0 open= 1 @@ -82,7 +82,7 @@ return else to_chat(user, "Resetting circuitry...") - playsound(user, 'sound/machines/lockenable.ogg', 50, 1) + playsound(src, 'sound/machines/lockenable.ogg', 50, 1) if(do_after(user,20 * O.toolspeed)) locked = 1 to_chat(user, " You re-enable the locking modules.") diff --git a/code/game/objects/structures/fitness.dm b/code/game/objects/structures/fitness.dm index f0b121a1aa..729e578ba5 100644 --- a/code/game/objects/structures/fitness.dm +++ b/code/game/objects/structures/fitness.dm @@ -20,7 +20,7 @@ if(user.a_intent == I_HURT) user.setClickCooldown(user.get_attack_speed()) flick("[icon_state]_hit", src) - playsound(src.loc, 'sound/effects/woodhit.ogg', 25, 1, -1) + playsound(src, 'sound/effects/woodhit.ogg', 25, 1, -1) user.do_attack_animation(src) user.nutrition = user.nutrition - 5 to_chat(user, "You [pick(hit_message)] \the [src].") @@ -34,7 +34,7 @@ /obj/structure/fitness/weightlifter/attackby(obj/item/weapon/W as obj, mob/user as mob) if(W.is_wrench()) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 75, 1) weight = ((weight) % qualifiers.len) + 1 to_chat(user, "You set the machine's weight level to [weight].") @@ -52,11 +52,11 @@ return else being_used = 1 - playsound(src.loc, 'sound/effects/weightlifter.ogg', 50, 1) + playsound(src, 'sound/effects/weightlifter.ogg', 50, 1) user.set_dir(SOUTH) flick("[icon_state]_[weight]", src) if(do_after(user, 20 + (weight * 10))) - playsound(src.loc, 'sound/effects/weightdrop.ogg', 25, 1) + playsound(src, 'sound/effects/weightdrop.ogg', 25, 1) user.adjust_nutrition(weight * -10) to_chat(user, "You lift the weights [qualifiers[weight]].") being_used = 0 diff --git a/code/game/objects/structures/flora/trees.dm b/code/game/objects/structures/flora/trees.dm index c4d8f58ebd..a9f3658ff6 100644 --- a/code/game/objects/structures/flora/trees.dm +++ b/code/game/objects/structures/flora/trees.dm @@ -58,9 +58,9 @@ damage_to_do = round(damage_to_do / 4) if(damage_to_do > 0) if(W.sharp && W.edge) - playsound(get_turf(src), 'sound/effects/woodcutting.ogg', 50, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 50, 1) else - playsound(get_turf(src), W.hitsound, 50, 1) + playsound(src, W.hitsound, 50, 1) if(damage_to_do > 5 && !indestructable) adjust_health(-damage_to_do) else diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 16bdbdf120..17ea6845e3 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -27,7 +27,7 @@ /obj/structure/grille/attack_hand(mob/user as mob) user.setClickCooldown(user.get_attack_speed()) - playsound(loc, 'sound/effects/grillehit.ogg', 80, 1) + playsound(src, 'sound/effects/grillehit.ogg', 80, 1) user.do_attack_animation(src) var/damage_dealt = 1 @@ -153,7 +153,7 @@ else if((W.flags & NOCONDUCT) || !shock(user, 70)) user.setClickCooldown(user.get_attack_speed(W)) user.do_attack_animation(src) - playsound(loc, 'sound/effects/grillehit.ogg', 80, 1) + playsound(src, 'sound/effects/grillehit.ogg', 80, 1) switch(W.damtype) if("fire") health -= W.force diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm index 995bf4eece..3e58a93850 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -86,7 +86,7 @@ /obj/structure/inflatable/proc/hit(var/damage, var/sound_effect = 1) health = max(0, health - damage) if(sound_effect) - playsound(loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) if(health <= 0) puncture() @@ -102,7 +102,7 @@ qdel(src) /obj/structure/inflatable/proc/deflate() - playsound(loc, 'sound/machines/hiss.ogg', 75, 1) + playsound(src, 'sound/machines/hiss.ogg', 75, 1) //to_chat(user, "You slowly deflate the inflatable wall.") visible_message("[src] slowly deflates.") spawn(50) @@ -111,7 +111,7 @@ qdel(src) /obj/structure/inflatable/proc/puncture() - playsound(loc, 'sound/machines/hiss.ogg', 75, 1) + playsound(src, 'sound/machines/hiss.ogg', 75, 1) visible_message("[src] rapidly deflates!") var/obj/item/inflatable/torn/R = new /obj/item/inflatable/torn(loc) src.transfer_fingerprints_to(R) @@ -227,7 +227,7 @@ icon_state = "door_closed" /obj/structure/inflatable/door/deflate() - playsound(loc, 'sound/machines/hiss.ogg', 75, 1) + playsound(src, 'sound/machines/hiss.ogg', 75, 1) visible_message("[src] slowly deflates.") spawn(50) var/obj/item/inflatable/door/R = new /obj/item/inflatable/door(loc) @@ -235,7 +235,7 @@ qdel(src) /obj/structure/inflatable/door/puncture() - playsound(loc, 'sound/machines/hiss.ogg', 75, 1) + playsound(src, 'sound/machines/hiss.ogg', 75, 1) visible_message("[src] rapidly deflates!") var/obj/item/inflatable/door/torn/R = new /obj/item/inflatable/door/torn(loc) src.transfer_fingerprints_to(R) diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm index e6e58954a4..6916401936 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -56,7 +56,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) else mybucket.reagents.trans_to_obj(I, 5) // to_chat(user, "You wet [I] in [mybucket].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) else to_chat(user, "[I] can't absorb anymore liquid!") else @@ -328,7 +328,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart) if(reagents.total_volume > 1) reagents.trans_to_obj(I, 2) to_chat(user, "You wet [I] in the [callme].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) else to_chat(user, "This [callme] is out of water!") else if(istype(I, /obj/item/key)) diff --git a/code/game/objects/structures/medical_stand_vr.dm b/code/game/objects/structures/medical_stand_vr.dm index 9e0b2cdf37..e32a1a39df 100644 --- a/code/game/objects/structures/medical_stand_vr.dm +++ b/code/game/objects/structures/medical_stand_vr.dm @@ -212,7 +212,7 @@ breather.internal = tank breather.internals?.icon_state = "internal1" valve_opened = TRUE - //playsound(get_turf(src), 'sound/effects/internals.ogg', 100, 1) + //playsound(src, 'sound/effects/internals.ogg', 100, 1) update_icon() START_PROCESSING(SSobj,src) if ("Remove vessel") diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm index 07cc774fb0..4705b39276 100644 --- a/code/game/objects/structures/mirror.dm +++ b/code/game/objects/structures/mirror.dm @@ -51,7 +51,7 @@ /obj/structure/mirror/attackby(obj/item/I as obj, mob/user as mob) if(I.is_wrench()) if(!glass) - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) if(do_after(user, 20 * I.toolspeed)) to_chat(user, "You unfasten the frame.") new /obj/item/frame/mirror( src.loc ) @@ -65,7 +65,7 @@ new /obj/item/weapon/material/shard( src.loc ) return if(!shattered && glass) - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You remove the glass.") glass = !glass icon_state = "mirror_frame" @@ -88,7 +88,7 @@ return if(shattered && glass) - playsound(src.loc, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1) + playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1) return if(prob(I.force * 2)) @@ -97,13 +97,13 @@ shatter() else visible_message("[user] hits [src] with [I]!") - playsound(src.loc, 'sound/effects/Glasshit.ogg', 70, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 70, 1) /obj/structure/mirror/attack_generic(var/mob/user, var/damage) user.do_attack_animation(src) if(shattered && glass) - playsound(src.loc, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1) + playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, 1) return 0 if(damage) diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm index 1c6476d1d1..5d5e4fb630 100644 --- a/code/game/objects/structures/mop_bucket.dm +++ b/code/game/objects/structures/mop_bucket.dm @@ -28,4 +28,4 @@ GLOBAL_LIST_BOILERPLATE(all_mopbuckets, /obj/structure/mopbucket) else reagents.trans_to_obj(I, 5) to_chat(user, "You wet \the [I] in \the [src].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 2043ca2a11..a908f3f0c0 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -95,13 +95,13 @@ for(var/atom/movable/A as mob|obj in src.connected.loc) if (!( A.anchored )) A.forceMove(src) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) qdel(src.connected) src.connected = null /obj/structure/morgue/proc/open() - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) src.connected = new /obj/structure/m_tray( src.loc ) step(src.connected, src.dir) src.connected.layer = OBJ_LAYER @@ -225,11 +225,11 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium) for(var/atom/movable/A as mob|obj in src.connected.loc) if (!( A.anchored )) A.forceMove(src) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) //src.connected = null qdel(src.connected) else if (src.locked == 0) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) src.connected = new /obj/structure/m_tray/c_tray( src.loc ) step(src.connected, dir) //Vorestation Edit src.connected.layer = OBJ_LAYER @@ -319,7 +319,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium) sleep(30) cremating = 0 locked = 0 - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) return diff --git a/code/game/objects/structures/morgue_vr.dm b/code/game/objects/structures/morgue_vr.dm index 2abe7098d1..3d9a72deb8 100644 --- a/code/game/objects/structures/morgue_vr.dm +++ b/code/game/objects/structures/morgue_vr.dm @@ -55,5 +55,5 @@ sleep(30) cremating = 0 locked = 0 - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) return \ No newline at end of file diff --git a/code/game/objects/structures/musician.dm b/code/game/objects/structures/musician.dm index 39eea11236..cfd036b9bb 100644 --- a/code/game/objects/structures/musician.dm +++ b/code/game/objects/structures/musician.dm @@ -345,7 +345,7 @@ /obj/structure/device/piano/attackby(obj/item/O as obj, mob/user as mob) if(O.is_wrench()) if(anchored) - playsound(src.loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) to_chat(user, "You begin to loosen \the [src]'s casters...") if (do_after(user, 40 * O.toolspeed)) user.visible_message( \ @@ -354,7 +354,7 @@ "You hear ratchet.") src.anchored = 0 else - playsound(src.loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) to_chat(user, "You begin to tighten \the [src] to the floor...") if (do_after(user, 20 * O.toolspeed)) user.visible_message( \ diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm index c701ae9015..629bc1c41e 100644 --- a/code/game/objects/structures/noticeboard.dm +++ b/code/game/objects/structures/noticeboard.dm @@ -43,7 +43,7 @@ to_chat(user, "You reach to pin your paper to the board but hesitate. You are certain your paper will not be seen among the many others already attached.") if(O.is_wrench()) to_chat(user, "You start to unwrench the noticeboard.") - playsound(src.loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) if(do_after(user, 15 * O.toolspeed)) to_chat(user, "You unwrench the noticeboard.") new /obj/item/frame/noticeboard( src.loc ) diff --git a/code/game/objects/structures/props/swarm.dm b/code/game/objects/structures/props/swarm.dm index 181001036a..455698acb2 100644 --- a/code/game/objects/structures/props/swarm.dm +++ b/code/game/objects/structures/props/swarm.dm @@ -37,7 +37,7 @@ if(prob(1 + damage * 3)) visible_message("[shatter_message]") STOP_PROCESSING(SSobj, src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" @@ -53,21 +53,21 @@ ) STOP_PROCESSING(SSobj, src) user.do_attack_animation(src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" set_light(0) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) else if(prob(damage * 2)) to_chat(user, "You pulverize what was left of \the [src]!") qdel(src) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) /obj/structure/cult/pylon/swarm/pylon_unique() . = ..() @@ -117,7 +117,7 @@ if(prob(1 + damage * 3) && round(damage * 0.8) >= 30) visible_message("[shatter_message]") STOP_PROCESSING(SSobj, src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" @@ -133,18 +133,18 @@ ) STOP_PROCESSING(SSobj, src) user.do_attack_animation(src) - playsound(get_turf(src),shatter_sound, 75, 1) + playsound(src,shatter_sound, 75, 1) isbroken = 1 density = 0 icon_state = "[initial(icon_state)]-broken" set_light(0) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) else if(prob(damage * 2)) to_chat(user, "You pulverize what was left of \the [src]!") qdel(src) else to_chat(user, "You hit \the [src]!") - playsound(get_turf(src),impact_sound, 75, 1) + playsound(src,impact_sound, 75, 1) diff --git a/code/game/objects/structures/railing.dm b/code/game/objects/structures/railing.dm index ae21c406c3..5a4ce00a8c 100644 --- a/code/game/objects/structures/railing.dm +++ b/code/game/objects/structures/railing.dm @@ -63,7 +63,7 @@ health -= amount if(health <= 0) visible_message("\The [src] breaks down!") - playsound(loc, 'sound/effects/grillehit.ogg', 50, 1) + playsound(src, 'sound/effects/grillehit.ogg', 50, 1) new /obj/item/stack/rods(get_turf(src)) qdel(src) @@ -203,7 +203,7 @@ /obj/structure/railing/attackby(obj/item/W as obj, mob/user as mob) // Dismantle if(W.is_wrench() && !anchored) - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) if(do_after(user, 20, src)) user.visible_message("\The [user] dismantles \the [src].", "You dismantle \the [src].") new /obj/item/stack/material/steel(get_turf(usr), 2) @@ -214,7 +214,7 @@ if(health < maxhealth && istype(W, /obj/item/weapon/weldingtool)) var/obj/item/weapon/weldingtool/F = W if(F.welding) - playsound(src.loc, F.usesound, 50, 1) + playsound(src, F.usesound, 50, 1) if(do_after(user, 20, src)) user.visible_message("\The [user] repairs some damage to \the [src].", "You repair some damage to \the [src].") health = min(health+(maxhealth/5), maxhealth) // 20% repair per application @@ -223,7 +223,7 @@ // Install if(W.is_screwdriver()) user.visible_message(anchored ? "\The [user] begins unscrewing \the [src]." : "\The [user] begins fasten \the [src]." ) - playsound(loc, W.usesound, 75, 1) + playsound(src, W.usesound, 75, 1) if(do_after(user, 10, src)) to_chat(user, (anchored ? "You have unfastened \the [src] from the floor." : "You have fastened \the [src] to the floor.")) anchored = !anchored @@ -245,7 +245,7 @@ M.apply_damage(8,def_zone = "head") take_damage(8) visible_message("[G.assailant] slams [G.affecting]'s face against \the [src]!") - playsound(loc, 'sound/effects/grillehit.ogg', 50, 1) + playsound(src, 'sound/effects/grillehit.ogg', 50, 1) else to_chat(user, "You need a better grip to do that!") return @@ -260,7 +260,7 @@ return else - playsound(loc, 'sound/effects/grillehit.ogg', 50, 1) + playsound(src, 'sound/effects/grillehit.ogg', 50, 1) take_damage(W.force) user.setClickCooldown(user.get_attack_speed(W)) diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index 9de9dc082b..e68fa43640 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -114,7 +114,7 @@ FLOOR SAFES tumbler_2_pos = decrement(tumbler_2_pos) if(canhear) to_chat(user, "You hear a [pick("click", "chink", "clink")] from \the [src].") - playsound(user, 'sound/machines/click.ogg', 20, 1) + playsound(src, 'sound/machines/click.ogg', 20, 1) check_unlocked(user, canhear) updateUsrDialog() @@ -130,7 +130,7 @@ FLOOR SAFES tumbler_2_pos = increment(tumbler_2_pos) if(canhear) to_chat(user, "You hear a [pick("click", "chink", "clink")] from \the [src].") - playsound(user, 'sound/machines/click.ogg', 20, 1) + playsound(src, 'sound/machines/click.ogg', 20, 1) check_unlocked(user, canhear) updateUsrDialog() return diff --git a/code/game/objects/structures/salvageable.dm b/code/game/objects/structures/salvageable.dm index 2703a7eed6..201b203acc 100644 --- a/code/game/objects/structures/salvageable.dm +++ b/code/game/objects/structures/salvageable.dm @@ -15,7 +15,7 @@ /obj/structure/salvageable/attackby(obj/item/I, mob/user) if(I.is_crowbar()) - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) var/actual_time = I.toolspeed * 170 user.visible_message( \ "\The [user] begins salvaging from \the [src].", \ @@ -240,7 +240,7 @@ obj/structure/salvageable/bliss/Initialize() /obj/structure/salvageable/bliss/attackby(obj/item/I, mob/user) if((. = ..())) - playsound(user, 'sound/machines/shutdown.ogg', 60, 1) + playsound(src, 'sound/machines/shutdown.ogg', 60, 1) ////////////////// //// ONE STAR //// diff --git a/code/game/objects/structures/simple_doors.dm b/code/game/objects/structures/simple_doors.dm index 60b94841ea..95689683a5 100644 --- a/code/game/objects/structures/simple_doors.dm +++ b/code/game/objects/structures/simple_doors.dm @@ -37,7 +37,7 @@ else set_opacity(1) if(material.products_need_process()) - START_PROCESSING(SSobj, src) + START_PROCESSING(SSobj, src) update_nearby_tiles(need_rebuild=1) /obj/structure/simple_door/Destroy() @@ -95,7 +95,7 @@ /obj/structure/simple_door/proc/Open() isSwitchingStates = 1 - playsound(loc, material.dooropen_noise, 100, 1) + playsound(src, material.dooropen_noise, 100, 1) flick("[material.door_icon_base]opening",src) sleep(10) density = 0 @@ -107,7 +107,7 @@ /obj/structure/simple_door/proc/Close() isSwitchingStates = 1 - playsound(loc, material.dooropen_noise, 100, 1) + playsound(src, material.dooropen_noise, 100, 1) flick("[material.door_icon_base]closing",src) sleep(10) density = 1 @@ -135,9 +135,9 @@ hardness -= W.force/10 visible_message("[user] hits [src] with [W]!") if(material == get_material_by_name("resin")) - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD))) - playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 100, 1) else playsound(src, 'sound/weapons/smash.ogg', 50, 1) CheckHardness() @@ -160,9 +160,9 @@ /obj/structure/simple_door/attack_generic(var/mob/user, var/damage, var/attack_verb) visible_message("[user] [attack_verb] the [src]!") if(material == get_material_by_name("resin")) - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD))) - playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 100, 1) else playsound(src, 'sound/weapons/smash.ogg', 50, 1) user.do_attack_animation(src) diff --git a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm index 270583011d..ebba811fb9 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/alien_nests.dm @@ -73,7 +73,7 @@ /obj/structure/bed/nest/attackby(obj/item/weapon/W as obj, mob/user as mob) var/aforce = W.force health = max(0, health - aforce) - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) for(var/mob/M in viewers(src, 7)) M.show_message("[user] hits [src] with [W]!", 1) healthcheck() diff --git a/code/game/objects/structures/stool_bed_chair_nest/bed.dm b/code/game/objects/structures/stool_bed_chair_nest/bed.dm index b053e33805..9511b3625b 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/bed.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/bed.dm @@ -124,7 +124,7 @@ to_chat(user, "\The [src] has no padding to remove.") return to_chat(user, "You remove the padding from \the [src].") - playsound(src.loc, W.usesound, 100, 1) + playsound(src, W.usesound, 100, 1) remove_padding() else if(istype(W, /obj/item/weapon/grab)) diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index d471ba3840..a3426aa816 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -22,7 +22,7 @@ return user.drop_item() var/obj/structure/bed/chair/e_chair/E = new (src.loc, material.name) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) E.set_dir(dir) E.part = SK SK.loc = E @@ -175,7 +175,7 @@ occupant.apply_effect(6, WEAKEN, blocked) occupant.apply_effect(6, STUTTER, blocked) occupant.apply_damage(10, BRUTE, def_zone, blocked, soaked) - playsound(src.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/punch1.ogg', 50, 1, -1) if(istype(A, /mob/living)) var/mob/living/victim = A def_zone = ran_zone() diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs_vr.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs_vr.dm index fa28f71bad..30e79012fe 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs_vr.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs_vr.dm @@ -217,7 +217,7 @@ ..(newloc, DEFAULT_WALL_MATERIAL, padding) /obj/structure/bed/chair/bay/shuttle/post_buckle_mob() - playsound(loc,buckling_sound,75,1) + playsound(src,buckling_sound,75,1) if(has_buckled_mobs()) base_icon = "shuttle_chair-b" else diff --git a/code/game/objects/structures/stool_bed_chair_nest/stools.dm b/code/game/objects/structures/stool_bed_chair_nest/stools.dm index 525b9883d5..e0432bfb64 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/stools.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/stools.dm @@ -145,7 +145,7 @@ var/global/list/stool_cache = list() //haha stool to_chat(user, "\The [src] has no padding to remove.") return to_chat(user, "You remove the padding from \the [src].") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) remove_padding() else ..() diff --git a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm index 639020ba5d..089e65fc04 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm @@ -166,7 +166,7 @@ occupant.apply_effect(6, WEAKEN, blocked) occupant.apply_effect(6, STUTTER, blocked) occupant.apply_damage(10, BRUTE, def_zone, soaked) - playsound(src.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/punch1.ogg', 50, 1, -1) if(istype(A, /mob/living)) var/mob/living/victim = A def_zone = ran_zone() diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index 467579a225..78ad49d907 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -46,7 +46,7 @@ /obj/structure/toilet/attackby(obj/item/I as obj, mob/living/user as mob) if(I.is_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(src, 'sound/effects/stonedoor_openclose.ogg', 50, 1) if(do_after(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 @@ -172,7 +172,7 @@ if(I.is_wrench()) var/newtemp = input(user, "What setting would you like to set the temperature valve to?", "Water Temperature Valve") in temperature_settings to_chat(user, "You begin to adjust the temperature valve with \the [I].") - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) if(do_after(user, 50 * I.toolspeed)) watertemp = newtemp user.visible_message("[user] adjusts the shower with \the [I].", "You adjust the shower with \the [I].") @@ -384,7 +384,7 @@ return to_chat(usr, "You start washing your hands.") - playsound(loc, 'sound/effects/sink_long.ogg', 75, 1) + playsound(src, 'sound/effects/sink_long.ogg', 75, 1) busy = 1 sleep(40) @@ -407,7 +407,7 @@ if (istype(RG) && RG.is_open_container()) RG.reagents.add_reagent("water", min(RG.volume - RG.reagents.total_volume, RG.amount_per_transfer_from_this)) user.visible_message("[user] fills \the [RG] using \the [src].","You fill \the [RG] using \the [src].") - playsound(loc, 'sound/effects/sink.ogg', 75, 1) + playsound(src, 'sound/effects/sink.ogg', 75, 1) return 1 else if (istype(O, /obj/item/weapon/melee/baton)) @@ -431,7 +431,7 @@ else if(istype(O, /obj/item/weapon/mop)) O.reagents.add_reagent("water", 5) to_chat(user, "You wet \the [O] in \the [src].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) return var/turf/location = user.loc diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm index 353df5ecb8..400b997dc5 100644 --- a/code/game/objects/structures/windoor_assembly.dm +++ b/code/game/objects/structures/windoor_assembly.dm @@ -91,7 +91,7 @@ obj/structure/windoor_assembly/Destroy() var/obj/item/weapon/weldingtool/WT = W if (WT.remove_fuel(0,user)) user.visible_message("[user] disassembles the windoor assembly.", "You start to disassemble the windoor assembly.") - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) if(do_after(user, 40 * WT.toolspeed)) if(!src || !WT.isOn()) return @@ -157,7 +157,7 @@ obj/structure/windoor_assembly/Destroy() //Adding airlock electronics for access. Step 6 complete. else if(istype(W, /obj/item/weapon/airlock_electronics)) - playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 100, 1) user.visible_message("[user] installs the electronics into the airlock assembly.", "You start to install electronics into the airlock assembly.") if(do_after(user, 40)) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 2434d33e89..4a5db1e7a9 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -62,7 +62,7 @@ shatter() else if(sound_effect) - playsound(loc, 'sound/effects/Glasshit.ogg', 100, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 100, 1) if(health < maxhealth / 4 && initialhealth >= maxhealth / 4) visible_message("[src] looks like it's about to shatter!" ) update_icon() @@ -176,7 +176,7 @@ /obj/structure/window/attack_tk(mob/user as mob) user.visible_message("Something knocks on [src].") - playsound(loc, 'sound/effects/Glasshit.ogg', 50, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 50, 1) /obj/structure/window/attack_hand(mob/user as mob) user.setClickCooldown(user.get_attack_speed()) @@ -194,13 +194,13 @@ attack_generic(H,25) return - playsound(src.loc, 'sound/effects/glassknock.ogg', 80, 1) + playsound(src, 'sound/effects/glassknock.ogg', 80, 1) user.do_attack_animation(src) usr.visible_message("\The [usr] bangs against \the [src]!", "You bang against \the [src]!", "You hear a banging sound.") else - playsound(src.loc, 'sound/effects/glassknock.ogg', 80, 1) + playsound(src, 'sound/effects/glassknock.ogg', 80, 1) usr.visible_message("[usr.name] knocks on the [src.name].", "You knock on the [src.name].", "You hear a knocking sound.") @@ -301,13 +301,13 @@ else if(istype(W, /obj/item/stack/cable_coil) && reinf && state == 0 && !istype(src, /obj/structure/window/reinforced/polarized)) var/obj/item/stack/cable_coil/C = W if (C.use(1)) - playsound(src.loc, 'sound/effects/sparks1.ogg', 75, 1) + playsound(src, 'sound/effects/sparks1.ogg', 75, 1) user.visible_message( \ "\The [user] begins to wire \the [src] for electrochromic tinting.", \ "You begin to wire \the [src] for electrochromic tinting.", \ "You hear sparks.") if(do_after(user, 20 * C.toolspeed, src) && state == 0) - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) var/obj/structure/window/reinforced/polarized/P = new(loc, dir) if(is_fulltile()) P.fulltile = TRUE @@ -330,7 +330,7 @@ update_nearby_icons() step(src, get_dir(user, src)) else - playsound(loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) ..() return diff --git a/code/game/objects/stumble_into_vr.dm b/code/game/objects/stumble_into_vr.dm index f1612be040..1493323af1 100644 --- a/code/game/objects/stumble_into_vr.dm +++ b/code/game/objects/stumble_into_vr.dm @@ -1,5 +1,5 @@ /atom/proc/stumble_into(mob/living/M) - playsound(get_turf(M), "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) visible_message("[M] [pick("ran", "slammed")] into \the [src]!") to_chat(M, "You just [pick("ran", "slammed")] into \the [src]!") M.apply_damage(5, BRUTE) @@ -11,9 +11,9 @@ if(occupied) return ..() if(material) - playsound(get_turf(src), material.tableslam_noise, 25, 1, -1) + playsound(src, material.tableslam_noise, 25, 1, -1) else - playsound(get_turf(src), 'sound/weapons/tablehit1.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1) visible_message("[M] flopped onto \the [src]!") M.apply_damage(5, BRUTE) M.Weaken(2) @@ -21,7 +21,7 @@ M.stop_flying() /obj/machinery/disposal/stumble_into(mob/living/M) - playsound(get_turf(src), 'sound/effects/clang.ogg', 25, 1, -1) + playsound(src, 'sound/effects/clang.ogg', 25, 1, -1) visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!") if(M.client) M.client.perspective = EYE_PERSPECTIVE @@ -33,20 +33,20 @@ update() /obj/structure/inflatable/stumble_into(mob/living/M) - playsound(get_turf(M), "sound/effects/Glasshit.ogg", 25, 1, -1) + playsound(src, "sound/effects/Glasshit.ogg", 25, 1, -1) visible_message("[M] [pick("ran", "slammed")] into \the [src]!") M.Weaken(1) M.stop_flying() /obj/structure/kitchenspike/stumble_into(mob/living/M) - playsound(get_turf(M), "sound/weapons/pierce.ogg", 25, 1, -1) + playsound(src, "sound/weapons/pierce.ogg", 25, 1, -1) visible_message("[M] [pick("ran", "slammed")] into the spikes on \the [src]!") M.apply_damage(15, BRUTE, sharp=1) M.Weaken(5) M.stop_flying() /obj/structure/m_tray/stumble_into(mob/living/M) - playsound(get_turf(src), 'sound/weapons/tablehit1.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1) visible_message("[M] flopped onto \the [src]!") M.apply_damage(5, BRUTE) M.Weaken(2) @@ -54,7 +54,7 @@ M.stop_flying() /obj/structure/c_tray/stumble_into(mob/living/M) - playsound(get_turf(src), 'sound/weapons/tablehit1.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/tablehit1.ogg', 25, 1, -1) visible_message("[M] flopped onto \the [src]!") M.apply_damage(5, BRUTE) M.Weaken(2) @@ -72,7 +72,7 @@ var/obj/occupied = turf_is_crowded() if(occupied) return ..() - playsound(get_turf(src), 'sound/misc/slip.ogg', 25, 1, -1) + playsound(src, 'sound/misc/slip.ogg', 25, 1, -1) visible_message("[M] [pick("tripped", "stumbled")] over \the [src]!") M.Weaken(2) M.stop_flying() @@ -99,7 +99,7 @@ /obj/machinery/atmospherics/unary/cryo_cell/stumble_into(mob/living/M) if((stat & (NOPOWER|BROKEN)) || !istype(M, /mob/living/carbon) || occupant || M.abiotic() || !node) return ..() - playsound(get_turf(src), 'sound/effects/Glasshit.ogg', 25, 1, -1) + playsound(src, 'sound/effects/Glasshit.ogg', 25, 1, -1) visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!") M.apply_damage(5, BRUTE) M.Weaken(2) @@ -123,7 +123,7 @@ /obj/machinery/suit_storage_unit/stumble_into(mob/living/M) if(!ishuman(M) || !isopen || !ispowered || isbroken || OCCUPANT || HELMET || SUIT) return ..() - playsound(get_turf(src), 'sound/effects/clang.ogg', 25, 1, -1) + playsound(src, 'sound/effects/clang.ogg', 25, 1, -1) visible_message("[M] [pick("tripped", "stumbled")] into \the [src]!") if(M.client) M.client.perspective = EYE_PERSPECTIVE diff --git a/code/game/turfs/simulated/water.dm b/code/game/turfs/simulated/water.dm index 071499c297..9a5c0c4b48 100644 --- a/code/game/turfs/simulated/water.dm +++ b/code/game/turfs/simulated/water.dm @@ -45,7 +45,7 @@ else if(istype(O, /obj/item/weapon/mop)) O.reagents.add_reagent(reagent_type, 5) to_chat(user, "You wet \the [O] in \the [src].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) return 1 else return ..() diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index 2a946b492a..60f1640cdd 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -28,7 +28,7 @@ var/list/sounds_cache = list() log_admin("[key_name(src)] played a local sound [S]") message_admins("[key_name_admin(src)] played a local sound [S]", 1) - playsound(get_turf(src.mob), S, 50, 0, 0) + playsound(src.mob, S, 50, 0, 0) feedback_add_details("admin_verb","PLS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! diff --git a/code/modules/ai/ai_holder_communication.dm b/code/modules/ai/ai_holder_communication.dm index ef8fcf253d..beddb68924 100644 --- a/code/modules/ai/ai_holder_communication.dm +++ b/code/modules/ai/ai_holder_communication.dm @@ -34,8 +34,8 @@ if(holder.say_list) holder.ISay(safepick(holder.say_list.say_threaten)) - playsound(holder.loc, holder.say_list.threaten_sound, 50, 1) // We do this twice to make the sound -very- noticable to the target. - playsound(target.loc, holder.say_list.threaten_sound, 50, 1) // Actual aim-mode also does that so at least it's consistant. + playsound(holder, holder.say_list.threaten_sound, 50, 1) // We do this twice to make the sound -very- noticable to the target. + playsound(target, holder.say_list.threaten_sound, 50, 1) // Actual aim-mode also does that so at least it's consistant. else // Otherwise we are waiting for them to go away or to wait long enough for escalate. if(target in list_targets()) // Are they still visible? var/should_escalate = FALSE @@ -57,8 +57,8 @@ set_stance(STANCE_IDLE) if(holder.say_list) holder.ISay(safepick(holder.say_list.say_stand_down)) - playsound(holder.loc, holder.say_list.stand_down_sound, 50, 1) // We do this twice to make the sound -very- noticable to the target. - playsound(target.loc, holder.say_list.stand_down_sound, 50, 1) // Actual aim-mode also does that so at least it's consistant. + playsound(holder, holder.say_list.stand_down_sound, 50, 1) // We do this twice to make the sound -very- noticable to the target. + playsound(target, holder.say_list.stand_down_sound, 50, 1) // Actual aim-mode also does that so at least it's consistant. // Determines what is deserving of a warning when STANCE_ALERT is active. /datum/ai_holder/proc/will_threaten(mob/living/the_target) diff --git a/code/modules/artifice/deadringer.dm b/code/modules/artifice/deadringer.dm index 0906eda63e..b5edd57784 100644 --- a/code/modules/artifice/deadringer.dm +++ b/code/modules/artifice/deadringer.dm @@ -89,7 +89,7 @@ /obj/item/weapon/deadringer/proc/reveal() if(watchowner) watchowner.alpha = 255 - playsound(get_turf(src), 'sound/effects/uncloak.ogg', 35, 1, -1) + playsound(src, 'sound/effects/uncloak.ogg', 35, 1, -1) return /obj/item/weapon/deadringer/proc/makeacorpse(var/mob/living/carbon/human/H) diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index b294fc90c8..6ea9dfdff7 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -43,7 +43,7 @@ var/mob/living/simple_mob/animal/passive/mouse/M = target visible_message("SPLAT!") M.splat() - playsound(target.loc, 'sound/effects/snap.ogg', 50, 1) + playsound(target, 'sound/effects/snap.ogg', 50, 1) layer = MOB_LAYER - 0.2 armed = 0 update_icon() @@ -65,7 +65,7 @@ to_chat(user, "You disarm [src].") armed = !armed update_icon() - playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3) + playsound(user, 'sound/weapons/handcuffs.ogg', 30, 1, -3) /obj/item/device/assembly/mousetrap/attack_hand(var/mob/living/user) if(armed) diff --git a/code/modules/blob/blob.dm b/code/modules/blob/blob.dm index 877c684b5e..91524d6899 100644 --- a/code/modules/blob/blob.dm +++ b/code/modules/blob/blob.dm @@ -43,7 +43,7 @@ /obj/effect/blob/take_damage(var/damage) // VOREStation Edit health -= damage if(health < 0) - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) qdel(src) else update_icon() @@ -103,7 +103,7 @@ if(L.stat == DEAD) continue L.visible_message("The blob attacks \the [L]!", "The blob attacks you!") - playsound(loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) L.take_organ_damage(rand(30, 40)) return new expandType(T, min(health, 30)) @@ -135,7 +135,7 @@ /obj/effect/blob/attackby(var/obj/item/weapon/W, var/mob/user) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - playsound(loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) visible_message("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]") var/damage = 0 switch(W.damtype) diff --git a/code/modules/blob2/blobs/base_blob.dm b/code/modules/blob2/blobs/base_blob.dm index 1bcf7c35bd..71d4ad7254 100644 --- a/code/modules/blob2/blobs/base_blob.dm +++ b/code/modules/blob2/blobs/base_blob.dm @@ -32,7 +32,7 @@ GLOBAL_LIST_EMPTY(all_blobs) /obj/structure/blob/Destroy() - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) //Expand() is no longer broken, no check necessary. + playsound(src, 'sound/effects/splat.ogg', 50, 1) //Expand() is no longer broken, no check necessary. GLOB.all_blobs -= src overmind = null return ..() @@ -149,7 +149,7 @@ GLOBAL_LIST_EMPTY(all_blobs) if(istype(T, /turf/space) && !(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, '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 consume_tile() //hit the tile we're in, making sure there are no border objects blocking us @@ -223,7 +223,7 @@ GLOBAL_LIST_EMPTY(all_blobs) /obj/structure/blob/attack_generic(var/mob/user, var/damage, var/attack_verb) visible_message("[user] [attack_verb] the [src]!") - playsound(loc, 'sound/effects/attackblob.ogg', 100, 1) + playsound(src, 'sound/effects/attackblob.ogg', 100, 1) user.do_attack_animation(src) if(overmind) damage *= overmind.blob_type.brute_multiplier @@ -307,7 +307,7 @@ GLOBAL_LIST_EMPTY(all_blobs) /obj/structure/blob/attackby(var/obj/item/weapon/W, var/mob/user) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - playsound(loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) visible_message("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]") var/damage = W.force switch(W.damtype) @@ -318,7 +318,7 @@ GLOBAL_LIST_EMPTY(all_blobs) damage *= 2 if(damage > 0) - playsound(src.loc, 'sound/items/welder.ogg', 100, 1) + playsound(src, 'sound/items/welder.ogg', 100, 1) else playsound(src, 'sound/weapons/tap.ogg', 50, 1) if(BRUTE, SEARING, TOX, CLONE) @@ -328,7 +328,7 @@ GLOBAL_LIST_EMPTY(all_blobs) damage *= 2 if(damage > 0) - playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) else playsound(src, 'sound/weapons/tap.ogg', 50, 1) if(overmind) @@ -369,7 +369,7 @@ GLOBAL_LIST_EMPTY(all_blobs) /obj/structure/blob/proc/adjust_integrity(amount) integrity = between(0, integrity + amount, max_integrity) if(integrity == 0) - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) if(overmind) overmind.blob_type.on_death(src) qdel(src) diff --git a/code/modules/catalogue/cataloguer.dm b/code/modules/catalogue/cataloguer.dm index e4e148c230..8f7f3152f3 100644 --- a/code/modules/catalogue/cataloguer.dm +++ b/code/modules/catalogue/cataloguer.dm @@ -111,25 +111,25 @@ GLOBAL_LIST_EMPTY(all_cataloguers) box_segments = draw_box(target, scan_range, user.client) color_box(box_segments, "#00FF00", scan_delay) - playsound(src.loc, 'sound/machines/beep.ogg', 50) + playsound(src, 'sound/machines/beep.ogg', 50) // The delay, and test for if the scan succeeds or not. var/scan_start_time = world.time if(do_after(user, scan_delay, target, ignore_movement = TRUE, max_distance = scan_range)) if(target.can_catalogue(user)) to_chat(user, span("notice", "You successfully scan \the [target] with \the [src].")) - playsound(src.loc, 'sound/machines/ping.ogg', 50) + playsound(src, 'sound/machines/ping.ogg', 50) catalogue_object(target, user) else // In case someone else scans it first, or it died, etc. to_chat(user, span("warning", "\The [target] is no longer valid to scan with \the [src].")) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50) + playsound(src, 'sound/machines/buzz-two.ogg', 50) partial_scanned = null partial_scan_time = 0 else to_chat(user, span("warning", "You failed to finish scanning \the [target] with \the [src].")) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50) + playsound(src, 'sound/machines/buzz-two.ogg', 50) color_box(box_segments, "#FF0000", 3) partial_scanned = weakref(target) partial_scan_time += world.time - scan_start_time // This is added to the existing value so two partial scans will add up correctly. @@ -204,7 +204,7 @@ GLOBAL_LIST_EMPTY(all_cataloguers) busy = TRUE update_icon() - playsound(src.loc, 'sound/machines/beep.ogg', 50) + playsound(src, 'sound/machines/beep.ogg', 50) // First, get everything able to be scanned. var/list/scannable_atoms = list() @@ -232,9 +232,9 @@ GLOBAL_LIST_EMPTY(all_cataloguers) busy = FALSE update_icon() if(scannable_atoms.len) - playsound(src.loc, 'sound/machines/ping.ogg', 50) + playsound(src, 'sound/machines/ping.ogg', 50) else - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50) + playsound(src, 'sound/machines/buzz-two.ogg', 50) to_chat(user, span("notice", "\The [src] found [scannable_atoms.len] object\s that can be scanned.")) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index fa44532b13..720c83934a 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -325,7 +325,7 @@ update_icon() return - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) user.visible_message("[user] cuts the fingertips off of the [src].","You cut the fingertips off of the [src].") clipped = 1 @@ -602,7 +602,7 @@ if(usr.put_in_hands(holding)) usr.visible_message("\The [usr] pulls a knife out of their boot!") - playsound(get_turf(src), 'sound/weapons/holster/sheathout.ogg', 25) + playsound(src, 'sound/weapons/holster/sheathout.ogg', 25) holding = null overlays -= image(icon, "[icon_state]_knife") else diff --git a/code/modules/clothing/glasses/glasses_vr.dm b/code/modules/clothing/glasses/glasses_vr.dm index f11970d21e..bec07a78c8 100644 --- a/code/modules/clothing/glasses/glasses_vr.dm +++ b/code/modules/clothing/glasses/glasses_vr.dm @@ -9,7 +9,7 @@ name = "[initial(name)]" user.visible_message("[user] replaces the prescription lenses in \the [src] with generics.") - playsound(user,'sound/items/screwdriver.ogg', 50, 1) + playsound(src,'sound/items/screwdriver.ogg', 50, 1) //Prescription kit /obj/item/device/glasses_kit diff --git a/code/modules/clothing/glasses/hud_vr.dm b/code/modules/clothing/glasses/hud_vr.dm index 652d0c9dc1..db22d70e97 100644 --- a/code/modules/clothing/glasses/hud_vr.dm +++ b/code/modules/clothing/glasses/hud_vr.dm @@ -39,7 +39,7 @@ /obj/item/clothing/glasses/omnihud/prescribe(var/mob/user) prescription = !prescription - playsound(user,'sound/items/screwdriver.ogg', 50, 1) + playsound(src,'sound/items/screwdriver.ogg', 50, 1) if(prescription) name = "[initial(name)] (pr)" user.visible_message("[user] uploads new prescription data to the [src.name].") diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 816c5052fc..7590817a37 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -37,7 +37,7 @@ set_slowdown() force = 5 if(icon_base) icon_state = "[icon_base]1" - playsound(get_turf(src), 'sound/effects/magnetclamp.ogg', 20) + playsound(src, 'sound/effects/magnetclamp.ogg', 20) to_chat(user, "You enable the mag-pulse traction system.") user.update_inv_shoes() //so our mob-overlays update user.update_action_buttons() diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm index f2e9e689b4..cf055ae9c0 100644 --- a/code/modules/clothing/spacesuits/rig/modules/computer.dm +++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm @@ -405,7 +405,7 @@ drain_loc = interfaced_with.loc holder.spark_system.start() - playsound(H.loc, 'sound/effects/sparks2.ogg', 50, 1) + playsound(H, 'sound/effects/sparks2.ogg', 50, 1) return 1 @@ -429,7 +429,7 @@ return 0 holder.spark_system.start() - playsound(H.loc, 'sound/effects/sparks2.ogg', 50, 1) + playsound(H, 'sound/effects/sparks2.ogg', 50, 1) H.break_cloak() diff --git a/code/modules/clothing/spacesuits/rig/modules/ninja.dm b/code/modules/clothing/spacesuits/rig/modules/ninja.dm index 6381e6b1b0..f81a48c2ac 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm @@ -59,7 +59,7 @@ for(var/mob/O in oviewers(H)) O.show_message("[H.name] appears from thin air!",1) - playsound(get_turf(H), 'sound/effects/stealthoff.ogg', 75, 1) + playsound(src, 'sound/effects/stealthoff.ogg', 75, 1) /obj/item/rig_module/teleporter @@ -83,8 +83,8 @@ return holder.spark_system.start() - playsound(T, 'sound/effects/phasein.ogg', 25, 1) - playsound(T, 'sound/effects/sparks2.ogg', 50, 1) + playsound(src, 'sound/effects/phasein.ogg', 25, 1) + playsound(src, 'sound/effects/sparks2.ogg', 50, 1) anim(T,M,'icons/mob/mob.dmi',,"phasein",,M.dir) /obj/item/rig_module/teleporter/proc/phase_out(var/mob/M,var/turf/T) diff --git a/code/modules/clothing/spacesuits/rig/modules/specific/cloak.dm b/code/modules/clothing/spacesuits/rig/modules/specific/cloak.dm index a1dfb05812..c63f1c2fbd 100644 --- a/code/modules/clothing/spacesuits/rig/modules/specific/cloak.dm +++ b/code/modules/clothing/spacesuits/rig/modules/specific/cloak.dm @@ -50,4 +50,4 @@ H.alpha = initial(H.alpha) H.visible_message("[H.name] appears from thin air!") - playsound(get_turf(H), 'sound/effects/stealthoff.ogg', 75, 1) \ No newline at end of file + playsound(H, 'sound/effects/stealthoff.ogg', 75, 1) \ No newline at end of file diff --git a/code/modules/clothing/spacesuits/rig/modules/specific/powersink.dm b/code/modules/clothing/spacesuits/rig/modules/specific/powersink.dm index ec8fba92d6..bfea5ccf1c 100644 --- a/code/modules/clothing/spacesuits/rig/modules/specific/powersink.dm +++ b/code/modules/clothing/spacesuits/rig/modules/specific/powersink.dm @@ -57,7 +57,7 @@ drain_loc = interfaced_with.loc holder.spark_system.start() - playsound(H.loc, 'sound/effects/sparks2.ogg', 50, 1) + playsound(H, 'sound/effects/sparks2.ogg', 50, 1) return 1 @@ -81,7 +81,7 @@ return 0 holder.spark_system.start() - playsound(H.loc, 'sound/effects/sparks2.ogg', 50, 1) + playsound(H, 'sound/effects/sparks2.ogg', 50, 1) H.break_cloak() diff --git a/code/modules/clothing/spacesuits/rig/rig_pieces.dm b/code/modules/clothing/spacesuits/rig/rig_pieces.dm index 04df18d1e8..82caf79deb 100644 --- a/code/modules/clothing/spacesuits/rig/rig_pieces.dm +++ b/code/modules/clothing/spacesuits/rig/rig_pieces.dm @@ -69,7 +69,7 @@ tacknife.loc = get_turf(src) if(M.put_in_active_hand(tacknife)) to_chat(M, "You slide \the [tacknife] out of [src].") - playsound(M, 'sound/weapons/flipblade.ogg', 40, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 40, 1) tacknife = null update_icon() return @@ -83,7 +83,7 @@ tacknife = I I.loc = src to_chat(M, "You slide the [I] into [src].") - playsound(M, 'sound/weapons/flipblade.ogg', 40, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 40, 1) update_icon() ..() diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index c41ff83d81..7fb4df785e 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -189,7 +189,7 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, "sparks", 50, 1) + playsound(src, "sparks", 50, 1) user.loc = picked return PROJECTILE_FORCE_MISS diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index 8843efb41c..cac0713b07 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -25,7 +25,7 @@ return if(holster_in) - playsound(get_turf(src), holster_in, 50) + playsound(src, holster_in, 50) if(istype(user)) user.stop_aiming(no_message=1) @@ -62,7 +62,7 @@ ) if(holster_out) - playsound(get_turf(src), holster_out, sound_vol) + playsound(src, holster_out, sound_vol) user.put_in_hands(holstered) holstered.add_fingerprint(user) diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm index b02660b69d..d6224638c3 100644 --- a/code/modules/economy/ATM.dm +++ b/code/modules/economy/ATM.dm @@ -58,9 +58,9 @@ log transactions for(var/obj/item/weapon/spacecash/S in src) S.loc = src.loc if(prob(50)) - playsound(loc, 'sound/items/polaroid1.ogg', 50, 1) + playsound(src, 'sound/items/polaroid1.ogg', 50, 1) else - playsound(loc, 'sound/items/polaroid2.ogg', 50, 1) + playsound(src, 'sound/items/polaroid2.ogg', 50, 1) break /obj/machinery/atm/emag_act(var/remaining_charges, var/mob/user) @@ -103,9 +103,9 @@ log transactions //consume the money authenticated_account.money += I:worth if(prob(50)) - playsound(loc, 'sound/items/polaroid1.ogg', 50, 1) + playsound(src, 'sound/items/polaroid1.ogg', 50, 1) else - playsound(loc, 'sound/items/polaroid2.ogg', 50, 1) + playsound(src, 'sound/items/polaroid2.ogg', 50, 1) //create a transaction log entry var/datum/transaction/T = new() @@ -383,9 +383,9 @@ log transactions R.stamps += "
This paper has been stamped by the Automatic Teller Machine." if(prob(50)) - playsound(loc, 'sound/items/polaroid1.ogg', 50, 1) + playsound(src, 'sound/items/polaroid1.ogg', 50, 1) else - playsound(loc, 'sound/items/polaroid2.ogg', 50, 1) + playsound(src, 'sound/items/polaroid2.ogg', 50, 1) if ("print_transaction") if(authenticated_account) var/obj/item/weapon/paper/R = new(src.loc) @@ -425,9 +425,9 @@ log transactions R.stamps += "
This paper has been stamped by the Automatic Teller Machine." if(prob(50)) - playsound(loc, 'sound/items/polaroid1.ogg', 50, 1) + playsound(src, 'sound/items/polaroid1.ogg', 50, 1) else - playsound(loc, 'sound/items/polaroid2.ogg', 50, 1) + playsound(src, 'sound/items/polaroid2.ogg', 50, 1) if("insert_card") if(!held_card) diff --git a/code/modules/events/money_spam.dm b/code/modules/events/money_spam.dm index 8e4fabe4a2..0b877cef3d 100644 --- a/code/modules/events/money_spam.dm +++ b/code/modules/events/money_spam.dm @@ -65,7 +65,7 @@ message = pick("Luxury watches for Blowout sale prices!",\ "Watches, Jewelry & Accessories, Bags & Wallets !",\ "Deposit 100$ and get 300$ totally free!",\ - " 100K NT.|WOWGOLD õnly $89 ",\ + " 100K NT.|WOWGOLD �nly $89 ",\ "We have been filed with a complaint from one of your customers in respect of their business relations with you.",\ "We kindly ask you to open the COMPLAINT REPORT (attached) to reply on this complaint..") if(4) @@ -113,7 +113,7 @@ //P.tnote += "← From [sender] (Unknown / spam?):
[message]
" if (!P.message_silent) - playsound(P.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(P, 'sound/machines/twobeep.ogg', 50, 1) for (var/mob/O in hearers(3, P.loc)) if(!P.message_silent) O.show_message(text("[bicon(P)] *[P.ttone]*")) //Search for holder of the PDA. diff --git a/code/modules/food/food/condiment.dm b/code/modules/food/food/condiment.dm index 1dd137ff32..657946d019 100644 --- a/code/modules/food/food/condiment.dm +++ b/code/modules/food/food/condiment.dm @@ -48,7 +48,7 @@ ..() /obj/item/weapon/reagent_containers/food/condiment/feed_sound(var/mob/user) - playsound(user.loc, 'sound/items/drink.ogg', rand(10, 50), 1) + playsound(src, 'sound/items/drink.ogg', rand(10, 50), 1) /obj/item/weapon/reagent_containers/food/condiment/self_feed_message(var/mob/user) to_chat(user, "You swallow some of contents of \the [src].") diff --git a/code/modules/food/food/drinks.dm b/code/modules/food/food/drinks.dm index 546c47a7e2..816c910339 100644 --- a/code/modules/food/food/drinks.dm +++ b/code/modules/food/food/drinks.dm @@ -25,7 +25,7 @@ open(user) /obj/item/weapon/reagent_containers/food/drinks/proc/open(mob/user) - playsound(loc,"canopen", rand(10,50), 1) + playsound(src,"canopen", rand(10,50), 1) to_chat(user, "You open [src] with an audible pop!") flags |= OPENCONTAINER @@ -69,7 +69,7 @@ to_chat(user, "You swallow a gulp from \the [src].") /obj/item/weapon/reagent_containers/food/drinks/feed_sound(var/mob/user) - playsound(user.loc, 'sound/items/drink.ogg', rand(10, 50), 1) + playsound(src, 'sound/items/drink.ogg', rand(10, 50), 1) /obj/item/weapon/reagent_containers/food/drinks/examine(mob/user) . = ..() diff --git a/code/modules/food/food/drinks/bottle.dm b/code/modules/food/food/drinks/bottle.dm index 28915dff7e..89c06552f5 100644 --- a/code/modules/food/food/drinks/bottle.dm +++ b/code/modules/food/food/drinks/bottle.dm @@ -187,7 +187,7 @@ var/icon/broken_outline = icon('icons/obj/drinks.dmi', "broken") /obj/item/weapon/broken_bottle/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob) - playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/bladeslice.ogg', 50, 1, -1) return ..() /obj/item/weapon/reagent_containers/food/drinks/bottle/gin diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index a3f16a3563..72ac7787ce 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -135,7 +135,7 @@ return if(reagents) //Handle ingestion of the reagent. - playsound(M.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(M,'sound/items/eatfood.ogg', rand(10,50), 1) if(reagents.total_volume) if(reagents.total_volume > bitesize) reagents.trans_to_mob(M, bitesize, CHEM_INGEST) diff --git a/code/modules/food/kitchen/cooking_machines/_cooker.dm b/code/modules/food/kitchen/cooking_machines/_cooker.dm index 70d7a9ad9c..f0716e015f 100644 --- a/code/modules/food/kitchen/cooking_machines/_cooker.dm +++ b/code/modules/food/kitchen/cooking_machines/_cooker.dm @@ -166,7 +166,7 @@ qdel(cooking_obj) src.visible_message("\The [src] pings!") if(cooked_sound) - playsound(get_turf(src), cooked_sound, 50, 1) + playsound(src, cooked_sound, 50, 1) if(!can_burn_food) icon_state = off_icon diff --git a/code/modules/food/kitchen/gibber.dm b/code/modules/food/kitchen/gibber.dm index ab70028bd6..1fca845091 100644 --- a/code/modules/food/kitchen/gibber.dm +++ b/code/modules/food/kitchen/gibber.dm @@ -227,7 +227,7 @@ occupant.gib() occupant = null - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) operating = 0 for (var/obj/thing in contents) // There's a chance that the gibber will fail to destroy some evidence. diff --git a/code/modules/food/kitchen/microwave.dm b/code/modules/food/kitchen/microwave.dm index 593a7892fd..8f27afe2b1 100644 --- a/code/modules/food/kitchen/microwave.dm +++ b/code/modules/food/kitchen/microwave.dm @@ -353,7 +353,7 @@ src.updateUsrDialog() /obj/machinery/microwave/proc/muck_start() - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) // Play a splat sound + playsound(src, 'sound/effects/splat.ogg', 50, 1) // Play a splat sound src.icon_state = "mwbloody1" // Make it look dirty!! /obj/machinery/microwave/proc/muck_finish() diff --git a/code/modules/games/cards.dm b/code/modules/games/cards.dm index d4eb606aa2..3be22f940a 100644 --- a/code/modules/games/cards.dm +++ b/code/modules/games/cards.dm @@ -230,7 +230,7 @@ cards -= P cards = newcards user.visible_message("\The [user] shuffles [src].") - playsound(user, 'sound/items/cardshuffle.ogg', 50, 1) + playsound(src, 'sound/items/cardshuffle.ogg', 50, 1) cooldown = world.time else return diff --git a/code/modules/games/tarot.dm b/code/modules/games/tarot.dm index cae71540cb..7c49f7ec43 100644 --- a/code/modules/games/tarot.dm +++ b/code/modules/games/tarot.dm @@ -36,7 +36,7 @@ newcards += P cards -= P cards = newcards - playsound(user, 'sound/items/cardshuffle.ogg', 50, 1) + playsound(src, 'sound/items/cardshuffle.ogg', 50, 1) user.visible_message("\The [user] shuffles [src].") cooldown = world.time else diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 2d02146315..1cd3ddf51d 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -155,7 +155,7 @@ SSnanoui.update_uis(src) /obj/machinery/computer/HolodeckControl/emag_act(var/remaining_charges, var/mob/user as mob) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) last_to_emag = user //emag again to change the owner if (!emagged) emagged = 1 diff --git a/code/modules/holodeck/HolodeckObjects.dm b/code/modules/holodeck/HolodeckObjects.dm index ed66db42f3..f4abcc9e0f 100644 --- a/code/modules/holodeck/HolodeckObjects.dm +++ b/code/modules/holodeck/HolodeckObjects.dm @@ -137,7 +137,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u user.do_attack_animation(src) var/damage = rand(0, 9) if(!damage) - playsound(target.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(target, 'sound/weapons/punchmiss.ogg', 25, 1, -1) target.visible_message("[user] has attempted to punch [target]!") return TRUE var/obj/item/organ/external/affecting = target.get_organ(ran_zone(user.zone_sel.selecting)) @@ -147,7 +147,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u if(HULK in user.mutations) damage += 5 - playsound(target.loc, "punch", 25, 1, -1) + playsound(target, "punch", 25, 1, -1) target.visible_message("[user] has punched [target]!") @@ -204,7 +204,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u update_nearby_icons() step(src, get_dir(user, src)) else - playsound(loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) ..() return @@ -222,7 +222,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u if(src.density && istype(I, /obj/item/weapon) && !istype(I, /obj/item/weapon/card)) var/aforce = I.force - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) visible_message("[src] was hit by [I].") if(I.damtype == BRUTE || I.damtype == BURN) take_damage(aforce) @@ -294,7 +294,7 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, user.loc) spark_system.start() - playsound(user.loc, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) return TRUE return FALSE @@ -304,13 +304,13 @@ datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/u force = 30 item_state = "[icon_state]_blade" w_class = ITEMSIZE_LARGE - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) to_chat(user, "[src] is now active.") else force = 3 item_state = "[icon_state]" w_class = ITEMSIZE_SMALL - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) to_chat(user, "[src] can now be concealed.") update_icon() diff --git a/code/modules/hydroponics/beekeeping/beehive.dm b/code/modules/hydroponics/beekeeping/beehive.dm index a170bc9c0d..4172d3dead 100644 --- a/code/modules/hydroponics/beekeeping/beehive.dm +++ b/code/modules/hydroponics/beekeeping/beehive.dm @@ -43,7 +43,7 @@ return else if(I.is_wrench()) anchored = !anchored - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) user.visible_message("[user] [anchored ? "wrenches" : "unwrenches"] \the [src].", "You [anchored ? "wrench" : "unwrench"] \the [src].") return else if(istype(I, /obj/item/bee_smoker)) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 90afa7f416..ad3b16e440 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -164,7 +164,7 @@ M.stop_pulling() to_chat(M, "You slipped on the [name]!") - playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3) + playsound(src, 'sound/misc/slip.ogg', 50, 1, -3) M.Stun(8) M.Weaken(5) seed.thrown_at(src,M) @@ -200,7 +200,7 @@ else if(seed.chems) if(W.sharp && W.edge && !isnull(seed.chems["woodpulp"])) user.show_message("You make planks out of \the [src]!", 1) - playsound(loc, 'sound/effects/woodcutting.ogg', 50, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 50, 1) var/flesh_colour = seed.get_trait(TRAIT_FLESH_COLOUR) if(!flesh_colour) flesh_colour = seed.get_trait(TRAIT_PRODUCT_COLOUR) for(var/i=0,i<2,i++) diff --git a/code/modules/hydroponics/seed_storage.dm b/code/modules/hydroponics/seed_storage.dm index 053ce5a59c..b8ea1fa748 100644 --- a/code/modules/hydroponics/seed_storage.dm +++ b/code/modules/hydroponics/seed_storage.dm @@ -502,7 +502,7 @@ to_chat(user, "There are no seeds in \the [O.name].") return else if(O.is_wrench()) - playsound(loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) anchored = !anchored to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") else if(O.is_screwdriver()) diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 50da409bc2..474800fcf4 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -566,7 +566,7 @@ pestlevel -= spray.pest_kill_str weedlevel -= spray.weed_kill_str to_chat(user, "You spray [src] with [O].") - playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6) + playsound(src, 'sound/effects/spray3.ogg', 50, 1, -6) qdel(O) check_health() @@ -576,7 +576,7 @@ if(locate(/obj/machinery/atmospherics/portables_connector/) in loc) return ..() - playsound(loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) anchored = !anchored to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") diff --git a/code/modules/integrated_electronics/core/assemblies.dm b/code/modules/integrated_electronics/core/assemblies.dm index e8a7a5dc89..aea7ffc4ea 100644 --- a/code/modules/integrated_electronics/core/assemblies.dm +++ b/code/modules/integrated_electronics/core/assemblies.dm @@ -248,12 +248,12 @@ return FALSE if(add_circuit(I, user)) to_chat(user, "You slide \the [I] inside \the [src].") - playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) interact(user) return TRUE else if(I.is_crowbar()) - playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) opened = !opened to_chat(user, "You [opened ? "opened" : "closed"] \the [src].") update_icon() @@ -284,7 +284,7 @@ user.drop_item(cell) cell.forceMove(src) battery = cell - playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) to_chat(user, "You slot \the [cell] inside \the [src]'s power supplier.") interact(user) return TRUE diff --git a/code/modules/integrated_electronics/core/assemblies/device.dm b/code/modules/integrated_electronics/core/assemblies/device.dm index de92fe6638..3170393fc3 100644 --- a/code/modules/integrated_electronics/core/assemblies/device.dm +++ b/code/modules/integrated_electronics/core/assemblies/device.dm @@ -20,7 +20,7 @@ ..() /obj/item/device/assembly/electronic_assembly/proc/toggle_open(mob/user) - playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) opened = !opened EA.opened = opened to_chat(user, "You [opened ? "opened" : "closed"] \the [src].") diff --git a/code/modules/integrated_electronics/core/assemblies/generic.dm b/code/modules/integrated_electronics/core/assemblies/generic.dm index 2508f9919d..49a933fe1b 100644 --- a/code/modules/integrated_electronics/core/assemblies/generic.dm +++ b/code/modules/integrated_electronics/core/assemblies/generic.dm @@ -211,7 +211,7 @@ if(!istype(T, /turf/simulated/floor)) to_chat(user, "You cannot place \the [src] on this spot!") return - playsound(src.loc, 'sound/machines/click.ogg', 75, 1) + playsound(src, 'sound/machines/click.ogg', 75, 1) user.visible_message("\The [user] attaches \the [src] to the wall.", "You attach \the [src] to the wall.", "You hear clicking.") diff --git a/code/modules/integrated_electronics/subtypes/manipulation.dm b/code/modules/integrated_electronics/subtypes/manipulation.dm index 7bb9b332d1..d64f9a8645 100644 --- a/code/modules/integrated_electronics/subtypes/manipulation.dm +++ b/code/modules/integrated_electronics/subtypes/manipulation.dm @@ -39,7 +39,7 @@ size += gun.w_class gun.forceMove(src) to_chat(user, "You slide \the [gun] into the firing mechanism.") - playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) else ..() @@ -48,7 +48,7 @@ installed_gun.forceMove(get_turf(src)) to_chat(user, "You slide \the [installed_gun] out of the firing mechanism.") size = initial(size) - playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) installed_gun = null else to_chat(user, "There's no weapon to remove from the mechanism.") diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index 110d237629..5f4685da95 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -198,7 +198,7 @@ if(!selected_sound) return vol = between(0, vol, 100) - playsound(get_turf(src), selected_sound, vol, freq, -1) + playsound(src, selected_sound, vol, freq, -1) /obj/item/integrated_circuit/output/sound/beeper name = "beeper circuit" diff --git a/code/modules/integrated_electronics/subtypes/reagents.dm b/code/modules/integrated_electronics/subtypes/reagents.dm index ca834b3a09..f0e92e9e7a 100644 --- a/code/modules/integrated_electronics/subtypes/reagents.dm +++ b/code/modules/integrated_electronics/subtypes/reagents.dm @@ -37,7 +37,7 @@ ..() /obj/item/integrated_circuit/reagent/smoke/do_work() - playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3) var/datum/effect/effect/system/smoke_spread/chem/smoke_system = new() smoke_system.set_up(reagents, 10, 0, get_turf(src)) spawn(0) diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index 1eb05b7949..9273ece79e 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -39,11 +39,11 @@ else name = ("bookcase ([newname])") else if(O.is_wrench()) - playsound(loc, O.usesound, 100, 1) + playsound(src, O.usesound, 100, 1) to_chat(user, (anchored ? "You unfasten \the [src] from the floor." : "You secure \the [src] to the floor.")) anchored = !anchored else if(O.is_screwdriver()) - playsound(loc, O.usesound, 75, 1) + playsound(src, O.usesound, 75, 1) to_chat(user, "You begin dismantling \the [src].") if(do_after(user,25 * O.toolspeed)) to_chat(user, "You dismantle \the [src].") @@ -195,9 +195,9 @@ Book Cart End if(src.dat) user << browse("Penned by [author].
" + "[dat]", "window=book") user.visible_message("[user] opens a book titled \"[src.title]\" and begins reading intently.") - playsound(loc, 'sound/bureaucracy/bookopen.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/bookopen.ogg', 50, 1) onclose(user, "book") - playsound(loc, 'sound/bureaucracy/bookclose.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/bookclose.ogg', 50, 1) else to_chat(user, "This book is completely blank!") @@ -280,7 +280,7 @@ Book Cart End to_chat(user, "You begin to carve out [title].") if(do_after(user, 30)) to_chat(user, "You carve out the pages from [title]! You didn't want to read it anyway.") - playsound(loc, 'sound/bureaucracy/papercrumple.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/papercrumple.ogg', 50, 1) new /obj/item/weapon/shreddedp(get_turf(src)) carved = 1 return @@ -353,11 +353,11 @@ Book Cart End if(href_list["next_page"]) if(page != pages.len) page++ - playsound(src.loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) if(href_list["prev_page"]) if(page > 1) page-- - playsound(src.loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) src.attack_self(usr) updateUsrDialog() else diff --git a/code/modules/looking_glass/lg_console.dm b/code/modules/looking_glass/lg_console.dm index 2196775c80..23a4e1b12e 100644 --- a/code/modules/looking_glass/lg_console.dm +++ b/code/modules/looking_glass/lg_console.dm @@ -118,7 +118,7 @@ /obj/machinery/computer/looking_glass/emag_act(var/remaining_charges, var/mob/user as mob) if (!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You unlock several programs that were hidden somewhere in memory.") log_game("[key_name(usr)] emagged the [name]") diff --git a/code/modules/materials/material_sheets.dm b/code/modules/materials/material_sheets.dm index 01cfd9bc62..029191ff6e 100644 --- a/code/modules/materials/material_sheets.dm +++ b/code/modules/materials/material_sheets.dm @@ -362,7 +362,7 @@ user.setClickCooldown(time) if(do_after(user, time, src) && use(1)) to_chat(user, "You cut up a log into planks.") - playsound(get_turf(src), 'sound/effects/woodcutting.ogg', 50, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 50, 1) var/obj/item/stack/material/wood/existing_wood = null for(var/obj/item/stack/material/wood/M in user.loc) if(M.material.name == src.material.name) diff --git a/code/modules/mining/abandonedcrates.dm b/code/modules/mining/abandonedcrates.dm index 6f8fc7a8f9..11917f4c40 100644 --- a/code/modules/mining/abandonedcrates.dm +++ b/code/modules/mining/abandonedcrates.dm @@ -164,7 +164,7 @@ to_chat(user, "You leave the crate alone.") else if(check_input(input)) to_chat(user, "The crate unlocks!") - playsound(user, 'sound/machines/lockreset.ogg', 50, 1) + playsound(src, 'sound/machines/lockreset.ogg', 50, 1) set_locked(0) else visible_message("A red light on \the [src]'s control panel flashes briefly.") diff --git a/code/modules/mining/drilling/scanner.dm b/code/modules/mining/drilling/scanner.dm index 1bd784bdb9..31da4a9753 100644 --- a/code/modules/mining/drilling/scanner.dm +++ b/code/modules/mining/drilling/scanner.dm @@ -10,7 +10,7 @@ /obj/item/weapon/mining_scanner/attack_self(mob/user as mob) to_chat(user, "You begin sweeping \the [src] about, scanning for metal deposits.") - playsound(loc, 'sound/items/goggles_charge.ogg', 50, 1, -6) + playsound(src, 'sound/items/goggles_charge.ogg', 50, 1, -6) if(!do_after(user, scan_time)) return diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm index c6f7cc4a9f..d2bb572512 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -93,7 +93,7 @@ var/global/list/total_extraction_beacons = list() 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/fulext_deploy.wav', 50, 1, -3) + playsound(holder_obj, 'sound/items/fulext_deploy.wav', 50, 1, -3) animate(holder_obj, pixel_z = 10, time = 20) sleep(20) animate(holder_obj, pixel_z = 15, time = 10) @@ -104,7 +104,7 @@ var/global/list/total_extraction_beacons = list() sleep(10) animate(holder_obj, pixel_z = 10, time = 10) sleep(10) - playsound(holder_obj.loc, 'sound/items/fultext_launch.wav', 50, 1, -3) + playsound(holder_obj, 'sound/items/fultext_launch.wav', 50, 1, -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/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index 8d6f5ed991..0f0fdb1ae7 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -328,7 +328,7 @@ turf/simulated/mineral/floor/light_corner return to_chat(user, "You start digging.") - playsound(user.loc, 'sound/effects/rustle1.ogg', 50, 1) + playsound(user, 'sound/effects/rustle1.ogg', 50, 1) if(!do_after(user,40)) return diff --git a/code/modules/mining/shelter_atoms_vr.dm b/code/modules/mining/shelter_atoms_vr.dm index d3be02cfd7..8d080c64cd 100644 --- a/code/modules/mining/shelter_atoms_vr.dm +++ b/code/modules/mining/shelter_atoms_vr.dm @@ -87,7 +87,7 @@ GLOBAL_LIST_EMPTY(unique_deployable) smoke.start() sleep(4 SECONDS) - playsound(get_turf(src), 'sound/effects/phasein.ogg', 100, 1) + playsound(src, 'sound/effects/phasein.ogg', 100, 1) log_and_message_admins("[key_name_admin(usr)] activated a bluespace capsule at [get_area(T)]!") if(above_location) diff --git a/code/modules/mob/living/bot/SLed209bot.dm b/code/modules/mob/living/bot/SLed209bot.dm index 7b5bbc76e5..fa17b05696 100644 --- a/code/modules/mob/living/bot/SLed209bot.dm +++ b/code/modules/mob/living/bot/SLed209bot.dm @@ -40,7 +40,7 @@ if(emagged) projectile = /obj/item/projectile/beam/shock - playsound(loc, emagged ? 'sound/weapons/laser3.ogg' : 'sound/weapons/Taser.ogg', 50, 1) + playsound(src, emagged ? 'sound/weapons/laser3.ogg' : 'sound/weapons/Taser.ogg', 50, 1) var/obj/item/projectile/P = new projectile(loc) P.firer = src diff --git a/code/modules/mob/living/bot/cleanbot.dm b/code/modules/mob/living/bot/cleanbot.dm index b1ea693f2f..6a4c45f123 100644 --- a/code/modules/mob/living/bot/cleanbot.dm +++ b/code/modules/mob/living/bot/cleanbot.dm @@ -22,7 +22,7 @@ /mob/living/bot/cleanbot/handleIdle() if(!screwloose && !oddbutton && prob(2)) custom_emote(2, "makes an excited booping sound!") - playsound(src.loc, 'sound/machines/synth_yes.ogg', 50, 0) + playsound(src, 'sound/machines/synth_yes.ogg', 50, 0) if(screwloose && prob(5)) // Make a mess if(istype(loc, /turf/simulated)) @@ -179,7 +179,7 @@ if(!screwloose || !oddbutton) if(user) to_chat(user, "The [src] buzzes and beeps.") - playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0) + playsound(src, 'sound/machines/buzzbeep.ogg', 50, 0) oddbutton = 1 screwloose = 1 return 1 diff --git a/code/modules/mob/living/bot/ed209bot.dm b/code/modules/mob/living/bot/ed209bot.dm index 0d77e837f0..f0e58c455f 100644 --- a/code/modules/mob/living/bot/ed209bot.dm +++ b/code/modules/mob/living/bot/ed209bot.dm @@ -65,7 +65,7 @@ if(emagged) projectile = /obj/item/projectile/beam - playsound(loc, emagged ? 'sound/weapons/Laser.ogg' : 'sound/weapons/Taser.ogg', 50, 1) + playsound(src, emagged ? 'sound/weapons/Laser.ogg' : 'sound/weapons/Taser.ogg', 50, 1) var/obj/item/projectile/P = new projectile(loc) P.firer = src diff --git a/code/modules/mob/living/bot/edCLNbot.dm b/code/modules/mob/living/bot/edCLNbot.dm index 13abfa8da3..a7b9812b9f 100644 --- a/code/modules/mob/living/bot/edCLNbot.dm +++ b/code/modules/mob/living/bot/edCLNbot.dm @@ -27,7 +27,7 @@ /mob/living/bot/cleanbot/edCLN/handleIdle() if(prob(10)) custom_emote(2, "makes a less than thrilled beeping sound.") - playsound(src.loc, 'sound/machines/synth_yes.ogg', 50, 0) + playsound(src, 'sound/machines/synth_yes.ogg', 50, 0) if(red_switch && !blue_switch && !green_switch && prob(10) || src.emagged) if(istype(loc, /turf/simulated)) @@ -124,7 +124,7 @@ if(!emagged) if(user) to_chat(user, "The [src] buzzes and beeps.") - playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0) + playsound(src, 'sound/machines/buzzbeep.ogg', 50, 0) emagged = 1 return 1 diff --git a/code/modules/mob/living/bot/farmbot.dm b/code/modules/mob/living/bot/farmbot.dm index 4cfb7417a8..18bd3805c3 100644 --- a/code/modules/mob/living/bot/farmbot.dm +++ b/code/modules/mob/living/bot/farmbot.dm @@ -185,7 +185,7 @@ busy = 1 if(do_after(src, 30, A)) - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) visible_message("[src] waters \the [A].") tank.reagents.trans_to(T, 100 - T.waterlevel) if(FARMBOT_UPROOT) @@ -223,7 +223,7 @@ while(do_after(src, 10) && tank.reagents.total_volume < tank.reagents.maximum_volume) tank.reagents.add_reagent("water", 100) //VOREStation Edit if(prob(5)) - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) busy = 0 action = "" diff --git a/code/modules/mob/living/bot/floorbot.dm b/code/modules/mob/living/bot/floorbot.dm index aa399a22f3..c34274a6ab 100644 --- a/code/modules/mob/living/bot/floorbot.dm +++ b/code/modules/mob/living/bot/floorbot.dm @@ -58,7 +58,7 @@ emagged = 1 if(user) to_chat(user, "The [src] buzzes and beeps.") - playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0) + playsound(src, 'sound/machines/buzzbeep.ogg', 50, 0) return 1 /mob/living/bot/floorbot/Topic(href, href_list) @@ -102,7 +102,7 @@ if(prob(1)) custom_emote(2, "makes an excited beeping sound!") - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) + playsound(src, 'sound/machines/twobeep.ogg', 50, 0) /mob/living/bot/floorbot/handleAdjacentTarget() if(get_turf(target) == src.loc) @@ -278,7 +278,7 @@ /mob/living/bot/floorbot/explode() turn_off() visible_message("\The [src] blows apart!") - playsound(src.loc, "sparks", 50, 1) + playsound(src, "sparks", 50, 1) var/turf/Tsec = get_turf(src) var/obj/item/weapon/storage/toolbox/mechanical/N = new /obj/item/weapon/storage/toolbox/mechanical(Tsec) diff --git a/code/modules/mob/living/bot/medbot.dm b/code/modules/mob/living/bot/medbot.dm index edb7486fd1..a67440e013 100644 --- a/code/modules/mob/living/bot/medbot.dm +++ b/code/modules/mob/living/bot/medbot.dm @@ -44,7 +44,7 @@ ) var/message = pick(message_options) say(message) - playsound(loc, message_options[message], 50, 0) + playsound(src, message_options[message], 50, 0) /mob/living/bot/medbot/handleAdjacentTarget() UnarmedAttack(target) @@ -88,7 +88,7 @@ ) var/message = pick(message_options) say(message) - playsound(loc, message_options[message], 50, 0) + playsound(src, message_options[message], 50, 0) custom_emote(1, "points at [H.name].") last_newpatient_speak = world.time break @@ -133,7 +133,7 @@ ) var/message = pick(death_messages) say(message) - playsound(loc, death_messages[message], 50, 0) + playsound(src, death_messages[message], 50, 0) // This is down here for the same reason as above. else @@ -148,7 +148,7 @@ ) var/message = pick(possible_messages) say(message) - playsound(loc, possible_messages[message], 50, 0) + playsound(src, possible_messages[message], 50, 0) busy = 0 update_icons() @@ -293,7 +293,7 @@ reagent_glass = null if(emagged && prob(25)) - playsound(loc, 'sound/voice/medbot/minsult.ogg', 50, 0) + playsound(src, 'sound/voice/medbot/minsult.ogg', 50, 0) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(3, 1, src) diff --git a/code/modules/mob/living/bot/mulebot.dm b/code/modules/mob/living/bot/mulebot.dm index b0eee0e650..9bef4c0cbc 100644 --- a/code/modules/mob/living/bot/mulebot.dm +++ b/code/modules/mob/living/bot/mulebot.dm @@ -183,7 +183,7 @@ locked = !locked to_chat(user, "You [locked ? "lock" : "unlock"] the mulebot's controls!") flick("mulebot-emagged", src) - playsound(loc, 'sound/effects/sparks1.ogg', 100, 0) + playsound(src, 'sound/effects/sparks1.ogg', 100, 0) return 1 /mob/living/bot/mulebot/update_icons() @@ -202,13 +202,13 @@ /mob/living/bot/mulebot/handleFrustrated() custom_emote(2, "makes a sighing buzz.") - playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) ..() /mob/living/bot/mulebot/handleAdjacentTarget() if(target == src.loc) custom_emote(2, "makes a chiming sound.") - playsound(loc, 'sound/machines/chime.ogg', 50, 0) + playsound(src, 'sound/machines/chime.ogg', 50, 0) UnarmedAttack(target) resetTarget() if(auto_return && home && (loc != home)) @@ -244,7 +244,7 @@ /mob/living/bot/mulebot/proc/runOver(var/mob/living/carbon/human/H) if(istype(H)) // No safety checks - WILL run over lying humans. Stop ERPing in the maint! visible_message("[src] drives over [H]!") - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) var/damage = rand(5, 7) H.apply_damage(2 * damage, BRUTE, BP_HEAD) @@ -298,7 +298,7 @@ if(crates_only && !istype(C,/obj/structure/closet/crate)) custom_emote(2, "makes a sighing buzz.") - playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) return var/obj/structure/closet/crate/crate = C diff --git a/code/modules/mob/living/bot/secbot.dm b/code/modules/mob/living/bot/secbot.dm index 0c979ba008..1fce90b611 100644 --- a/code/modules/mob/living/bot/secbot.dm +++ b/code/modules/mob/living/bot/secbot.dm @@ -172,7 +172,7 @@ return if(!target) - playsound(src.loc, pick(threat_found_sounds), 50) + playsound(src, pick(threat_found_sounds), 50) global_announcer.autosay("[src] was attacked by a hostile [target_name(attacker)] in [get_area(src)].", "[src]", "Security") target = attacker attacked = TRUE @@ -183,7 +183,7 @@ if(declare_arrests) global_announcer.autosay("[src] is [arrest_type ? "detaining" : "arresting"] a level [threat] suspect [suspect_name] in [get_area(src)].", "[src]", "Security") say("Down on the floor, [suspect_name]! You have [SECBOT_WAIT_TIME*2] seconds to comply.") - playsound(src.loc, pick(preparing_arrest_sounds), 50) + playsound(src, pick(preparing_arrest_sounds), 50) // Register to be told when the target moves GLOB.moved_event.register(target, src, /mob/living/bot/secbot/proc/target_moved) @@ -221,7 +221,7 @@ awaiting_surrender = 0 say("Level [threat] infraction alert!") custom_emote(1, "points at [M.name]!") - playsound(src.loc, pick(threat_found_sounds), 50) + playsound(src, pick(threat_found_sounds), 50) return /mob/living/bot/secbot/handleAdjacentTarget() @@ -270,10 +270,10 @@ if(can_next_insult > world.time) return if(threat >= 10) - playsound(src.loc, 'sound/voice/binsult.ogg', 75) + playsound(src, 'sound/voice/binsult.ogg', 75) can_next_insult = world.time + 20 SECONDS else - playsound(src.loc, pick(fighting_sounds), 75) + playsound(src, pick(fighting_sounds), 75) can_next_insult = world.time + 5 SECONDS @@ -292,7 +292,7 @@ cuff = FALSE if(!cuff) H.stun_effect_act(0, stun_strength, null) - playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/Egloves.ogg', 50, 1, -1) do_attack_animation(H) busy = TRUE update_icons() @@ -302,7 +302,7 @@ visible_message("\The [H] was prodded by \the [src] with a stun baton!") insult(H) else - playsound(loc, 'sound/weapons/handcuffs.ogg', 30, 1, -2) + playsound(src, 'sound/weapons/handcuffs.ogg', 30, 1, -2) visible_message("\The [src] is trying to put handcuffs on \the [H]!") busy = TRUE if(do_mob(src, H, 60)) @@ -317,7 +317,7 @@ var/mob/living/L = M L.adjustBruteLoss(xeno_harm_strength) do_attack_animation(M) - playsound(loc, "swing_hit", 50, 1, -1) + playsound(src, "swing_hit", 50, 1, -1) busy = TRUE update_icons() spawn(2) diff --git a/code/modules/mob/living/carbon/alien/alien_attacks.dm b/code/modules/mob/living/carbon/alien/alien_attacks.dm index c120b9deef..e2c965e2c9 100644 --- a/code/modules/mob/living/carbon/alien/alien_attacks.dm +++ b/code/modules/mob/living/carbon/alien/alien_attacks.dm @@ -25,7 +25,7 @@ LAssailant = M - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) O.show_message(text("[] has grabbed [] passively!", M, src), 1) @@ -40,7 +40,7 @@ step_away(src,M,15) sleep(3) step_away(src,M,15) - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) O.show_message(text("[] has punched []!", M, src), 1) @@ -52,7 +52,7 @@ adjustBruteLoss(damage) updatehealth() else - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) O.show_message(text("[] has attempted to punch []!", M, src), 1) diff --git a/code/modules/mob/living/carbon/alien/emote.dm b/code/modules/mob/living/carbon/alien/emote.dm index 6c9cca88fb..5782b5d127 100644 --- a/code/modules/mob/living/carbon/alien/emote.dm +++ b/code/modules/mob/living/carbon/alien/emote.dm @@ -98,7 +98,7 @@ m_type = 2 if("chirp") message = "[src] chirps!" - playsound(loc, 'sound/misc/nymphchirp.ogg', 50, 0) + playsound(src, 'sound/misc/nymphchirp.ogg', 50, 0) m_type = 2 if("help") to_chat(src, "burp, chirp, choke, collapse, dance, drool, gasp, shiver, gnarl, jump, moan, nod, roll, scratch,\nscretch, shake, sign-#, sulk, sway, tail, twitch, whimper") diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 554d873dd5..9627dd7b62 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -67,7 +67,7 @@ else src.take_organ_damage(d) user.visible_message("[user] attacks [src]'s stomach wall with the [I.name]!") - playsound(user.loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(user, 'sound/effects/attackblob.ogg', 50, 1) if(prob(src.getBruteLoss() - 50)) for(var/atom/movable/A in stomach_contents) @@ -112,7 +112,7 @@ src.apply_damage(0.2 * shock_damage, BURN, null, used_weapon="Electrocution") //shock a random part! src.apply_damage(0.2 * shock_damage, BURN, null, used_weapon="Electrocution") //shock a random part! - playsound(loc, "sparks", 50, 1, -1) + playsound(src, "sparks", 50, 1, -1) if (shock_damage > 15) src.visible_message( "[src] was electrocuted[source ? " by the [source]" : ""]!", \ @@ -200,7 +200,7 @@ if((SKELETON in H.mutations) && (!H.w_uniform) && (!H.wear_suit)) H.play_xylophone() else if (on_fire) - playsound(src.loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) if (M.on_fire) M.visible_message("[M] tries to pat out [src]'s flames, but to no avail!", "You try to pat out [src]'s flames, but to no avail! Put yourself out first!") @@ -268,7 +268,7 @@ AdjustStunned(-3) AdjustWeakened(-3) - playsound(src.loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) /mob/living/carbon/proc/eyecheck() return 0 @@ -368,7 +368,7 @@ return 0 stop_pulling() to_chat(src, "You slipped on [slipped_on]!") - playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3) + playsound(src, 'sound/misc/slip.ogg', 50, 1, -3) Weaken(FLOOR(stun_duration/2, 1)) return 1 diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index cd59a549ec..df195a495e 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -92,7 +92,7 @@ user.visible_message("\The [user] cut [src]'s neck with \the [W]!") if(W.hitsound) - playsound(loc, W.hitsound, 50, 1, -1) + playsound(src, W.hitsound, 50, 1, -1) G.last_action = world.time flick(G.hud.icon_state, G.hud) @@ -112,7 +112,7 @@ apply_damage(damage, W.damtype, "torso", 0, sharp=W.sharp, edge=W.edge) if(W.hitsound) - playsound(loc, W.hitsound, 50, 1, -1) + playsound(src, W.hitsound, 50, 1, -1) add_attack_logs(user,src,"Knifed (shanked)") diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 72c36df999..43096f2753 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -88,7 +88,7 @@ to_chat(O, "[src] has died in [get_area(src)]. [ghost_follow_link(src, O)] ") if(!gibbed && species.death_sound) - playsound(loc, species.death_sound, 80, 1, 1) + playsound(src, species.death_sound, 80, 1, 1) if(ticker && ticker.mode) sql_report_death(src) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index aaf64e467e..5660b71423 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -77,7 +77,7 @@ message = "[display_msg] at [param]." else message = "[display_msg]." - playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add m_type = 1 //Promethean-only emotes @@ -87,7 +87,7 @@ to_chat(src, "You are not a slime thing!") return */ //VOREStation Removal End - playsound(loc, 'sound/effects/slime_squish.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add //Credit to DrMinky (freesound.org) for the sound. + playsound(src, 'sound/effects/slime_squish.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add //Credit to DrMinky (freesound.org) for the sound. message = "squishes." m_type = 1 @@ -97,7 +97,7 @@ to_chat(src, "You are not a Skrell!") return - playsound(loc, 'sound/effects/warble.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add // Copyright CC BY 3.0 alienistcog (freesound.org) for the sound. + playsound(src, 'sound/effects/warble.ogg', 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add // Copyright CC BY 3.0 alienistcog (freesound.org) for the sound. message = "warbles." m_type = 2 @@ -189,7 +189,7 @@ if("clap") if(!restrained()) message = "claps." - playsound(loc, 'sound/misc/clapping.ogg') + playsound(src, 'sound/misc/clapping.ogg') m_type = 2 if(miming) m_type = 1 @@ -270,7 +270,7 @@ use_sound = pick('sound/effects/mob_effects/f_machine_cougha.ogg','sound/effects/mob_effects/f_machine_coughb.ogg') else use_sound = pick('sound/effects/mob_effects/m_machine_cougha.ogg','sound/effects/mob_effects/m_machine_coughb.ogg', 'sound/effects/mob_effects/m_machine_coughc.ogg') - playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add else message = "makes a strong noise." m_type = 2 @@ -543,7 +543,7 @@ use_sound = 'sound/effects/mob_effects/machine_sneeze.ogg' else use_sound = 'sound/effects/mob_effects/f_machine_sneeze.ogg' - playsound(loc, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, use_sound, 50, 0, preference = /datum/client_preference/emote_noises) //VOREStation Add else message = "makes a strange noise." m_type = 2 @@ -656,14 +656,14 @@ break if(M) message = "slaps [M] across the face. Ouch!" - playsound(loc, 'sound/effects/snap.ogg', 50, 1, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, 'sound/effects/snap.ogg', 50, 1, preference = /datum/client_preference/emote_noises) //VOREStation Add if(ishuman(M)) //Snowflakey! var/mob/living/carbon/human/H = M if(istype(H.wear_mask,/obj/item/clothing/mask/smokable)) H.drop_from_inventory(H.wear_mask) else message = "slaps [T.himself]!" - playsound(loc, 'sound/effects/snap.ogg', 50, 1, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, 'sound/effects/snap.ogg', 50, 1, preference = /datum/client_preference/emote_noises) //VOREStation Add if("scream", "screams") if(miming) @@ -675,9 +675,9 @@ m_type = 2 /* Removed, pending the location of some actually good, properly licensed sounds. if(get_gender() == FEMALE) - playsound(loc, "[species.female_scream_sound]", 80, 1) + playsound(src, "[species.female_scream_sound]", 80, 1) else - playsound(loc, "[species.male_scream_sound]", 80, 1) //default to male screams if no gender is present. + playsound(src, "[species.male_scream_sound]", 80, 1) //default to male screams if no gender is present. */ else message = "makes a very loud noise." @@ -700,7 +700,7 @@ return message = "snaps [T.his] fingers." - playsound(loc, 'sound/effects/fingersnap.ogg', 50, 1, -3, preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, 'sound/effects/fingersnap.ogg', 50, 1, -3, preference = /datum/client_preference/emote_noises) //VOREStation Add if("swish") animate_tail_once() @@ -724,14 +724,14 @@ if("whistle" || "whistles") if(!muzzled) message = "whistles a tune." - playsound(loc, 'sound/misc/longwhistle.ogg', preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, 'sound/misc/longwhistle.ogg', preference = /datum/client_preference/emote_noises) //VOREStation Add else message = "makes a light spitting noise, a poor attempt at a whistle." if("qwhistle") if(!muzzled) message = "whistles quietly." - playsound(loc, 'sound/misc/shortwhistle.ogg', preference = /datum/client_preference/emote_noises) //VOREStation Add + playsound(src, 'sound/misc/shortwhistle.ogg', preference = /datum/client_preference/emote_noises) //VOREStation Add else message = "makes a light spitting noise, a poor attempt at a whistle." diff --git a/code/modules/mob/living/carbon/human/emote_vr.dm b/code/modules/mob/living/carbon/human/emote_vr.dm index 5b2111e859..37f891d036 100644 --- a/code/modules/mob/living/carbon/human/emote_vr.dm +++ b/code/modules/mob/living/carbon/human/emote_vr.dm @@ -29,107 +29,107 @@ if("awoo") m_type = 2 message = "lets out an awoo." - playsound(loc, 'sound/voice/awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("awoo2") m_type = 2 message = "lets out an awoo." - playsound(loc, 'sound/voice/long_awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/long_awoo.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("growl") m_type = 2 message = "lets out a growl." - playsound(loc, 'sound/voice/growl.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/growl.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("woof") m_type = 2 message = "lets out an woof." - playsound(loc, 'sound/voice/woof.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/woof.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("woof2") m_type = 2 message = "lets out an woof." - playsound(loc, 'sound/voice/woof2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/woof2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("nya") message = "lets out a nya." m_type = 2 - playsound(loc, 'sound/voice/nya.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/nya.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("mrowl") message = "mrowls." m_type = 2 - playsound(loc, 'sound/voice/mrow.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/mrow.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("peep") message = "peeps like a bird." m_type = 2 - playsound(loc, 'sound/voice/peep.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/peep.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("chirp") message = "chirps!" - playsound(loc, 'sound/misc/nymphchirp.ogg', 50, 0, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/misc/nymphchirp.ogg', 50, 0, preference = /datum/client_preference/emote_noises) m_type = 2 if("hoot") message = "hoots!" - playsound(loc, 'sound/voice/hoot.ogg', 50, 1, ,-1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/hoot.ogg', 50, 1, ,-1, preference = /datum/client_preference/emote_noises) m_type = 2 if("weh") message = "lets out a weh." m_type = 2 - playsound(loc, 'sound/voice/weh.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/weh.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("merp") message = "lets out a merp." m_type = 2 - playsound(loc, 'sound/voice/merp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/merp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("myarp") message = "lets out a myarp." m_type = 2 - playsound(loc, 'sound/voice/myarp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/myarp.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("bark") message = "lets out a bark." m_type = 2 - playsound(loc, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("bork") m_type = 2 message = "lets out a bork." - playsound(loc, 'sound/voice/bork.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/bork.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if ("mrow") m_type = 2 message = "lets out a mrow." - playsound(loc, 'sound/voice/mrow.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/mrow.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if ("hypno") m_type = 2 message = "lets out a mystifying tone." - playsound(loc, 'sound/voice/hypno.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/hypno.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("hiss") message = "lets out a hiss." m_type = 2 - playsound(loc, 'sound/voice/hiss.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/hiss.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("rattle") message = "rattles!" m_type = 2 - playsound(loc, 'sound/voice/rattle.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/rattle.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("squeak") message = "lets out a squeak." m_type = 2 - playsound(loc, 'sound/effects/mouse_squeak.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/effects/mouse_squeak.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("geck") message = "geckers!" m_type = 2 - playsound(loc, 'sound/voice/geck.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/geck.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("baa") message = "lets out a baa." m_type = 2 - playsound(loc, 'sound/voice/baa.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/baa.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("baa2") message = "bleats." m_type = 2 - playsound(loc, 'sound/voice/baa2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/baa2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("deathgasp2") message = "[species.get_death_message()]" m_type = 1 - playsound(loc, 'sound/voice/deathgasp2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/deathgasp2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("mar") message = "lets out a mar." m_type = 2 - playsound(loc, 'sound/voice/mar.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/mar.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("wurble") message = "lets out a wurble." m_type = 2 - playsound(loc, 'sound/voice/wurble.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/wurble.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) if("nsay") nsay() return TRUE diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index c08fb9b20e..356dc87c94 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -757,7 +757,7 @@ var/datum/gender/T = gender_datums[get_visible_gender()] visible_message("\The [src] begins playing [T.his] ribcage like a xylophone. It's quite spooky.","You begin to play a spooky refrain on your ribcage.","You hear a spooky xylophone melody.") var/song = pick('sound/effects/xylophone1.ogg','sound/effects/xylophone2.ogg','sound/effects/xylophone3.ogg') - playsound(loc, song, 50, 1, -1) + playsound(src, song, 50, 1, -1) xylophone = 1 spawn(1200) xylophone=0 diff --git a/code/modules/mob/living/carbon/human/human_attackhand.dm b/code/modules/mob/living/carbon/human/human_attackhand.dm index 4fa4b8bc5f..1e2e0491a9 100644 --- a/code/modules/mob/living/carbon/human/human_attackhand.dm +++ b/code/modules/mob/living/carbon/human/human_attackhand.dm @@ -47,7 +47,7 @@ var/hit_zone = get_zone_with_miss_chance(H.zone_sel.selecting, src, H.get_accuracy_penalty()) if(!hit_zone) H.do_attack_animation(src) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message("[H] reaches for [src], but misses!") return FALSE @@ -125,7 +125,7 @@ LAssailant = M H.do_attack_animation(src) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) //VORESTATION EDIT visible_message("[M] has grabbed [src] [(M.zone_sel.selecting == BP_L_HAND || M.zone_sel.selecting == BP_R_HAND)? "by [(gender==FEMALE)? "her" : ((gender==MALE)? "his": "their")] hands": "passively"]!") //VORESTATION END END @@ -236,7 +236,7 @@ else H.visible_message("[attack_message]") - playsound(loc, ((miss_type) ? (miss_type == 1 ? attack.miss_sound : 'sound/weapons/thudswoosh.ogg') : attack.attack_sound), 25, 1, -1) + playsound(src, ((miss_type) ? (miss_type == 1 ? attack.miss_sound : 'sound/weapons/thudswoosh.ogg') : attack.attack_sound), 25, 1, -1) add_attack_logs(H,src,"Melee attacked with fists (miss/block)") @@ -302,7 +302,7 @@ if((shoes || !(species.flags & NO_SLIP)) && randn <= 25) var/armor_check = run_armor_check(affecting, "melee") apply_effect(3, WEAKEN, armor_check) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) if(armor_check < 60) visible_message("[M] has pushed [src]!") else @@ -312,7 +312,7 @@ if(randn <= 60) //See about breaking grips or pulls if(break_all_grabs(M)) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) return //Actually disarm them @@ -320,10 +320,10 @@ if(I) drop_from_inventory(I) visible_message("[M] has disarmed [src]!") - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) return - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message(" [M] attempted to disarm [src]!") return diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 3675866e24..8e351372c9 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -227,7 +227,7 @@ emp_act if(!hit_zone) user.do_attack_animation(src) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message("\The [user] misses [src] with \the [I]!") return null diff --git a/code/modules/mob/living/carbon/human/human_powers.dm b/code/modules/mob/living/carbon/human/human_powers.dm index acc4607191..9c1a2ef398 100644 --- a/code/modules/mob/living/carbon/human/human_powers.dm +++ b/code/modules/mob/living/carbon/human/human_powers.dm @@ -72,7 +72,7 @@ else failed = 1 - playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/pierce.ogg', 25, 1, -1) if(failed) src.Weaken(rand(2,4)) diff --git a/code/modules/mob/living/carbon/human/species/species_attack.dm b/code/modules/mob/living/carbon/human/species/species_attack.dm index 9e6a07d168..3a5c358720 100644 --- a/code/modules/mob/living/carbon/human/species/species_attack.dm +++ b/code/modules/mob/living/carbon/human/species/species_attack.dm @@ -92,4 +92,4 @@ /datum/unarmed_attack/stomp/weak/show_attack(var/mob/living/carbon/human/user, var/mob/living/carbon/human/target, var/zone, var/attack_damage) var/obj/item/organ/external/affecting = target.get_organ(zone) user.visible_message("[user] jumped up and down on \the [target]'s [affecting.name]!") - playsound(user.loc, attack_sound, 25, 1, -1) \ No newline at end of file + playsound(user, attack_sound, 25, 1, -1) \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm index f9c68c331f..4e3ce65811 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_powers.dm @@ -144,7 +144,7 @@ P.firer = src P.old_style_target(A) P.fire() - playsound(loc, 'sound/weapons/pierce.ogg', 25, 0) + playsound(src, 'sound/weapons/pierce.ogg', 25, 0) else ..() @@ -295,7 +295,7 @@ src.visible_message("\The [src] leaps at [T]!") src.throw_at(get_step(get_turf(T),get_turf(src)), 4, 1, src) - playsound(src.loc, 'sound/voice/hiss5.ogg', 50, 1) + playsound(src, 'sound/voice/hiss5.ogg', 50, 1) sleep(5) diff --git a/code/modules/mob/living/carbon/human/unarmed_attack.dm b/code/modules/mob/living/carbon/human/unarmed_attack.dm index 57001713e9..2f15a4ba49 100644 --- a/code/modules/mob/living/carbon/human/unarmed_attack.dm +++ b/code/modules/mob/living/carbon/human/unarmed_attack.dm @@ -91,7 +91,7 @@ var/global/list/sparring_attack_cache = list() /datum/unarmed_attack/proc/show_attack(var/mob/living/carbon/human/user, var/mob/living/carbon/human/target, var/zone, var/attack_damage) var/obj/item/organ/external/affecting = target.get_organ(zone) user.visible_message("[user] [pick(attack_verb)] [target] in the [affecting.name]!") - playsound(user.loc, attack_sound, 25, 1, -1) + playsound(user, attack_sound, 25, 1, -1) /datum/unarmed_attack/proc/handle_eye_attack(var/mob/living/carbon/human/user, var/mob/living/carbon/human/target) var/obj/item/organ/internal/eyes/eyes = target.internal_organs_by_name[O_EYES] diff --git a/code/modules/mob/living/carbon/lick_wounds.dm b/code/modules/mob/living/carbon/lick_wounds.dm index 4fde4ab24d..6f360a5e53 100644 --- a/code/modules/mob/living/carbon/lick_wounds.dm +++ b/code/modules/mob/living/carbon/lick_wounds.dm @@ -79,4 +79,4 @@ W.bandage() W.disinfect() H.UpdateDamageIcon() - playsound(src.loc, 'sound/effects/ointment.ogg', 25) \ No newline at end of file + playsound(src, 'sound/effects/ointment.ogg', 25) \ No newline at end of file diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 61d937644f..cf4edc0a7d 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -206,7 +206,7 @@ default behaviour is: /* VOREStation Removal - See above if(confused && prob(50) && m_intent=="run") Weaken(2) - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) visible_message("[src] [pick("ran", "slammed")] into \the [AM]!") src.apply_damage(5, BRUTE) to_chat(src, "You just [pick("ran", "slammed")] into \the [AM]!") @@ -1010,7 +1010,7 @@ default behaviour is: Stun(5) src.visible_message("[src] throws up!","You throw up!") - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) var/turf/simulated/T = get_turf(src) //TODO: Make add_blood_floor remove blood from human mobs if(istype(T)) diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index b74edbcbba..a8137a8a89 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -209,7 +209,7 @@ damage *= 0.66 // Take 2/3s as much damage. visible_message("\The [B] [attack_verb] \the [src]!", "[attack_message]!") - playsound(loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) //Armor var/soaked = get_armor_soak(def_zone, armor_check, armor_pen) diff --git a/code/modules/mob/living/silicon/emote.dm b/code/modules/mob/living/silicon/emote.dm index ff3e340419..00a5e42993 100644 --- a/code/modules/mob/living/silicon/emote.dm +++ b/code/modules/mob/living/silicon/emote.dm @@ -23,7 +23,7 @@ message = "[src] beeps at [param]." else message = "[src] beeps." - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) + playsound(src, 'sound/machines/twobeep.ogg', 50, 0) m_type = 1 if("ping") @@ -40,7 +40,7 @@ message = "[src] pings at [param]." else message = "[src] pings." - playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) + playsound(src, 'sound/machines/ping.ogg', 50, 0) m_type = 1 if("buzz") @@ -57,7 +57,7 @@ message = "[src] buzzes at [param]." else message = "[src] buzzes." - playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) m_type = 1 if("yes", "ye") @@ -74,7 +74,7 @@ message = "[src] emits an affirmative blip at [param]." else message = "[src] emits an affirmative blip." - playsound(src.loc, 'sound/machines/synth_yes.ogg', 50, 0) + playsound(src, 'sound/machines/synth_yes.ogg', 50, 0) m_type = 1 if("dwoop") @@ -90,7 +90,7 @@ message = "[src] chirps happily at [param]" else message = "[src] chirps happily." - playsound(src.loc, 'sound/machines/dwoop.ogg', 50, 0) + playsound(src, 'sound/machines/dwoop.ogg', 50, 0) m_type = 1 if("no") @@ -107,7 +107,7 @@ message = "[src] emits a negative blip at [param]." else message = "[src] emits a negative blip." - playsound(src.loc, 'sound/machines/synth_no.ogg', 50, 0) + playsound(src, 'sound/machines/synth_no.ogg', 50, 0) m_type = 1 ..(act, m_type, message) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/pai/life.dm b/code/modules/mob/living/silicon/pai/life.dm index e159308d1b..e4f461179d 100644 --- a/code/modules/mob/living/silicon/pai/life.dm +++ b/code/modules/mob/living/silicon/pai/life.dm @@ -8,7 +8,7 @@ var/turf/T = get_turf_or_move(src.loc) for (var/mob/M in viewers(T)) M.show_message("The data cable rapidly retracts back into its spool.", 3, "You hear a click and the sound of wire spooling rapidly.", 2) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) qdel(src.cable) src.cable = null diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm index 07b04dd9aa..d1215edc28 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm @@ -264,11 +264,11 @@ L.apply_effect(STUTTER, 1) L.visible_message("[user] has shocked [L] with its tongue!", \ "[user] has shocked you with its tongue! You can feel the betrayal.") - playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/Egloves.ogg', 50, 1, -1) R.cell.charge -= 666 else user.visible_message("\the [user] affectionately licks all over \the [target]'s face!", "You affectionately lick all over \the [target]'s face!") - playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1) + playsound(src, 'sound/effects/attackblob.ogg', 50, 1) water.use_charge(5) var/mob/living/carbon/human/H = target if(H.species.lightweight == 1) @@ -415,7 +415,7 @@ src.visible_message("\The [src] leaps at [T]!") src.throw_at(get_step(get_turf(T),get_turf(src)), 4, 1, src) - playsound(src.loc, 'sound/mecha/mechstep2.ogg', 50, 1) + playsound(src, 'sound/mecha/mechstep2.ogg', 50, 1) pixel_y = default_pixel_y cell.charge -= 750 diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm index cf4bc29979..2416824a0a 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm @@ -84,7 +84,7 @@ if(do_after(user, 30, target) && length(contents) < max_item_count) target.forceMove(src) user.visible_message("[hound.name]'s [src.name] groans lightly as [target.name] slips inside.", "Your [src.name] groans lightly as [target] slips inside.") - playsound(hound, gulpsound, vol = 60, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) + playsound(src, gulpsound, vol = 60, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) if(analyzer && istype(target,/obj/item)) var/obj/item/tech_item = target for(var/T in tech_item.origin_tech) @@ -102,7 +102,7 @@ trashmouse.forceMove(src) trashmouse.reset_view(src) user.visible_message("[hound.name]'s [src.name] groans lightly as [trashmouse] slips inside.", "Your [src.name] groans lightly as [trashmouse] slips inside.") - playsound(hound, gulpsound, vol = 60, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) + playsound(src, gulpsound, vol = 60, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) if(delivery) if(islist(deliverylists[delivery_tag])) deliverylists[delivery_tag] |= trashmouse @@ -124,7 +124,7 @@ START_PROCESSING(SSobj, src) user.visible_message("[hound.name]'s [src.name] groans lightly as [trashman] slips inside.", "Your [src.name] groans lightly as [trashman] slips inside.") message_admins("[key_name(hound)] has eaten [key_name(patient)] as a dogborg. ([hound ? "JMP" : "null"])") - playsound(hound, gulpsound, vol = 100, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) + playsound(src, gulpsound, vol = 100, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) if(delivery) if(islist(deliverylists[delivery_tag])) deliverylists[delivery_tag] |= trashman @@ -155,7 +155,7 @@ START_PROCESSING(SSobj, src) user.visible_message("[hound.name]'s [src.name] lights up as [H.name] slips inside.", "Your [src] lights up as [H] slips inside. Life support functions engaged.") message_admins("[key_name(hound)] has eaten [key_name(patient)] as a dogborg. ([hound ? "JMP" : "null"])") - playsound(hound, gulpsound, vol = 100, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) + playsound(src, gulpsound, vol = 100, vary = 1, falloff = 0.1, preference = /datum/client_preference/eating_noises) /obj/item/device/dogborg/sleeper/proc/go_out(var/target) hound = src.loc @@ -173,7 +173,7 @@ else var/obj/T = C T.loc = hound.loc - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) update_patient() else //You clicked eject with nothing in you, let's just reset stuff to be sure. update_patient() @@ -357,7 +357,7 @@ else var/obj/T = C T.loc = hound.loc - playsound(loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) update_patient() deliverylists[delivery_tag].Cut() sleeperUI(usr) @@ -374,10 +374,10 @@ files.RefreshResearch() if(success) to_chat(usr, "You connect to the research server, push your data upstream to it, then pull the resulting merged data from the master branch.") - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) else to_chat(usr, "Reserch server ping response timed out. Unable to connect. Please contact the system administrator.") - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 1) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 1) sleeperUI(usr) return @@ -495,11 +495,11 @@ 'sound/vore/death8.ogg', 'sound/vore/death9.ogg', 'sound/vore/death10.ogg') - playsound(hound, finisher, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) + playsound(src, finisher, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) to_chat(hound, "Your [src.name] is now clean. Ending self-cleaning cycle.") cleaning = 0 update_patient() - playsound(hound, 'sound/machines/ding.ogg', vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) + playsound(src, 'sound/machines/ding.ogg', vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) return if(prob(20)) @@ -516,7 +516,7 @@ 'sound/vore/digest10.ogg', 'sound/vore/digest11.ogg', 'sound/vore/digest12.ogg') - playsound(hound, churnsound, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) + playsound(src, churnsound, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) //If the timing is right, and there are items to be touched if(air_master.current_cycle%3==1 && length(touchable_items)) @@ -552,7 +552,7 @@ 'sound/vore/death8.ogg', 'sound/vore/death9.ogg', 'sound/vore/death10.ogg') - playsound(hound, deathsound, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) + playsound(src, deathsound, vol = 100, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises) if(is_vore_predator(T)) for(var/belly in T.vore_organs) var/obj/belly/B = belly diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index 5f097ef50a..b578f18c23 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -126,7 +126,7 @@ var/list/mob_hat_cache = list() if(!module) module = new module_type(src) flavor_text = "It's a tiny little repair drone. The casing is stamped with an corporate logo and the subscript: '[using_map.company_name] Recursive Repair Systems: Fixing Tomorrow's Problem, Today!'" - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) + playsound(src, 'sound/machines/twobeep.ogg', 50, 0) //Redefining some robot procs... /mob/living/silicon/robot/drone/SetName(pickedName as text) diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm index 33bc706194..795929992b 100644 --- a/code/modules/mob/living/silicon/robot/emote.dm +++ b/code/modules/mob/living/silicon/robot/emote.dm @@ -123,7 +123,7 @@ if(istype(module,/obj/item/weapon/robot_module/robot/security) || istype(module,/obj/item/weapon/robot_module/robot/knine)) //VOREStation Add - K9 message = "[src] shows its legal authorization barcode." - playsound(src.loc, 'sound/voice/biamthelaw.ogg', 50, 0) + playsound(src, 'sound/voice/biamthelaw.ogg', 50, 0) m_type = 2 else to_chat(src, "You are not THE LAW, pal.") @@ -132,7 +132,7 @@ if(istype(module,/obj/item/weapon/robot_module/robot/security) || istype(module,/obj/item/weapon/robot_module/robot/knine)) //VOREStation Add - K9 message = "[src] 's speakers skreech, \"Halt! Security!\"." - playsound(src.loc, 'sound/voice/halt.ogg', 50, 0) + playsound(src, 'sound/voice/halt.ogg', 50, 0) m_type = 2 else to_chat(src, "You are not security.") @@ -141,7 +141,7 @@ if (istype(module,/obj/item/weapon/robot_module/robot/knine) || istype(module,/obj/item/weapon/robot_module/robot/medihound) || istype(module,/obj/item/weapon/robot_module/robot/scrubpup) || istype(module,/obj/item/weapon/robot_module/robot/ert) || istype(module,/obj/item/weapon/robot_module/robot/science) || istype(module,/obj/item/weapon/robot_module/robot/engiedog) || istype(module,/obj/item/weapon/robot_module/robot/clerical/brodog) || istype(module,/obj/item/weapon/robot_module/robot/kmine) ) message = "[src] lets out a bark." - playsound(loc, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) + playsound(src, 'sound/voice/bark2.ogg', 50, 1, -1, preference = /datum/client_preference/emote_noises) m_type = 2 else src << "You're not a dog!" diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 63267c6e09..17c5954dad 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -701,12 +701,12 @@ attack_generic(H, rand(30,50), "slashed") return else - playsound(src.loc, 'sound/effects/bang.ogg', 10, 1) + playsound(src, 'sound/effects/bang.ogg', 10, 1) visible_message("[H] punches [src], but doesn't leave a dent.") return if(I_DISARM) H.do_attack_animation(src) - playsound(src.loc, 'sound/effects/clang1.ogg', 10, 1) + playsound(src, 'sound/effects/clang1.ogg', 10, 1) visible_message("[H] taps [src].") return //VOREStation Edit: Addition of borg petting end diff --git a/code/modules/mob/living/silicon/robot/robot_items.dm b/code/modules/mob/living/silicon/robot/robot_items.dm index a4a3c8c14b..78d741b012 100644 --- a/code/modules/mob/living/silicon/robot/robot_items.dm +++ b/code/modules/mob/living/silicon/robot/robot_items.dm @@ -27,7 +27,7 @@ if(confirm == "Yes" && !QDELETED(loaded_item)) //This is pretty copypasta-y to_chat(user, "You activate the analyzer's microlaser, analyzing \the [loaded_item] and breaking it down.") flick("portable_analyzer_scan", src) - playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) + playsound(src, 'sound/items/Welder2.ogg', 50, 1) for(var/T in loaded_item.origin_tech) files.UpdateTech(T, loaded_item.origin_tech[T]) to_chat(user, "\The [loaded_item] had level [loaded_item.origin_tech[T]] in [CallTechName(T)].") @@ -63,10 +63,10 @@ files.RefreshResearch() if(success) to_chat(user, "You connect to the research server, push your data upstream to it, then pull the resulting merged data from the master branch.") - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) else to_chat(user, "Reserch server ping response timed out. Unable to connect. Please contact the system administrator.") - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 1) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 1) if(response == "Eject") if(loaded_item) loaded_item.loc = get_turf(src) @@ -276,7 +276,7 @@ var/choice = input("Would you like to change colour or mode?") as null|anything in list("Colour","Mode") if(!choice) return - playsound(src.loc, 'sound/effects/pop.ogg', 50, 0) + playsound(src, 'sound/effects/pop.ogg', 50, 0) switch(choice) @@ -486,7 +486,7 @@ return stored_doors++ qdel(A) - playsound(loc, 'sound/machines/hiss.ogg', 75, 1) + playsound(src, 'sound/machines/hiss.ogg', 75, 1) visible_message("\The [user] deflates \the [A] with \the [src]!") return if(istype(A, /obj/item/inflatable)) diff --git a/code/modules/mob/living/silicon/robot/robot_remote_control.dm b/code/modules/mob/living/silicon/robot/robot_remote_control.dm index 2f4ca0e56b..c605584aa0 100644 --- a/code/modules/mob/living/silicon/robot/robot_remote_control.dm +++ b/code/modules/mob/living/silicon/robot/robot_remote_control.dm @@ -17,9 +17,9 @@ GLOBAL_LIST_EMPTY(available_ai_shells) /mob/living/silicon/robot/proc/post_mmi_setup() if(istype(mmi, /obj/item/device/mmi/inert/ai_remote)) make_shell() - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) + playsound(src, 'sound/machines/twobeep.ogg', 50, 0) else - playsound(loc, 'sound/voice/liveagain.ogg', 75, 1) + playsound(src, 'sound/voice/liveagain.ogg', 75, 1) return /mob/living/silicon/robot/proc/make_shell() diff --git a/code/modules/mob/living/silicon/robot/subtypes/gravekeeper.dm b/code/modules/mob/living/silicon/robot/subtypes/gravekeeper.dm index 255eef5318..23e4aa81ea 100644 --- a/code/modules/mob/living/silicon/robot/subtypes/gravekeeper.dm +++ b/code/modules/mob/living/silicon/robot/subtypes/gravekeeper.dm @@ -24,4 +24,4 @@ laws = new /datum/ai_laws/gravekeeper() - playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) + playsound(src, 'sound/mecha/nominalsyndi.ogg', 75, 0) diff --git a/code/modules/mob/living/silicon/robot/subtypes/lost_drone.dm b/code/modules/mob/living/silicon/robot/subtypes/lost_drone.dm index d374562230..0460226f3f 100644 --- a/code/modules/mob/living/silicon/robot/subtypes/lost_drone.dm +++ b/code/modules/mob/living/silicon/robot/subtypes/lost_drone.dm @@ -21,7 +21,7 @@ if(!cell) cell = new /obj/item/weapon/cell/high(src) // 15k cell, as recharging stations are a lot more rare on the Surface. - playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) + playsound(src, 'sound/mecha/nominalsyndi.ogg', 75, 0) /mob/living/silicon/robot/lost/speech_bubble_appearance() return "synthetic_evil" diff --git a/code/modules/mob/living/silicon/robot/subtypes/lost_drone_vr.dm b/code/modules/mob/living/silicon/robot/subtypes/lost_drone_vr.dm index 1506fca4e3..3d671dd19b 100644 --- a/code/modules/mob/living/silicon/robot/subtypes/lost_drone_vr.dm +++ b/code/modules/mob/living/silicon/robot/subtypes/lost_drone_vr.dm @@ -21,7 +21,7 @@ if(!cell) cell = new /obj/item/weapon/cell/high(src) // 15k cell, as recharging stations are a lot more rare on the Surface. - playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) + playsound(src, 'sound/mecha/nominalsyndi.ogg', 75, 0) /mob/living/silicon/robot/stray/speech_bubble_appearance() return "synthetic_evil" diff --git a/code/modules/mob/living/silicon/robot/subtypes/syndicate.dm b/code/modules/mob/living/silicon/robot/subtypes/syndicate.dm index 76496f4d4c..00e75248c7 100644 --- a/code/modules/mob/living/silicon/robot/subtypes/syndicate.dm +++ b/code/modules/mob/living/silicon/robot/subtypes/syndicate.dm @@ -25,7 +25,7 @@ radio.keyslot = new /obj/item/device/encryptionkey/syndicate(radio) radio.recalculateChannels() - playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) + playsound(src, 'sound/mecha/nominalsyndi.ogg', 75, 0) /mob/living/silicon/robot/syndicate/protector/init() ..() diff --git a/code/modules/mob/living/silicon/robot/syndicate.dm b/code/modules/mob/living/silicon/robot/syndicate.dm index acd441171b..c52755e696 100644 --- a/code/modules/mob/living/silicon/robot/syndicate.dm +++ b/code/modules/mob/living/silicon/robot/syndicate.dm @@ -25,4 +25,4 @@ radio.keyslot = new /obj/item/device/encryptionkey/syndicate(radio) radio.recalculateChannels() - playsound(loc, 'sound/mecha/nominalsyndi.ogg', 75, 0) + playsound(src, 'sound/mecha/nominalsyndi.ogg', 75, 0) diff --git a/code/modules/mob/living/simple_mob/combat.dm b/code/modules/mob/living/simple_mob/combat.dm index 046a4ef988..7a950bf11a 100644 --- a/code/modules/mob/living/simple_mob/combat.dm +++ b/code/modules/mob/living/simple_mob/combat.dm @@ -143,7 +143,7 @@ if(do_after(src, reload_time)) if(reload_sound) - playsound(src.loc, reload_sound, 50, 1) + playsound(src, reload_sound, 50, 1) reload_count = 0 . = TRUE else diff --git a/code/modules/mob/living/simple_mob/defense.dm b/code/modules/mob/living/simple_mob/defense.dm index a8234ac970..d94d83c0a9 100644 --- a/code/modules/mob/living/simple_mob/defense.dm +++ b/code/modules/mob/living/simple_mob/defense.dm @@ -163,7 +163,7 @@ return 0 apply_damage(damage = shock_damage, damagetype = BURN, def_zone = null, blocked = null, blocked = resistance, used_weapon = null, sharp = FALSE, edge = FALSE) - playsound(loc, "sparks", 50, 1, -1) + playsound(src, "sparks", 50, 1, -1) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(5, 1, loc) diff --git a/code/modules/mob/living/simple_mob/simple_mob_vr.dm b/code/modules/mob/living/simple_mob/simple_mob_vr.dm index 86380b5b26..2a6d23194a 100644 --- a/code/modules/mob/living/simple_mob/simple_mob_vr.dm +++ b/code/modules/mob/living/simple_mob/simple_mob_vr.dm @@ -154,7 +154,7 @@ M.visible_message("\the [src] pounces on \the [M]!!") else // pounce misses! M.visible_message("\the [src] attempts to pounce \the [M] but misses!!") - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) if(will_eat(M) && (!M.canmove || vore_standing_too)) //if they're edible then eat them too return EatTarget(M) @@ -411,7 +411,7 @@ src.visible_message("\The [src] leaps at [T]!") src.throw_at(get_step(get_turf(T),get_turf(src)), 4, 1, src) - playsound(src.loc, 'sound/effects/bodyfall1.ogg', 50, 1) + playsound(src, 'sound/effects/bodyfall1.ogg', 50, 1) pixel_y = default_pixel_y sleep(5) diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/lurker.dm b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/lurker.dm index 15b04e119a..cb086c6ec3 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/lurker.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/lurker.dm @@ -104,7 +104,7 @@ var/mob/living/L = A L.Weaken(cloaked_weaken_amount) to_chat(L, span("danger", "\The [src] ambushes you!")) - playsound(L, 'sound/weapons/spiderlunge.ogg', 75, 1) + playsound(src, 'sound/weapons/spiderlunge.ogg', 75, 1) uncloak() ..() // For the poison. diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/tunneler.dm b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/tunneler.dm index 31997d204c..53d4bd0d24 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/tunneler.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/giant_spider/tunneler.dm @@ -115,7 +115,7 @@ continue visible_message(span("danger","\The [src] erupts from underneath, and hits \the [L]!")) - playsound(L, 'sound/weapons/heavysmash.ogg', 75, 1) + playsound(src, 'sound/weapons/heavysmash.ogg', 75, 1) L.Weaken(3) overshoot = FALSE @@ -164,7 +164,7 @@ // Stun anyone in our way. for(var/mob/living/L in T) - playsound(L, 'sound/weapons/heavysmash.ogg', 75, 1) + playsound(src, 'sound/weapons/heavysmash.ogg', 75, 1) L.Weaken(2) // Get into the tile. diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/sif/hooligan_crab.dm b/code/modules/mob/living/simple_mob/subtypes/animal/sif/hooligan_crab.dm index 5f4a4dc7e0..0ac8d54c2b 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/sif/hooligan_crab.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/sif/hooligan_crab.dm @@ -93,7 +93,7 @@ var/was_stunned = L.incapacitated(INCAPACITATION_DISABLED) L.Weaken(weaken_amount) - playsound(L, 'sound/effects/break_stone.ogg', 75, 1) + playsound(src, 'sound/effects/break_stone.ogg', 75, 1) if(was_stunned) // Try to prevent chain-stuns by having them thrown. var/throwdir = get_dir(src, L) L.throw_at(get_edge_target_turf(L, throwdir), 5, 1, src) diff --git a/code/modules/mob/living/simple_mob/subtypes/illusion/illusion.dm b/code/modules/mob/living/simple_mob/subtypes/illusion/illusion.dm index 0b1dea13ff..69486a061d 100644 --- a/code/modules/mob/living/simple_mob/subtypes/illusion/illusion.dm +++ b/code/modules/mob/living/simple_mob/subtypes/illusion/illusion.dm @@ -56,7 +56,7 @@ /mob/living/simple_mob/illusion/attack_hand(mob/living/carbon/human/M) if(!realistic) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message(span("warning", "\The [M]'s hand goes through \the [src]!")) return else @@ -67,10 +67,10 @@ span("notice", "\The [M] hugs [src] to make [T.him] feel better!"), \ span("notice", "You hug [src] to make [T.him] feel better!") ) // slightly redundant as at the moment most mobs still use the normal gender var, but it works and future-proofs it - playsound(src.loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) if(I_DISARM) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message(span("danger", "\The [M] attempted to disarm [src]!")) M.do_attack_animation(src) @@ -86,7 +86,7 @@ if(realistic) return ..() - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) visible_message(span("warning", "\The [user]'s [I] goes through \the [src]!")) return FALSE diff --git a/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/adv_dark_gygax.dm b/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/adv_dark_gygax.dm index 8b3b6fff5d..4d418b0001 100644 --- a/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/adv_dark_gygax.dm +++ b/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/adv_dark_gygax.dm @@ -152,7 +152,7 @@ visible_message(span("warning", "\The [src] creates \an [energy_ball] around itself!")) - playsound(src.loc, 'sound/effects/lightning_chargeup.ogg', 100, 1, extrarange = 30) + playsound(src, 'sound/effects/lightning_chargeup.ogg', 100, 1, extrarange = 30) // Shock nearby things that aren't ourselves. for(var/i = 1 to 10) @@ -179,7 +179,7 @@ // Shoot a tesla bolt, and flashes people who are looking at the mecha without sufficent eye protection. visible_message(span("warning", "\The [energy_ball] explodes in a flash of light, sending a shock everywhere!")) - playsound(src.loc, 'sound/effects/lightningbolt.ogg', 100, 1, extrarange = 30) + playsound(src, 'sound/effects/lightningbolt.ogg', 100, 1, extrarange = 30) tesla_zap(src.loc, 5, ELECTRIC_ZAP_POWER, FALSE) for(var/mob/living/L in viewers(src)) if(L == src) @@ -346,4 +346,4 @@ if(get_dist(holder, A) >= rocket_explosive_radius + 1) holder.a_intent = I_HURT // Fire rockets if it's an obj/turf. else - holder.a_intent = I_DISARM // Electricity might not work but it's safe up close. + holder.a_intent = I_DISARM // Electricity might not work but it's safe up close. diff --git a/code/modules/mob/living/simple_mob/subtypes/plant/tree.dm b/code/modules/mob/living/simple_mob/subtypes/plant/tree.dm index 30c891088c..404a209c60 100644 --- a/code/modules/mob/living/simple_mob/subtypes/plant/tree.dm +++ b/code/modules/mob/living/simple_mob/subtypes/plant/tree.dm @@ -38,6 +38,6 @@ /mob/living/simple_mob/animal/space/tree/death() ..(null,"is hacked into pieces!") - playsound(loc, 'sound/effects/woodcutting.ogg', 100, 1) + playsound(src, 'sound/effects/woodcutting.ogg', 100, 1) new /obj/item/stack/material/wood(loc) qdel(src) \ No newline at end of file diff --git a/code/modules/mob/living/simple_mob/subtypes/slime/feral/feral.dm b/code/modules/mob/living/simple_mob/subtypes/slime/feral/feral.dm index 2fc06815ca..e2ef92e982 100644 --- a/code/modules/mob/living/simple_mob/subtypes/slime/feral/feral.dm +++ b/code/modules/mob/living/simple_mob/subtypes/slime/feral/feral.dm @@ -69,7 +69,7 @@ sharp = TRUE /obj/item/projectile/icicle/on_impact(atom/A) - playsound(get_turf(A), "shatter", 70, 1) + playsound(A, "shatter", 70, 1) return ..() /obj/item/projectile/icicle/get_structure_damage() @@ -93,4 +93,4 @@ if(L.has_AI()) // Other AIs should react to hostile auras. L.ai_holder.react_to_attack(src) - + diff --git a/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm b/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm index 7590fb2e05..a5419bc559 100644 --- a/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm +++ b/code/modules/mob/living/simple_mob/subtypes/slime/slime.dm @@ -221,5 +221,5 @@ return "slime" /mob/living/simple_mob/slime/proc/squish() - playsound(src.loc, 'sound/effects/slime_squish.ogg', 50, 0) + playsound(src, 'sound/effects/slime_squish.ogg', 50, 0) visible_message("\The [src] squishes!") \ No newline at end of file diff --git a/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/defense.dm b/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/defense.dm index dc8c2be032..51266a6d88 100644 --- a/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/defense.dm +++ b/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/defense.dm @@ -10,11 +10,11 @@ if(prob(fail_odds)) visible_message(span("warning", "\The [L] attempts to wrestle \the [name] off!")) - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(src, 'sound/weapons/punchmiss.ogg', 25, 1, -1) else visible_message(span("warning", "\The [L] manages to wrestle \the [name] off!")) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) if(prob(40)) adjust_discipline(1) // Do this here so that it will be justified discipline. diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/otie.dm b/code/modules/mob/living/simple_mob/subtypes/vore/otie.dm index cf75159b27..9c5bf2df0c 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/otie.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/otie.dm @@ -207,7 +207,7 @@ /mob/living/simple_mob/otie/attackby(var/obj/item/O, var/mob/user) // Trade donuts for bellybrig victims. if(istype(O, /obj/item/weapon/reagent_containers/food)) qdel(O) - playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) if(!has_AI())//No autobarf on player control. return if(istype(O, /obj/item/weapon/reagent_containers/food/snacks/donut) && istype(src, /mob/living/simple_mob/otie/security)) diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/rat.dm b/code/modules/mob/living/simple_mob/subtypes/vore/rat.dm index 11c19794f7..d708f265bb 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/rat.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/rat.dm @@ -91,7 +91,7 @@ for(var/obj/item/weapon/reagent_containers/food/snacks/S in oview(src,3)) //Accept thrown offerings and scavenge surroundings. if(get_dist(src,S) <=1) visible_emote("hungrily devours \the [S].") - playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) qdel(S) hunger = 0 food = null @@ -155,7 +155,7 @@ /mob/living/simple_mob/vore/aggressive/rat/tame/attackby(var/obj/item/O, var/mob/user) // Feed the rat your food to satisfy it. if(istype(O, /obj/item/weapon/reagent_containers/food/snacks)) qdel(O) - playsound(src.loc,'sound/items/eatfood.ogg', rand(10,50), 1) + playsound(src,'sound/items/eatfood.ogg', rand(10,50), 1) hunger = 0 food = null return diff --git a/code/modules/mob/mob_grab_specials.dm b/code/modules/mob/mob_grab_specials.dm index 1702e73ec9..a7a9d45db7 100644 --- a/code/modules/mob/mob_grab_specials.dm +++ b/code/modules/mob/mob_grab_specials.dm @@ -108,7 +108,7 @@ target.apply_effect(20, PARALYZE) target.visible_message("[target] [target.species.get_knockout_message(target)]") - playsound(attacker.loc, "swing_hit", 25, 1, -1) + playsound(attacker, "swing_hit", 25, 1, -1) add_attack_logs(attacker,target,"Headbutted using grab") attacker.drop_from_inventory(src) @@ -121,7 +121,7 @@ to_chat(attacker, "You require a better grab to do this.") return if(target.grab_joint(attacker, target_zone)) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) return /obj/item/weapon/grab/proc/pin_down(mob/target, mob/attacker) diff --git a/code/modules/multiz/ladder_assembly_vr.dm b/code/modules/multiz/ladder_assembly_vr.dm index 675cc1e969..e46bdca799 100644 --- a/code/modules/multiz/ladder_assembly_vr.dm +++ b/code/modules/multiz/ladder_assembly_vr.dm @@ -25,14 +25,14 @@ switch(state) if(CONSTRUCTION_UNANCHORED) state = CONSTRUCTION_WRENCHED - playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) + playsound(src, 'sound/items/Ratchet.ogg', 75, 1) user.visible_message("\The [user] secures \the [src]'s reinforcing bolts.", \ "You secure the reinforcing bolts.", \ "You hear a ratchet") src.anchored = 1 if(CONSTRUCTION_WRENCHED) state = CONSTRUCTION_UNANCHORED - playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) + playsound(src, 'sound/items/Ratchet.ogg', 75, 1) user.visible_message("\The [user] unsecures \the [src]'s reinforcing bolts.", \ "You undo the reinforcing bolts.", \ "You hear a ratchet") @@ -48,7 +48,7 @@ to_chat(user, "The refinforcing bolts need to be secured.") if(CONSTRUCTION_WRENCHED) if(WT.remove_fuel(0, user)) - playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) + playsound(src, 'sound/items/Welder2.ogg', 50, 1) user.visible_message("\The [user] starts to weld \the [src] to the floor.", \ "You start to weld \the [src] to the floor.", \ "You hear welding") @@ -61,7 +61,7 @@ to_chat(user, "You need more welding fuel to complete this task.") if(CONSTRUCTION_WELDED) if(WT.remove_fuel(0, user)) - playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1) + playsound(src, 'sound/items/Welder2.ogg', 50, 1) user.visible_message("\The [user] starts to cut \the [src] free from the floor.", \ "You start to cut \the [src] free from the floor.", \ "You hear welding") diff --git a/code/modules/multiz/movement.dm b/code/modules/multiz/movement.dm index f60dd4f8b8..f5201f60ec 100644 --- a/code/modules/multiz/movement.dm +++ b/code/modules/multiz/movement.dm @@ -492,7 +492,7 @@ visible_message("\The [src] falls from above and slams into \the [landing]!", \ "You fall off and hit \the [landing]!", \ "You hear something slam into \the [landing].") - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) // Because wounds heal rather quickly, 10 (the default for this proc) should be enough to discourage jumping off but not be enough to ruin you, at least for the first time. // Hits 10 times, because apparently targeting individual limbs lets certain species survive the fall from atmosphere @@ -589,7 +589,7 @@ visible_message("\The [src] falls from above and slams into \the [landing]!", \ "You fall off and hit \the [landing]!", \ "You hear something slam into \the [landing].") - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) // And now to hurt the mech. if(!planetary) diff --git a/code/modules/multiz/movement_vr.dm b/code/modules/multiz/movement_vr.dm index 7bdb8c74e3..bbca4eef0d 100644 --- a/code/modules/multiz/movement_vr.dm +++ b/code/modules/multiz/movement_vr.dm @@ -58,7 +58,7 @@ else if(prey.can_be_drop_pred && pred.can_be_drop_prey) //Is person being fallen onto pred & person falling prey pred.feed_grabbed_to_self_falling_nom(prey,pred) //oh, how the tables have turned. else - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) prey.Weaken(8) //Just fall onto them if neither of the above apply. var/tdamage for(var/i = 1 to 10) @@ -85,7 +85,7 @@ else prey.Weaken(8) pred.loc = prey.loc - playsound(loc, "punch", 25, 1, -1) + playsound(src, "punch", 25, 1, -1) var/tdamage for(var/i = 1 to 10) tdamage = rand(0, 10)/2 diff --git a/code/modules/multiz/pipes.dm b/code/modules/multiz/pipes.dm index 237e38562e..0bc21f07eb 100644 --- a/code/modules/multiz/pipes.dm +++ b/code/modules/multiz/pipes.dm @@ -79,7 +79,7 @@ obj/machinery/atmospherics/pipe/zpipe/check_pressure(pressure) obj/machinery/atmospherics/pipe/zpipe/proc/burst() src.visible_message("\The [src] bursts!"); - playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) + playsound(src, 'sound/effects/bang.ogg', 25, 1) var/datum/effect/effect/system/smoke_spread/smoke = new smoke.set_up(1,0, src.loc, 0) smoke.start() diff --git a/code/modules/nifsoft/nif.dm b/code/modules/nifsoft/nif.dm index 0b167e135b..d2400c6bff 100644 --- a/code/modules/nifsoft/nif.dm +++ b/code/modules/nifsoft/nif.dm @@ -202,7 +202,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable if(open == 0 && W.is_screwdriver()) if(do_after(user, 4 SECONDS, src) && open == 0) user.visible_message("[user] unscrews and pries open \the [src].","You unscrew and pry open \the [src].") - playsound(user, 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) open = 1 update_icon() else if(open == 1 && istype(W,/obj/item/stack/cable_coil)) @@ -212,7 +212,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable return if(do_after(user, 6 SECONDS, src) && open == 1 && C.use(3)) user.visible_message("[user] replaces some wiring in \the [src].","You replace any burned out wiring in \the [src].") - playsound(user, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) open = 2 update_icon() else if(open == 2 && istype(W,/obj/item/device/multitool)) @@ -223,7 +223,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable else if(open == 3 && W.is_screwdriver()) if(do_after(user, 3 SECONDS, src) && open == 3) user.visible_message("[user] closes up \the [src].","You re-seal \the [src] for use once more.") - playsound(user, 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) open = FALSE durability = initial(durability) stat = NIF_PREINSTALL diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index 5ea5ec2196..cf951eb3ae 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -1059,7 +1059,7 @@ Note that amputating the affected organ does in fact remove the infection from t if(organ_can_feel_pain() && !isbelly(owner.loc)) owner.emote("scream") - playsound(src.loc, "fracture", 10, 1, -2) + playsound(src, "fracture", 10, 1, -2) status |= ORGAN_BROKEN broken_description = pick("broken","fracture","hairline fracture") diff --git a/code/modules/overmap/overmap_shuttle.dm b/code/modules/overmap/overmap_shuttle.dm index d009c53847..6693778ec5 100644 --- a/code/modules/overmap/overmap_shuttle.dm +++ b/code/modules/overmap/overmap_shuttle.dm @@ -160,11 +160,11 @@ if(W.is_crowbar()) if(opened) to_chat(user, "You tightly shut \the [src] door.") - playsound(src.loc, 'sound/effects/locker_close.ogg', 25, 0, -3) + playsound(src, 'sound/effects/locker_close.ogg', 25, 0, -3) opened = 0 else to_chat(user, "You open up \the [src] door.") - playsound(src.loc, 'sound/effects/locker_open.ogg', 15, 1, -3) + playsound(src, 'sound/effects/locker_open.ogg', 15, 1, -3) opened = 1 else if(istype(W,/obj/item/weapon/tank)) if(!opened) diff --git a/code/modules/overmap/ships/computers/sensors.dm b/code/modules/overmap/ships/computers/sensors.dm index b359f552d5..e4e77f9005 100644 --- a/code/modules/overmap/ships/computers/sensors.dm +++ b/code/modules/overmap/ships/computers/sensors.dm @@ -98,7 +98,7 @@ if (href_list["scan"]) var/obj/effect/overmap/O = locate(href_list["scan"]) if(istype(O) && !QDELETED(O) && (O in view(7,linked))) - playsound(loc, "sound/machines/dotprinter.ogg", 30, 1) + playsound(src, "sound/machines/dotprinter.ogg", 30, 1) new/obj/item/weapon/paper/(get_turf(src), O.get_scan_data(user), "paper (Sensor Scan - [O])") return TOPIC_HANDLED diff --git a/code/modules/overmap/ships/engines/gas_thruster.dm b/code/modules/overmap/ships/engines/gas_thruster.dm index d111c2614e..fd689fb990 100644 --- a/code/modules/overmap/ships/engines/gas_thruster.dm +++ b/code/modules/overmap/ships/engines/gas_thruster.dm @@ -159,7 +159,7 @@ if(!removed) return 0 . = calculate_thrust(removed) - playsound(loc, 'sound/machines/thruster.ogg', 100 * thrust_limit, 0, world.view * 4, 0.1) + playsound(src, 'sound/machines/thruster.ogg', 100 * thrust_limit, 0, world.view * 4, 0.1) if(network) network.update = 1 diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index a850cf9989..040bd0a9c1 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -156,7 +156,7 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins return 0 //You can't send faxes to "Unknown" flick("faxreceive", src) - playsound(loc, "sound/effects/printer.ogg", 50, 1) + playsound(src, "sound/effects/printer.ogg", 50, 1) // give the sprite some time to flick diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index 374fb647c5..cf1f251307 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -38,19 +38,19 @@ P.loc = src icon_state = "[initial(icon_state)]-open" flick("[initial(icon_state)]-open",src) - playsound(loc, 'sound/bureaucracy/filingcabinet.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/filingcabinet.ogg', 50, 1) sleep(40) icon_state = initial(icon_state) updateUsrDialog() else if(P.is_wrench()) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) anchored = !anchored to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") else if(P.is_screwdriver()) to_chat(user, "You begin taking the [name] apart.") playsound(src, P.usesound, 50, 1) if(do_after(user, 10 * P.toolspeed)) - playsound(loc, P.usesound, 50, 1) + playsound(src, P.usesound, 50, 1) to_chat(user, "You take the [name] apart.") new /obj/item/stack/material/steel( src.loc, 4 ) for(var/obj/item/I in contents) @@ -101,7 +101,7 @@ usr.put_in_hands(P) updateUsrDialog() flick("[initial(icon_state)]-open",src) - playsound(loc, 'sound/bureaucracy/filingcabinet.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/filingcabinet.ogg', 50, 1) spawn(0) sleep(20) icon_state = initial(icon_state) diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 224d8c7d74..8b50d0204f 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -190,7 +190,7 @@ if(rigged && (Holiday == "April Fool's Day")) if(spam_flag == 0) spam_flag = 1 - playsound(loc, 'sound/items/bikehorn.ogg', 50, 1) + playsound(src, 'sound/items/bikehorn.ogg', 50, 1) spawn(20) spam_flag = 0 return @@ -375,7 +375,7 @@ user.visible_message("[user] holds \the [P] up to \the [src], it looks like [TU.hes] trying to burn it!", \ "You hold \the [P] up to \the [src], burning it slowly.") - playsound(src.loc, 'sound/bureaucracy/paperburn.ogg', 50, 1) + playsound(src, 'sound/bureaucracy/paperburn.ogg', 50, 1) spawn(20) if(get_dist(src, user) < 2 && user.get_active_hand() == P && P.lit) diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm index 28979b4154..bbf66d9f9a 100644 --- a/code/modules/paperwork/paper_bundle.dm +++ b/code/modules/paperwork/paper_bundle.dm @@ -154,13 +154,13 @@ insert_sheet_at(usr, page+1, in_hand) else if(page != pages.len) page++ - playsound(src.loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) if(href_list["prev_page"]) if(in_hand && (istype(in_hand, /obj/item/weapon/paper) || istype(in_hand, /obj/item/weapon/photo))) insert_sheet_at(usr, page, in_hand) else if(page > 1) page-- - playsound(src.loc, "pageturn", 50, 1) + playsound(src, "pageturn", 50, 1) if(href_list["remove"]) var/obj/item/weapon/W = pages[page] usr.put_in_hands(W) diff --git a/code/modules/paperwork/papershredder.dm b/code/modules/paperwork/papershredder.dm index cbbe7eeb4e..f5fae97d83 100644 --- a/code/modules/paperwork/papershredder.dm +++ b/code/modules/paperwork/papershredder.dm @@ -60,7 +60,7 @@ paperamount += paper_result user.drop_from_inventory(W) qdel(W) - playsound(src.loc, 'sound/items/pshred.ogg', 75, 1) + playsound(src, 'sound/items/pshred.ogg', 75, 1) flick(shred_anim, src) if(paperamount > max_paper) to_chat(user,"\The [src] was too full, and shredded paper goes everywhere!") diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index af51ebdf1f..e27f8db8b0 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -30,7 +30,7 @@ return user.setClickCooldown(1 SECOND) to_chat(user, "Click.") - playsound(loc, 'sound/items/penclick.ogg', 50, 1) + playsound(src, 'sound/items/penclick.ogg', 50, 1) /obj/item/weapon/pen/blue desc = "It's a normal blue ink pen." @@ -53,7 +53,7 @@ /obj/item/weapon/pen/AltClick(mob/user) to_chat(user, "Click.") - playsound(loc, 'sound/items/penclick.ogg', 50, 1) + playsound(src, 'sound/items/penclick.ogg', 50, 1) return /obj/item/weapon/pen/multi/attack_self(mob/user) @@ -152,7 +152,7 @@ sharp = 1 edge = 1 w_class = active_w_class - playsound(user, 'sound/weapons/saberon.ogg', 15, 1) + playsound(src, 'sound/weapons/saberon.ogg', 15, 1) damtype = SEARING catchable = FALSE @@ -166,7 +166,7 @@ /obj/item/weapon/pen/blade/proc/deactivate(mob/living/user) if(!active) return - playsound(user, 'sound/weapons/saberoff.ogg', 15, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 15, 1) active = 0 icon_state = default_icon_state embed_chance = initial(embed_chance) diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm index 72200f1631..5bf6a9102a 100644 --- a/code/modules/paperwork/photocopier.dm +++ b/code/modules/paperwork/photocopier.dm @@ -70,35 +70,35 @@ break if (istype(copyitem, /obj/item/weapon/paper)) - playsound(loc, "sound/machines/copier.ogg", 100, 1) + playsound(src, "sound/machines/copier.ogg", 100, 1) sleep(11) copy(copyitem) audible_message("You can hear [src] whirring as it finishes printing.") - playsound(loc, "sound/machines/buzzbeep.ogg", 30) + playsound(src, "sound/machines/buzzbeep.ogg", 30) else if (istype(copyitem, /obj/item/weapon/photo)) - playsound(loc, "sound/machines/copier.ogg", 100, 1) + playsound(src, "sound/machines/copier.ogg", 100, 1) sleep(11) photocopy(copyitem) audible_message("You can hear [src] whirring as it finishes printing.") - playsound(loc, "sound/machines/buzzbeep.ogg", 30) + playsound(src, "sound/machines/buzzbeep.ogg", 30) else if (istype(copyitem, /obj/item/weapon/paper_bundle)) sleep(11) - playsound(loc, "sound/machines/copier.ogg", 100, 1) + playsound(src, "sound/machines/copier.ogg", 100, 1) var/obj/item/weapon/paper_bundle/B = bundlecopy(copyitem) sleep(11*B.pages.len) audible_message("You can hear [src] whirring as it finishes printing.") - playsound(loc, "sound/machines/buzzbeep.ogg", 30) + playsound(src, "sound/machines/buzzbeep.ogg", 30) else if (has_buckled_mobs()) // VOREStation EDIT: For ass-copying. - playsound(loc, "sound/machines/copier.ogg", 100, 1) + playsound(src, "sound/machines/copier.ogg", 100, 1) audible_message("You can hear [src] whirring as it attempts to scan.") sleep(rand(20,45)) // Sit with your bare ass on the copier for a random time, feel like a fool, get stared at. copyass(user) sleep(15) audible_message("You can hear [src] whirring as it finishes printing.") - playsound(loc, "sound/machines/buzzbeep.ogg", 30) + playsound(src, "sound/machines/buzzbeep.ogg", 30) else to_chat(user, "\The [copyitem] can't be copied by [src].") - playsound(loc, "sound/machines/buzz-two.ogg", 100) + playsound(src, "sound/machines/buzz-two.ogg", 100) break use_power(active_power_usage) @@ -156,7 +156,7 @@ copyitem = O O.loc = src to_chat(user, "You insert \the [O] into \the [src].") - playsound(loc, "sound/machines/click.ogg", 100, 1) + playsound(src, "sound/machines/click.ogg", 100, 1) flick(insert_anim, src) else to_chat(user, "There is already something in \the [src].") @@ -170,7 +170,7 @@ else to_chat(user, "This cartridge is not yet ready for replacement! Use up the rest of the toner.") else if(O.is_wrench()) - playsound(loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) anchored = !anchored to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") else if(default_deconstruction_screwdriver(user, O)) @@ -232,7 +232,7 @@ if(need_toner) toner-- if(toner == 0) - playsound(loc, "sound/machines/buzz-sigh.ogg", 100) + playsound(src, "sound/machines/buzz-sigh.ogg", 100) visible_message("A red light on \the [src] flashes, indicating that it is out of toner.") return c @@ -255,7 +255,7 @@ toner -= 5 //photos use a lot of ink! if(toner < 0) toner = 0 - playsound(loc, "sound/machines/buzz-sigh.ogg", 100) + playsound(src, "sound/machines/buzz-sigh.ogg", 100) visible_message("A red light on \the [src] flashes, indicating that it is out of toner.") return p @@ -339,7 +339,7 @@ toner -= 10 // PHOTOCOPYING YOUR ASS IS EXPENSIVE (And so you can't just spam it a bunch). if(toner < 0) toner = 0 - playsound(loc, "sound/machines/buzz-sigh.ogg", 100) + playsound(src, "sound/machines/buzz-sigh.ogg", 100) visible_message("A red light on \the [src] flashes, indicating that it is out of toner.") return p @@ -351,7 +351,7 @@ for(var/obj/item/weapon/W in bundle.pages) if(toner <= 0 && need_toner) toner = 0 - playsound(loc, "sound/machines/buzz-sigh.ogg", 100) + playsound(src, "sound/machines/buzz-sigh.ogg", 100) visible_message("A red light on \the [src] flashes, indicating that it is out of toner.") break diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 3641f5c6f6..728602dcf7 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -97,7 +97,7 @@ var/global/photo_count = 0 var/mob/living/carbon/human/M = usr if(!( istype(over_object, /obj/screen) )) return ..() - playsound(loc, "rustle", 50, 1, -5) + playsound(src, "rustle", 50, 1, -5) if((!( M.restrained() ) && !( M.stat ) && M.back == src)) switch(over_object.name) if("r_hand") @@ -242,7 +242,7 @@ var/global/photo_count = 0 if(!on || !pictures_left || ismob(target.loc)) return captureimage(target, user, flag) - playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3) + playsound(src, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3) pictures_left-- desc = "A polaroid camera. It has [pictures_left] photos left." diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm index 46f05bfd80..93c716b426 100644 --- a/code/modules/power/antimatter/control.dm +++ b/code/modules/power/antimatter/control.dm @@ -69,7 +69,7 @@ /obj/machinery/power/am_control_unit/proc/produce_power() - playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) + playsound(src, 'sound/effects/bang.ogg', 25, 1) var/core_power = reported_core_efficiency//Effectively how much fuel we can safely deal with if(core_power <= 0) return 0//Something is wrong var/core_damage = 0 @@ -85,7 +85,7 @@ for(var/obj/machinery/am_shielding/AMS in linked_cores) AMS.stability -= core_damage AMS.check_stability(1) - playsound(src.loc, 'sound/effects/bang.ogg', 50, 1) + playsound(src, 'sound/effects/bang.ogg', 50, 1) return diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 48ea5f17fa..19b3e11074 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -531,12 +531,12 @@ GLOBAL_LIST_EMPTY(apcs) if (has_electronics==1 && terminal) has_electronics = 2 stat &= ~MAINT - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You screw the circuit electronics into place.") else if (has_electronics==2) has_electronics = 1 stat |= MAINT - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You unfasten the electronics.") else /* has_electronics==0 */ to_chat(user, "There is nothing to secure.") @@ -562,7 +562,7 @@ GLOBAL_LIST_EMPTY(apcs) 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, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20)) if (C.amount >= 10 && !terminal && opened && has_electronics != 2) var/obj/structure/cable/N = T.get_cable_node() @@ -585,7 +585,7 @@ GLOBAL_LIST_EMPTY(apcs) return user.visible_message("[user.name] starts dismantling the [src]'s power terminal.", \ "You begin to cut the cables...") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 50 * W.toolspeed)) if(terminal && opened && has_electronics!=2) if (prob(50) && electrocute_mob(usr, terminal.powernet, terminal)) @@ -600,7 +600,7 @@ GLOBAL_LIST_EMPTY(apcs) else if (istype(W, /obj/item/weapon/module/power_control) && opened && has_electronics==0 && !((stat & BROKEN))) 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, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 10)) if(has_electronics==0) has_electronics = 1 @@ -660,7 +660,7 @@ GLOBAL_LIST_EMPTY(apcs) if(do_after(user, 50)) user.visible_message("[user.name] resets the APC with a beep from their [W.name].",\ "You finish resetting the APC.") - playsound(src.loc, 'sound/machines/chime.ogg', 25, 1) + playsound(src, 'sound/machines/chime.ogg', 25, 1) reboot() else if ((stat & BROKEN) \ @@ -746,7 +746,7 @@ GLOBAL_LIST_EMPTY(apcs) if(H.species.can_shred(H)) user.setClickCooldown(user.get_attack_speed()) user.visible_message("[user.name] slashes at the [src.name]!", "You slash at the [src.name]!") - playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1) + playsound(src, 'sound/weapons/slash.ogg', 100, 1) var/allcut = wires.IsAllCut() diff --git a/code/modules/power/gravitygenerator_vr.dm b/code/modules/power/gravitygenerator_vr.dm index 9f5dd799f4..e0e24f31a5 100644 --- a/code/modules/power/gravitygenerator_vr.dm +++ b/code/modules/power/gravitygenerator_vr.dm @@ -223,7 +223,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) 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, 'sound/machines/click.ogg', 75, 1) broken_state++ update_icon() else @@ -351,7 +351,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) 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, 'sound/effects/empulse.ogg', 100, 1) 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 61f816dca5..be2aa4027b 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -112,7 +112,7 @@ var/global/list/light_type_cache = list() new /obj/item/stack/material/steel( get_turf(src.loc), sheets_refunded ) user.visible_message("[user.name] deconstructs [src].", \ "You deconstruct [src].", "You hear a noise.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 75, 1) qdel(src) if (src.stage == 2) to_chat(usr, "You have to remove the wires first.") @@ -129,7 +129,7 @@ var/global/list/light_type_cache = list() new /obj/item/stack/cable_coil(get_turf(src.loc), 1, "red") user.visible_message("[user.name] removes the wiring from [src].", \ "You remove the wiring from [src].", "You hear a noise.") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) return if(istype(W, /obj/item/stack/cable_coil)) @@ -421,7 +421,7 @@ var/global/list/light_type_cache = list() if(!on) needsound = TRUE // Play sound next time we turn on else if(needsound) - playsound(src.loc, 'sound/effects/lighton.ogg', 65, 1) + playsound(src, 'sound/effects/lighton.ogg', 65, 1) needsound = FALSE // Don't play sound again until we've been turned off //VOREStation Edit End @@ -800,7 +800,7 @@ var/global/list/light_type_cache = list() if(!skip_sound_and_sparks) if(status == LIGHT_OK || status == LIGHT_BURNED) - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) if(on) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(3, 1, src) @@ -1021,7 +1021,7 @@ var/global/list/light_type_cache = list() status = LIGHT_BROKEN force = 5 sharp = 1 - playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1) + playsound(src, 'sound/effects/Glasshit.ogg', 75, 1) update_icon() //Lamp Shade diff --git a/code/modules/power/lightswitch_vr.dm b/code/modules/power/lightswitch_vr.dm index 409110331f..d5fe4cd6ab 100644 --- a/code/modules/power/lightswitch_vr.dm +++ b/code/modules/power/lightswitch_vr.dm @@ -34,7 +34,7 @@ return ..() /obj/machinery/light_switch/dismantle() - playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) var/obj/structure/construction/lightswitch/A = new(src.loc, src.dir) A.stage = FRAME_WIRED A.pixel_x = pixel_x @@ -89,7 +89,7 @@ if(!WT.remove_fuel(0, user)) to_chat(user, "\The [src] must be on to complete this task.") return - playsound(src.loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) user.visible_message( \ "\The [user] begins deconstructing \the [src].", \ "You start deconstructing \the [src].") @@ -98,7 +98,7 @@ user.visible_message( \ "\The [user] has deconstructed \the [src].", \ "You deconstruct \the [src].") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 75, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 75, 1) qdel(src) else if (stage == FRAME_FASTENED) to_chat(user, "You have to unscrew the case first.") @@ -113,7 +113,7 @@ new /obj/item/stack/cable_coil(get_turf(src), 1, "red") user.visible_message("\The [user] removes the wiring from \the [src].", \ "You remove the wiring from \the [src].", "You hear a snip.") - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) update_icon() return @@ -125,7 +125,7 @@ user.update_examine_panel(src) user.visible_message("\The [user] adds wires to \the [src].", \ "You add wires to \the [src].", "You hear a noise.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) update_icon() return diff --git a/code/modules/power/pacman2.dm b/code/modules/power/pacman2.dm index 26a534e222..81f73be63d 100644 --- a/code/modules/power/pacman2.dm +++ b/code/modules/power/pacman2.dm @@ -72,7 +72,7 @@ else if(!active) if(O.is_wrench()) anchored = !anchored - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(anchored) to_chat(user, "You secure the generator to the floor.") else @@ -80,13 +80,13 @@ SSmachines.makepowernets() else if(O.is_screwdriver()) open = !open - playsound(loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) if(open) to_chat(user, "You open the access panel.") else to_chat(user, "You close the access panel.") else if(O.is_crowbar() && !open) - playsound(loc, O.usesound, 50, 1) + playsound(src, O.usesound, 50, 1) var/obj/machinery/constructable_frame/machine_frame/new_frame = new /obj/machinery/constructable_frame/machine_frame(src.loc) for(var/obj/item/I in component_parts) I.loc = src.loc diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm index 10b638121f..3251aee2f9 100644 --- a/code/modules/power/port_gen.dm +++ b/code/modules/power/port_gen.dm @@ -272,7 +272,7 @@ else disconnect_from_network() to_chat(user, "You unsecure the generator from the floor.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) anchored = !anchored return else if(default_deconstruction_screwdriver(user, O)) diff --git a/code/modules/power/port_gen_vr.dm b/code/modules/power/port_gen_vr.dm index 5cdd86b047..1e07385f70 100644 --- a/code/modules/power/port_gen_vr.dm +++ b/code/modules/power/port_gen_vr.dm @@ -152,7 +152,7 @@ going_kaboom = TRUE visible_message("\The [src] lets out an shower of sparks as it starts to lose stability!",\ "You hear a loud electrical crack!") - playsound(src.loc, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5) + playsound(src, 'sound/effects/lightningshock.ogg', 100, 1, 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/emitter.dm b/code/modules/power/singularity/emitter.dm index 3b381ff2f0..ea8b5cd230 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -134,7 +134,7 @@ var/burst_time = (min_burst_delay + max_burst_delay)/2 + 2*(burst_shots-1) var/power_per_shot = active_power_usage * (burst_time/10) / burst_shots - playsound(src.loc, 'sound/weapons/emitter.ogg', 25, 1) + playsound(src, 'sound/weapons/emitter.ogg', 25, 1) if(prob(35)) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(5, 1, src) @@ -181,7 +181,7 @@ to_chat(user, "\The [src] needs to be wrenched to the floor.") if(1) if (WT.remove_fuel(0,user)) - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) user.visible_message("[user.name] starts to weld [src] to the floor.", \ "You start to weld [src] to the floor.", \ "You hear welding") @@ -194,7 +194,7 @@ to_chat(user, "You need more welding fuel to complete this task.") if(2) if (WT.remove_fuel(0,user)) - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) user.visible_message("[user.name] starts to cut [src] free from the floor.", \ "You start to cut [src] free from the floor.", \ "You hear welding") diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index 6a510f0060..763dd32ca8 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -130,7 +130,7 @@ field_generator power level display return if(1) if (WT.remove_fuel(0,user)) - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) user.visible_message("[user.name] starts to weld the [src.name] to the floor.", \ "You start to weld the [src] to the floor.", \ "You hear welding") @@ -142,7 +142,7 @@ field_generator power level display return if(2) if (WT.remove_fuel(0,user)) - playsound(loc, WT.usesound, 50, 1) + playsound(src, WT.usesound, 50, 1) user.visible_message("[user.name] starts to cut the [src.name] free from the floor.", \ "You start to cut the [src] free from the floor.", \ "You hear welding") diff --git a/code/modules/power/singularity/generator.dm b/code/modules/power/singularity/generator.dm index bb470811ba..213b37d01a 100644 --- a/code/modules/power/singularity/generator.dm +++ b/code/modules/power/singularity/generator.dm @@ -31,12 +31,12 @@ return if(W.is_screwdriver()) panel_open = !panel_open - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) visible_message("\The [user] adjusts \the [src]'s mechanisms.") if(panel_open && do_after(user, 30)) to_chat(user, "\The [src] looks like it could be modified.") if(panel_open && do_after(user, 80 * W.toolspeed)) // We don't have skills, so a delayed hint for engineers will have to do for now. (Panel open check for sanity) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "\The [src] looks like it could be adapted to forge advanced materials via particle acceleration, somehow..") else to_chat(user, "\The [src]'s mechanisms look secure.") diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index e79474b3a0..c05c4e1523 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -325,7 +325,7 @@ GLOBAL_LIST_EMPTY(smeses) to_chat(user, "You must remove the floor plating first.") else to_chat(user, "You begin to cut the cables...") - playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 50 * W.toolspeed)) if (prob(50) && electrocute_mob(usr, term.powernet, term)) var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index a43bf079c8..f8bf16087e 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -333,7 +333,7 @@ to_chat(user, "You have to disassemble the terminal first!") return - playsound(get_turf(src), W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You begin to disassemble the [src]!") if (do_after(usr, (100 * cur_coils) * W.toolspeed)) // More coils = takes longer to disassemble. It's complex so largest one with 5 coils will take 50s with a normal crowbar diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 5daeb1e2cb..27f1953b32 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -65,14 +65,14 @@ GLOBAL_LIST_EMPTY(solars_list) /obj/machinery/power/solar/attackby(obj/item/weapon/W, mob/user) if(W.is_crowbar()) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) user.visible_message("[user] begins to take the glass off the solar panel.") if(do_after(user, 50)) var/obj/item/solar_assembly/S = locate() in src if(S) S.loc = src.loc S.give_glass() - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) user.visible_message("[user] takes the glass off the solar panel.") qdel(src) return @@ -247,7 +247,7 @@ GLOBAL_LIST_EMPTY(solars_list) var/obj/item/stack/material/S = W if(S.use(2)) glass_type = W.type - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) user.visible_message("[user] places the glass on the solar assembly.") if(tracker) new /obj/machinery/power/tracker(get_turf(src), src) diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm index ab54a82957..28835d7fdd 100644 --- a/code/modules/power/tesla/coil.dm +++ b/code/modules/power/tesla/coil.dm @@ -77,7 +77,7 @@ var/power_produced = powernet ? power / power_loss : power add_avail(power_produced*input_power_multiplier) flick("coilhit", src) - playsound(src.loc, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5) + playsound(src, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5) tesla_zap(src, 5, power_produced) //addtimer(CALLBACK(src, .proc/reset_shocked), 10) spawn(10) reset_shocked() @@ -92,7 +92,7 @@ coeff = max(coeff, 10) var/power = (powernet.avail/2) draw_power(power) - playsound(src.loc, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5) + playsound(src, 'sound/effects/lightningshock.ogg', 100, 1, extrarange = 5) tesla_zap(src, 10, power/(coeff/2)) //TFF 3/6/19 - Port Cit RP fix for infinite frames diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm index 5a8c807642..4578db9b14 100644 --- a/code/modules/power/tesla/energy_ball.dm +++ b/code/modules/power/tesla/energy_ball.dm @@ -60,7 +60,7 @@ move_the_basket_ball(max(wait - 5, 4 + orbiting_balls.len * 1.5)) - playsound(src.loc, 'sound/effects/lightningbolt.ogg', 100, 1, extrarange = 30) + playsound(src, 'sound/effects/lightningbolt.ogg', 100, 1, extrarange = 30) set_dir(tesla_zap(src, 7, TESLA_DEFAULT_POWER, TRUE)) @@ -101,7 +101,7 @@ energy_to_lower = energy_to_raise - 20 energy_to_raise = energy_to_raise * 1.25 - playsound(src.loc, 'sound/effects/lightning_chargeup.ogg', 100, 1, extrarange = 30) + playsound(src, 'sound/effects/lightning_chargeup.ogg', 100, 1, extrarange = 30) //addtimer(CALLBACK(src, .proc/new_mini_ball), 100) spawn(100) new_mini_ball() diff --git a/code/modules/power/tracker.dm b/code/modules/power/tracker.dm index 673b2ece86..0e2cc7cbf8 100644 --- a/code/modules/power/tracker.dm +++ b/code/modules/power/tracker.dm @@ -60,14 +60,14 @@ /obj/machinery/power/tracker/attackby(var/obj/item/weapon/W, var/mob/user) if(W.is_crowbar()) - playsound(src.loc, 'sound/machines/click.ogg', 50, 1) + playsound(src, 'sound/machines/click.ogg', 50, 1) user.visible_message("[user] begins to take the glass off the solar tracker.") if(do_after(user, 50)) var/obj/item/solar_assembly/S = locate() in src if(S) S.loc = src.loc S.give_glass() - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) user.visible_message("[user] takes the glass off the tracker.") qdel(src) return diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index 01f4e6003a..65ec739d62 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -134,7 +134,7 @@ AC.loc = src stored_ammo.Insert(1, AC) //add it to the head of our magazine's list L.update_icon() - playsound(user.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() // This dumps all the bullets right on the floor @@ -144,11 +144,11 @@ to_chat(user, "[src] is already empty!") return to_chat(user, "You empty [src].") - playsound(user.loc, "casing_sound", 50, 1) + playsound(src, "casing_sound", 50, 1) spawn(7) - playsound(user.loc, "casing_sound", 50, 1) + playsound(src, "casing_sound", 50, 1) spawn(10) - playsound(user.loc, "casing_sound", 50, 1) + playsound(src, "casing_sound", 50, 1) for(var/obj/item/ammo_casing/C in stored_ammo) C.loc = user.loc C.set_dir(pick(cardinal)) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index f7372bbdf6..601510957e 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -528,7 +528,7 @@ user.visible_message("*click click*", "*click*") else src.visible_message("*click click*") - playsound(src.loc, 'sound/weapons/empty.ogg', 100, 1) + playsound(src, 'sound/weapons/empty.ogg', 100, 1) // Called when the user is about to fire. // Moved from handle_post_fire() because if using a laser, the message for when someone got shot would show up before the firing message. @@ -678,9 +678,9 @@ return if(silenced) - playsound(user, shot_sound, 10, 1) + playsound(src, shot_sound, 10, 1) else - playsound(user, shot_sound, 50, 1) + playsound(src, shot_sound, 50, 1) //Suicide handling. /obj/item/weapon/gun/var/mouthshoot = 0 //To stop people from suiciding twice... >.> diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index bff75f27f7..c1dae89a6e 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -127,7 +127,7 @@ power_supply = P P.loc = src user.visible_message("[user] inserts [P] into [src].", "You insert [P] into [src].") - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() update_held_icon() else @@ -143,7 +143,7 @@ power_supply.update_icon() user.visible_message("[user] removes [power_supply] from [src].", "You remove [power_supply] from [src].") power_supply = null - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) update_icon() update_held_icon() else diff --git a/code/modules/projectiles/guns/energy/bsharpoon_vr.dm b/code/modules/projectiles/guns/energy/bsharpoon_vr.dm index 9e9967289f..005741bfe4 100644 --- a/code/modules/projectiles/guns/energy/bsharpoon_vr.dm +++ b/code/modules/projectiles/guns/energy/bsharpoon_vr.dm @@ -45,7 +45,7 @@ return var/turf/T = get_turf(src) to_chat(user, "You remove [scanmod] from [src].") - playsound(T, I.usesound, 75, 1) + playsound(src, I.usesound, 75, 1) scanmod.forceMove(T) scanmod = null update_fail_chance() @@ -77,7 +77,7 @@ firable = FALSE VARSET_IN(src, firable, TRUE, 30 SECONDS) to_chat(user,"\The [src] shot fizzles due to interference!") - playsound(user, 'sound/weapons/wave.ogg', 60, 1) + playsound(src, 'sound/weapons/wave.ogg', 60, 1) return var/turf/T = get_turf(A) if(!T || (T.check_density() && mode == 1)) @@ -96,7 +96,7 @@ firable = FALSE VARSET_IN(src, firable, TRUE, 30 SECONDS) - playsound(user, 'sound/weapons/wave.ogg', 60, 1) + playsound(src, 'sound/weapons/wave.ogg', 60, 1) user.visible_message("[user] fires \the [src]!","You fire \the [src]!") diff --git a/code/modules/projectiles/guns/energy/cell_loaded_vr/cell_loaded.dm b/code/modules/projectiles/guns/energy/cell_loaded_vr/cell_loaded.dm index 8e9a5181e6..1ec51e1e90 100644 --- a/code/modules/projectiles/guns/energy/cell_loaded_vr/cell_loaded.dm +++ b/code/modules/projectiles/guns/energy/cell_loaded_vr/cell_loaded.dm @@ -170,7 +170,7 @@ B.loc = src stored_ammo.Add(B) update_icon() - playsound(user.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() /obj/item/ammo_magazine/cell_mag/update_icon() diff --git a/code/modules/projectiles/guns/energy/crestrose_vr.dm b/code/modules/projectiles/guns/energy/crestrose_vr.dm index a486afca54..c702d05b09 100644 --- a/code/modules/projectiles/guns/energy/crestrose_vr.dm +++ b/code/modules/projectiles/guns/energy/crestrose_vr.dm @@ -35,6 +35,6 @@ /obj/item/weapon/gun/projectile/automatic/fluff/crestrose/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(default_parry_check(user, attacker, damage_source) && prob(50)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(user, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 \ No newline at end of file diff --git a/code/modules/projectiles/guns/energy/gunsword_vr.dm b/code/modules/projectiles/guns/energy/gunsword_vr.dm index 54f689133d..fcf1fcfe26 100644 --- a/code/modules/projectiles/guns/energy/gunsword_vr.dm +++ b/code/modules/projectiles/guns/energy/gunsword_vr.dm @@ -69,7 +69,7 @@ sharp = 1 edge = 1 w_class = active_w_class - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) set_light(lrange, lpower, lcolor) attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") @@ -78,7 +78,7 @@ /obj/item/weapon/cell/device/weapon/gunsword/proc/deactivate(mob/living/user) if(!active) return - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) icon_state = "gsaberoff" item_state = "gsaberoff" active = 0 diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm index bd9ab4d1c3..4f3a35c763 100644 --- a/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm +++ b/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm @@ -33,7 +33,7 @@ if(istype(A, /obj/item/weapon/tool/crowbar)) if(modkits.len) to_chat(user, "You pry the modifications out.") - playsound(loc, A.usesound, 100, 1) + playsound(src, A.usesound, 100, 1) for(var/obj/item/borg/upgrade/modkit/M in modkits) M.uninstall(src) else @@ -80,7 +80,7 @@ . = ..() spawn(fire_delay) if(power_supply && power_supply.check_charge(charge_cost)) - playsound(loc, 'sound/weapons/kenetic_reload.ogg', 60, 1) + playsound(src, 'sound/weapons/kenetic_reload.ogg', 60, 1) /obj/item/weapon/gun/energy/kinetic_accelerator/update_icon() cut_overlays() @@ -195,7 +195,7 @@ if(KA.get_remaining_mod_capacity() >= cost) if(.) to_chat(user, "You install the modkit.") - playsound(loc, usesound, 100, 1) + playsound(src, usesound, 100, 1) user.unEquip(src) forceMove(KA) KA.modkits += src diff --git a/code/modules/projectiles/guns/energy/laser_vr.dm b/code/modules/projectiles/guns/energy/laser_vr.dm index 458442051c..86a32cb97f 100644 --- a/code/modules/projectiles/guns/energy/laser_vr.dm +++ b/code/modules/projectiles/guns/energy/laser_vr.dm @@ -223,7 +223,7 @@ while(recharging) if(!do_after(user, 10, src)) break - playsound(get_turf(src),'sound/items/change_drill.ogg',25,1) + playsound(src,'sound/items/change_drill.ogg',25,1) if(power_supply.give(phase_power) < phase_power) break diff --git a/code/modules/projectiles/guns/energy/particle.dm b/code/modules/projectiles/guns/energy/particle.dm index a9ce49bf52..a255f80262 100644 --- a/code/modules/projectiles/guns/energy/particle.dm +++ b/code/modules/projectiles/guns/energy/particle.dm @@ -71,12 +71,12 @@ if (!power_supply || power_supply.charge < charge_cost) user.visible_message("*click*", "*click*") - playsound(src.loc, 'sound/weapons/empty.ogg', 100, 1) + playsound(src, 'sound/weapons/empty.ogg', 100, 1) return 0 if(pressure >= 10) if (safetycatch) //weapons with a pressure regulator simply won't fire user.visible_message("*click*", "The pressure-interlock prevents you from firing \the [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 100, 1) + playsound(src, 'sound/weapons/empty.ogg', 100, 1) return 0 else if (prob(min(pressure, 100))) //pressure% chance of failing var/severity = rand(pressure) @@ -88,11 +88,11 @@ /obj/item/weapon/gun/energy/particle/proc/pressuremalfunction(severity, var/mob/user, var/turf/T) if (severity <= 10) // just doesn't fire. 10% chance in 100 atmo. user.visible_message("*click*", "\The [src] jams.") - playsound(src.loc, 'sound/weapons/empty.ogg', 100, 1) + playsound(src, 'sound/weapons/empty.ogg', 100, 1) else if (severity <= 60) //50% chance of fizzling and wasting a shot user.visible_message("\The [user] fires \the [src], but the shot fizzles in the air!", "You fire \the [src], but the shot fizzles in the air!") power_supply.charge -= charge_cost - playsound(src.loc, fire_sound, 100, 1) + playsound(src, fire_sound, 100, 1) var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread() sparks.set_up(2, 1, T) sparks.start() diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index f47053cba0..e5d43ca526 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -150,7 +150,7 @@ user.visible_message("*fizzle*", "*fizzle*") else src.visible_message("*fizzle*") - playsound(src.loc, 'sound/effects/sparks1.ogg', 100, 1) + playsound(src, 'sound/effects/sparks1.ogg', 100, 1) /* /obj/item/weapon/gun/energy/staff/animate name = "staff of animation" diff --git a/code/modules/projectiles/guns/launcher/grenade_launcher.dm b/code/modules/projectiles/guns/launcher/grenade_launcher.dm index 259d5e2e82..5f33557727 100644 --- a/code/modules/projectiles/guns/launcher/grenade_launcher.dm +++ b/code/modules/projectiles/guns/launcher/grenade_launcher.dm @@ -61,7 +61,7 @@ grenades.len-- user.put_in_hands(G) user.visible_message("[user] removes \a [G] from [src].", "You remove \a [G] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else to_chat(user, "[src] is empty.") @@ -119,7 +119,7 @@ if(chambered) user.put_in_hands(chambered) user.visible_message("[user] removes \a [chambered] from [src].", "You remove \a [chambered] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) chambered = null else to_chat(user, "[src] is empty.") \ No newline at end of file diff --git a/code/modules/projectiles/guns/launcher/pneumatic.dm b/code/modules/projectiles/guns/launcher/pneumatic.dm index b8fe6c4e35..6a6bf73cb1 100644 --- a/code/modules/projectiles/guns/launcher/pneumatic.dm +++ b/code/modules/projectiles/guns/launcher/pneumatic.dm @@ -53,7 +53,7 @@ item_storage.remove_from_storage(removing, src.loc) user.put_in_hands(removing) to_chat(user, "You remove [removing] from the hopper.") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else to_chat(user, "There is nothing to remove in \the [src].") diff --git a/code/modules/projectiles/guns/launcher/syringe_gun.dm b/code/modules/projectiles/guns/launcher/syringe_gun.dm index 17778ffae4..3d60e22405 100644 --- a/code/modules/projectiles/guns/launcher/syringe_gun.dm +++ b/code/modules/projectiles/guns/launcher/syringe_gun.dm @@ -30,7 +30,7 @@ /obj/item/weapon/syringe_cartridge/attack_self(mob/user) if(syringe) to_chat(user, "You remove [syringe] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) user.put_in_hands(syringe) syringe = null sharp = initial(sharp) @@ -97,7 +97,7 @@ user.visible_message("[user] unlatches and carefully relaxes the bolt on [src].", "You unlatch and carefully relax the bolt on [src], unloading the spring.") next = null else if(darts.len) - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) user.visible_message("[user] draws back the bolt on [src], clicking it into place.", "You draw back the bolt on the [src], loading the spring!") next = darts[1] add_fingerprint(user) @@ -114,7 +114,7 @@ darts -= C user.put_in_hands(C) user.visible_message("[user] removes \a [C] from [src].", "You remove \a [C] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else ..() diff --git a/code/modules/projectiles/guns/magnetic/bore.dm b/code/modules/projectiles/guns/magnetic/bore.dm index 9d59dbbe1d..0594e2abb3 100644 --- a/code/modules/projectiles/guns/magnetic/bore.dm +++ b/code/modules/projectiles/guns/magnetic/bore.dm @@ -58,7 +58,7 @@ removing.forceMove(get_turf(src)) user.put_in_hands(removing) user.visible_message("\The [user] removes \the [removing] from \the [src].") - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) update_icon() return . = ..() @@ -84,7 +84,7 @@ cell = thing user.drop_from_inventory(cell) cell.forceMove(src) - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) user.visible_message("\The [user] slots \the [cell] into \the [src].") update_icon() return @@ -95,7 +95,7 @@ manipulator.forceMove(get_turf(src)) user.put_in_hands(manipulator) user.visible_message("\The [user] levers \the [manipulator] from \the [src].") - playsound(loc, 'sound/items/Crowbar.ogg', 50, 1) + playsound(src, 'sound/items/Crowbar.ogg', 50, 1) manipulator = null update_icon() return @@ -106,7 +106,7 @@ capacitor.forceMove(get_turf(src)) user.put_in_hands(capacitor) user.visible_message("\The [user] unscrews \the [capacitor] from \the [src].") - playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) capacitor = null update_icon() return @@ -118,7 +118,7 @@ capacitor = thing user.drop_from_inventory(capacitor) capacitor.forceMove(src) - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) power_per_tick = (power_cost*0.15) * capacitor.rating user.visible_message("\The [user] slots \the [capacitor] into \the [src].") update_icon() @@ -131,7 +131,7 @@ manipulator = thing user.drop_from_inventory(manipulator) manipulator.forceMove(src) - playsound(loc, 'sound/machines/click.ogg', 10,1) + playsound(src, 'sound/machines/click.ogg', 10,1) mat_cost = initial(mat_cost) % (2*manipulator.rating) user.visible_message("\The [user] slots \the [manipulator] into \the [src].") update_icon() @@ -154,14 +154,14 @@ if(mat_storage + 2000 <= max_mat_storage && do_after(user,1.5 SECONDS)) can_hold_val ++ mat_storage += 2000 - playsound(loc, 'sound/effects/phasein.ogg', 15, 1) + playsound(src, 'sound/effects/phasein.ogg', 15, 1) else loading = FALSE break M.use(can_hold_val) user.visible_message("\The [user] loads \the [src] with \the [M].") - playsound(loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() return . = ..() diff --git a/code/modules/projectiles/guns/magnetic/magnetic.dm b/code/modules/projectiles/guns/magnetic/magnetic.dm index 8c6d007fc0..ae12ce034c 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic.dm @@ -101,7 +101,7 @@ cell = thing user.drop_from_inventory(cell) cell.forceMove(src) - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) user.visible_message("\The [user] slots \the [cell] into \the [src].") update_icon() return @@ -113,7 +113,7 @@ capacitor.forceMove(get_turf(src)) user.put_in_hands(capacitor) user.visible_message("\The [user] unscrews \the [capacitor] from \the [src].") - playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) capacitor = null update_icon() return @@ -125,7 +125,7 @@ capacitor = thing user.drop_from_inventory(capacitor) capacitor.forceMove(src) - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) power_per_tick = (power_cost*0.15) * capacitor.rating user.visible_message("\The [user] slots \the [capacitor] into \the [src].") update_icon() @@ -149,7 +149,7 @@ ammo.use(1) user.visible_message("\The [user] loads \the [src] with \the [loaded].") - playsound(loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() return . = ..() @@ -169,7 +169,7 @@ removing.forceMove(get_turf(src)) user.put_in_hands(removing) user.visible_message("\The [user] removes \the [removing] from \the [src].") - playsound(loc, 'sound/machines/click.ogg', 10, 1) + playsound(src, 'sound/machines/click.ogg', 10, 1) update_icon() return . = ..() @@ -238,7 +238,7 @@ removable_components = FALSE spawn(15) audible_message("\The [src]'s power supply begins to overload as the device crumples!") //Why are you still holding this? - playsound(loc, 'sound/effects/grillehit.ogg', 10, 1) + playsound(src, 'sound/effects/grillehit.ogg', 10, 1) var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread() var/turf/T = get_turf(src) sparks.set_up(2, 1, T) diff --git a/code/modules/projectiles/guns/magnetic/magnetic_construction.dm b/code/modules/projectiles/guns/magnetic/magnetic_construction.dm index 637f2460a6..7745c9c623 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic_construction.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic_construction.dm @@ -45,7 +45,7 @@ return user.visible_message("\The [user] welds the barrel of \the [src] into place.") - playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1) + playsound(src, 'sound/items/Welder2.ogg', 100, 1) increment_construction_stage() return @@ -68,7 +68,7 @@ if(thing.is_screwdriver() && construction_stage >= 9) user.visible_message("\The [user] secures \the [src] and finishes it off.") - playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 50, 1) var/obj/item/weapon/gun/magnetic/coilgun = new(loc) var/put_in_hands var/mob/M = src.loc diff --git a/code/modules/projectiles/guns/magnetic/magnetic_railgun.dm b/code/modules/projectiles/guns/magnetic/magnetic_railgun.dm index dbcc1a1b41..c9688ab0d8 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic_railgun.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic_railgun.dm @@ -52,7 +52,7 @@ loaded.forceMove(get_turf(src)) loaded = null visible_message("\The [src] beeps and ejects its empty cartridge.","There's a beeping sound!") - playsound(get_turf(src), empty_sound, 40, 1) + playsound(src, empty_sound, 40, 1) /obj/item/weapon/gun/magnetic/railgun/automatic // Adminspawn only, this shit is absurd. name = "\improper RHR accelerator" diff --git a/code/modules/projectiles/guns/modular_guns.dm b/code/modules/projectiles/guns/modular_guns.dm index 38e2ed1a93..4eb990c0ca 100644 --- a/code/modules/projectiles/guns/modular_guns.dm +++ b/code/modules/projectiles/guns/modular_guns.dm @@ -142,7 +142,7 @@ power_supply = P P.loc = src user.visible_message("[user] inserts [P] into [src].", "You insert [P] into [src].") - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) update_icon() update_held_icon() return diff --git a/code/modules/projectiles/guns/projectile.dm b/code/modules/projectiles/guns/projectile.dm index d0d321b299..7f93579230 100644 --- a/code/modules/projectiles/guns/projectile.dm +++ b/code/modules/projectiles/guns/projectile.dm @@ -89,7 +89,7 @@ return else chambered.loc = get_turf(src) - playsound(src.loc, "casing", 50, 1) + playsound(src, "casing", 50, 1) if(CYCLE_CASINGS) //cycle the casing back to the end. if(ammo_magazine) ammo_magazine.stored_ammo += chambered @@ -117,7 +117,7 @@ AM.loc = src ammo_magazine = AM user.visible_message("[user] inserts [AM] into [src].", "You insert [AM] into [src].") - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) if(SPEEDLOADER) if(loaded.len >= max_shells) to_chat(user, "[src] is full!") @@ -133,7 +133,7 @@ count++ if(count) user.visible_message("[user] reloads [src].", "You load [count] round\s into [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) AM.update_icon() else if(istype(A, /obj/item/ammo_casing)) var/obj/item/ammo_casing/C = A @@ -147,7 +147,7 @@ C.loc = src loaded.Insert(1, C) //add to the head of the list user.visible_message("[user] inserts \a [C] into [src].", "You insert \a [C] into [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else if(istype(A, /obj/item/weapon/storage)) var/obj/item/weapon/storage/storage = A @@ -174,7 +174,7 @@ if(ammo_magazine) user.put_in_hands(ammo_magazine) user.visible_message("[user] removes [ammo_magazine] from [src].", "You remove [ammo_magazine] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) ammo_magazine.update_icon() ammo_magazine = null else if(loaded.len) @@ -194,7 +194,7 @@ loaded.len-- user.put_in_hands(C) user.visible_message("[user] removes \a [C] from [src].", "You remove \a [C] from [src].") - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else to_chat(user, "[src] is empty.") update_icon() @@ -224,7 +224,7 @@ "[ammo_magazine] falls out and clatters on the floor!" ) if(auto_eject_sound) - playsound(user, auto_eject_sound, 40, 1) + playsound(src, auto_eject_sound, 40, 1) ammo_magazine.update_icon() ammo_magazine = null update_icon() //make sure to do this after unsetting ammo_magazine diff --git a/code/modules/projectiles/guns/projectile/boltaction.dm b/code/modules/projectiles/guns/projectile/boltaction.dm index 0555fb31de..15571e53c7 100644 --- a/code/modules/projectiles/guns/projectile/boltaction.dm +++ b/code/modules/projectiles/guns/projectile/boltaction.dm @@ -30,7 +30,7 @@ to_chat(user, "You begin to shorten the barrel and stock of \the [src].") if(loaded.len) afterattack(user, user) - playsound(user, fire_sound, 50, 1) + playsound(src, fire_sound, 50, 1) user.visible_message("[src] goes off!", "The rifle goes off in your face!") return if(do_after(user, 30)) diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index e407703498..3b9431c938 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -19,7 +19,7 @@ chamber_offset = 0 visible_message("\The [usr] spins the cylinder of \the [src]!", \ "You hear something metallic spin and click.") - playsound(src.loc, 'sound/weapons/revolver_spin.ogg', 100, 1) + playsound(src, 'sound/weapons/revolver_spin.ogg', 100, 1) loaded = shuffle(loaded) if(rand(1,max_shells) > loaded.len) chamber_offset = rand(0,max_shells - loaded.len) @@ -242,7 +242,7 @@ obj/item/weapon/gun/projectile/revolver/detective45/verb/rename_gun() chamber_offset = 0 visible_message("\The [usr] spins the cylinder of \the [src]!", \ "You hear something metallic spin and click.") - playsound(src.loc, 'sound/weapons/revolver_spin.ogg', 100, 1) + playsound(src, 'sound/weapons/revolver_spin.ogg', 100, 1) if(!flipped_firing) loaded = shuffle(loaded) if(rand(1,max_shells) > loaded.len) diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 9862b71b06..e091552859 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -29,7 +29,7 @@ recentpump = world.time /obj/item/weapon/gun/projectile/shotgun/pump/proc/pump(mob/M as mob) - playsound(M, action_sound, 60, 1) + playsound(src, action_sound, 60, 1) if(chambered)//We have a shell in the chamber chambered.loc = get_turf(src)//Eject casing diff --git a/code/modules/projectiles/guns/projectile/sniper.dm b/code/modules/projectiles/guns/projectile/sniper.dm index 343384f290..074917a5df 100644 --- a/code/modules/projectiles/guns/projectile/sniper.dm +++ b/code/modules/projectiles/guns/projectile/sniper.dm @@ -30,7 +30,7 @@ icon_state = "heavysniper" /obj/item/weapon/gun/projectile/heavysniper/attack_self(mob/user as mob) - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) bolt_open = !bolt_open if(bolt_open) if(chambered) diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index 47e9c5f6d6..8a03ec8347 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -792,4 +792,4 @@ var/volume = CLAMP(vol_by_damage() + 20, 0, 100) if(silenced) volume = 5 - playsound(get_turf(A), hitsound_wall, volume, 1, -1) + playsound(A, hitsound_wall, volume, 1, -1) diff --git a/code/modules/projectiles/projectile/energy.dm b/code/modules/projectiles/projectile/energy.dm index ca3f1c8f51..80fa2227c4 100644 --- a/code/modules/projectiles/projectile/energy.dm +++ b/code/modules/projectiles/projectile/energy.dm @@ -195,7 +195,7 @@ /obj/item/projectile/energy/plasmastun/proc/bang(var/mob/living/carbon/M) to_chat(M, "You hear a loud roar.") - playsound(M.loc, 'sound/effects/bang.ogg', 50, 1) + playsound(src, 'sound/effects/bang.ogg', 50, 1) var/ear_safety = 0 ear_safety = M.get_ear_protection() if(ear_safety == 1) diff --git a/code/modules/projectiles/projectile/hook.dm b/code/modules/projectiles/projectile/hook.dm index ad02dee8cf..ee5fd6c471 100644 --- a/code/modules/projectiles/projectile/hook.dm +++ b/code/modules/projectiles/projectile/hook.dm @@ -82,7 +82,7 @@ if(!(H.species.flags & NO_SLIP) && prob(50)) var/armor_check = H.run_armor_check(def_zone, "melee") H.apply_effect(3, WEAKEN, armor_check) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) if(armor_check < 60) visible_message("\The [src] has pushed [H]!") else @@ -91,19 +91,19 @@ else if(H.break_all_grabs(firer)) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) return for(var/obj/item/I in holding) if(I) H.drop_from_inventory(I) visible_message("\The [src] has disarmed [H]!") - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) return /obj/item/projectile/energy/hook/proc/perform_intent_unique(atom/target) - playsound(src.loc, impact_sound, 40, 1) + playsound(src, impact_sound, 40, 1) var/success = FALSE if(istype(target,/turf)) if(launcher_intent) @@ -148,7 +148,7 @@ var/message = pick(help_messages) if(message == "slaps") spawn(1) - playsound(loc, 'sound/effects/snap.ogg', 50, 1) + playsound(src, 'sound/effects/snap.ogg', 50, 1) visible_message("\The [src] [message] [target].") done_mob_unique = TRUE success = TRUE diff --git a/code/modules/projectiles/projectile/magnetic.dm b/code/modules/projectiles/projectile/magnetic.dm index 4c36476ddb..5c3b1f817b 100644 --- a/code/modules/projectiles/projectile/magnetic.dm +++ b/code/modules/projectiles/projectile/magnetic.dm @@ -137,7 +137,7 @@ /obj/item/projectile/bullet/magnetic/fuelrod/supermatter/on_hit(var/atom/target, var/blocked = 0, var/def_zone = null) //You cannot touch the supermatter without disentigrating. Assumedly, this is true for condensed rods of it flying at relativistic speeds. if(istype(target,/turf/simulated/wall) || istype(target,/mob/living)) target.visible_message("The [src] burns a perfect hole through \the [target] with a blinding flash!") - playsound(target.loc, 'sound/effects/teleport.ogg', 40, 0) + playsound(target, 'sound/effects/teleport.ogg', 40, 0) return ..(target, blocked, def_zone) /obj/item/projectile/bullet/magnetic/fuelrod/supermatter/check_penetrate() diff --git a/code/modules/projectiles/projectile/special.dm b/code/modules/projectiles/projectile/special.dm index ac039460cb..9c06241ecf 100644 --- a/code/modules/projectiles/projectile/special.dm +++ b/code/modules/projectiles/projectile/special.dm @@ -116,7 +116,7 @@ if(A) A.ex_act(2) - playsound(src.loc, 'sound/effects/meteorimpact.ogg', 40, 1) + playsound(src, 'sound/effects/meteorimpact.ogg', 40, 1) for(var/mob/M in range(10, src)) if(!M.stat && !istype(M, /mob/living/silicon/ai))\ diff --git a/code/modules/projectiles/targeting/targeting_overlay.dm b/code/modules/projectiles/targeting/targeting_overlay.dm index 9bce28831f..a7d069fad4 100644 --- a/code/modules/projectiles/targeting/targeting_overlay.dm +++ b/code/modules/projectiles/targeting/targeting_overlay.dm @@ -175,7 +175,7 @@ obj/aiming_overlay/proc/update_aiming_deferred() aiming_with = thing aiming_at = target if(istype(aiming_with, /obj/item/weapon/gun)) - playsound(get_turf(owner), 'sound/weapons/TargetOn.ogg', 50,1) + playsound(owner, 'sound/weapons/TargetOn.ogg', 50,1) forceMove(get_turf(target)) START_PROCESSING(SSobj, src) @@ -215,7 +215,7 @@ obj/aiming_overlay/proc/update_aiming_deferred() if(!aiming_with || !aiming_at) return if(istype(aiming_with, /obj/item/weapon/gun)) - playsound(get_turf(owner), 'sound/weapons/TargetOff.ogg', 50,1) + playsound(owner, 'sound/weapons/TargetOff.ogg', 50,1) if(!no_message) owner.visible_message("\The [owner] lowers \the [aiming_with].") diff --git a/code/modules/random_map/drop/droppod_doors.dm b/code/modules/random_map/drop/droppod_doors.dm index 7c7075f45f..c472a9f1f9 100644 --- a/code/modules/random_map/drop/droppod_doors.dm +++ b/code/modules/random_map/drop/droppod_doors.dm @@ -35,7 +35,7 @@ deployed = 1 visible_message("The explosive bolts on \the [src] detonate, throwing it open!") - playsound(src.loc, 'sound/effects/bang.ogg', 50, 1, 5) + playsound(src, 'sound/effects/bang.ogg', 50, 1, 5) // This is shit but it will do for the sake of testing. for(var/obj/structure/droppod_door/D in orange(1,src)) diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index e13dcbdb69..4b9a892881 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -548,7 +548,7 @@ if (!beaker || (beaker && beaker.reagents.total_volume >= beaker.reagents.maximum_volume)) return - playsound(src.loc, 'sound/machines/blender.ogg', 50, 1) + playsound(src, 'sound/machines/blender.ogg', 50, 1) inuse = 1 // Reset the machine. diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm index 60b126e286..d57b840584 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks_vr.dm @@ -104,6 +104,6 @@ /datum/reagent/nutriment/magicdust/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed) ..() - playsound(M.loc, 'sound/items/hooh.ogg', 50, 1, -1) + playsound(M, 'sound/items/hooh.ogg', 50, 1, -1) if(prob(5)) to_chat(M, "You feel like you've been gnomed...") \ No newline at end of file diff --git a/code/modules/reagents/Chemistry-Recipes_vr.dm b/code/modules/reagents/Chemistry-Recipes_vr.dm index 78e50c807b..7ab2aaecc4 100644 --- a/code/modules/reagents/Chemistry-Recipes_vr.dm +++ b/code/modules/reagents/Chemistry-Recipes_vr.dm @@ -161,7 +161,7 @@ var/list/borks = typesof(/obj/item/weapon/reagent_containers/food/snacks) - /obj/item/weapon/reagent_containers/food/snacks // BORK BORK BORK - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 100, 1) /* Removed at some point, unsure what to replace with for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null)) if(M:eyecheck() <= 0) @@ -191,7 +191,7 @@ for(var/mob/O in viewers(get_turf(holder.my_atom), null)) O.show_message(text("The solution begins to vibrate violently!"), 1) // It was at this moment, the Xenobiologist knew... he fucked up. sleep(30) - playsound(get_turf(holder.my_atom), 'sound/items/Welder2.ogg', 100, 1) + playsound(holder.my_atom, 'sound/items/Welder2.ogg', 100, 1) for(var/mob/O in viewers(get_turf(holder.my_atom), null)) O.show_message(text("The reaction begins to rapidly sizzle and swell outwards!"), 1) sleep(20) @@ -200,7 +200,7 @@ return if(fail_chance < 101) // 10% chance of it not working at all. - playsound(get_turf(holder.my_atom), 'sound/items/Welder.ogg', 100, 1) + playsound(holder.my_atom, 'sound/items/Welder.ogg', 100, 1) for(var/mob/O in viewers(get_turf(holder.my_atom), null)) O.show_message(text("The slime core fizzles disappointingly."), 1) return @@ -221,7 +221,7 @@ var/list/material = typesof(/obj/item/stack/material) - blocked - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 100, 1) /* Removed at some point, unsure what to replace with for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null)) if(M:eyecheck() <= 0) @@ -270,7 +270,7 @@ for(var/mob/O in viewers(get_turf(holder.my_atom), null)) O.show_message(text("The slime extract begins to vibrate violently!"), 1) sleep(50) - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 100, 1) for(var/mob/living/M in range (get_turf(holder.my_atom), 7)) M.bodytemperature -= 140 to_chat(M, " You suddenly feel a chill!") @@ -385,7 +385,7 @@ blocked += typesof(/mob/living/simple_mob/horror) var/list/voremobs = typesof(mob_path) - blocked // list of possible hostile mobs - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 100, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 100, 1) /* Removed at some point, unsure what to replace with for(var/mob/living/carbon/human/M in viewers(get_turf(holder.my_atom), null)) if(M:eyecheck() <= 0) diff --git a/code/modules/reagents/dispenser/dispenser2.dm b/code/modules/reagents/dispenser/dispenser2.dm index 69577da357..b859e419bd 100644 --- a/code/modules/reagents/dispenser/dispenser2.dm +++ b/code/modules/reagents/dispenser/dispenser2.dm @@ -160,7 +160,7 @@ var/label = href_list["dispense"] if(cartridges[label] && container && container.is_open_container()) var/obj/item/weapon/reagent_containers/chem_disp_cartridge/C = cartridges[label] - playsound(src.loc, 'sound/machines/reagent_dispense.ogg', 25, 1) + playsound(src, 'sound/machines/reagent_dispense.ogg', 25, 1) C.reagents.trans_to(container, amount) else if(href_list["ejectBeaker"]) diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index d1a63ac41b..a08ea1b19b 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -110,7 +110,7 @@ if(href_list["reagent"]) var/t = reagent_ids.Find(href_list["reagent"]) if(t) - playsound(loc, 'sound/effects/pop.ogg', 50, 0) + playsound(src, 'sound/effects/pop.ogg', 50, 0) mode = t var/datum/reagent/R = SSchemistry.chemical_reagents[reagent_ids[mode]] to_chat(usr, "Synthesizer is now producing '[R.name]'.") diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index 44b2af6a5d..6d4ab24605 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -296,7 +296,7 @@ else reagents.trans_to_obj(D, 5) to_chat(user, "You wet \the [D] in \the [src].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) else return ..() @@ -337,7 +337,7 @@ obj/item/weapon/reagent_containers/glass/bucket/wood else reagents.trans_to_obj(D, 5) to_chat(user, "You wet \the [D] in \the [src].") - playsound(loc, 'sound/effects/slosh.ogg', 25, 1) + playsound(src, 'sound/effects/slosh.ogg', 25, 1) return else return ..() diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index 0963f45ba9..bb70781c7e 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -105,7 +105,7 @@ loaded_vial = null to_chat(user, "You remove the vial from the [src].") update_icon() - playsound(src.loc, 'sound/weapons/flipblade.ogg', 50, 1) + playsound(src, 'sound/weapons/flipblade.ogg', 50, 1) return ..() else @@ -127,7 +127,7 @@ loaded_vial.reagents.trans_to_holder(reagents,volume) user.visible_message("[user] has loaded [W] into \the [src].","You have loaded [W] into \the [src].") update_icon() - playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) + playsound(src, 'sound/weapons/empty.ogg', 50, 1) else to_chat(user, "\The [src] already has a vial.") else diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 1aece5b845..2a89067e8a 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -55,7 +55,7 @@ return /obj/item/weapon/reagent_containers/spray/proc/Spray_at(atom/A as mob|obj, mob/user as mob, proximity) - playsound(src.loc, 'sound/effects/spray2.ogg', 50, 1, -6) + playsound(src, 'sound/effects/spray2.ogg', 50, 1, -6) if (A.density && proximity) A.visible_message("[usr] sprays [A] with [src].") reagents.splash(A, amount_per_transfer_from_this) diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm index 8b92a05f42..7c0637c0f0 100644 --- a/code/modules/reagents/reagent_dispenser.dm +++ b/code/modules/reagents/reagent_dispenser.dm @@ -265,7 +265,7 @@ if(I.is_wrench()) src.add_fingerprint(user) if(bottle) - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) if(do_after(user, 20) && bottle) to_chat(user, "You unfasten the jug.") var/obj/item/weapon/reagent_containers/glass/cooler_bottle/G = new /obj/item/weapon/reagent_containers/glass/cooler_bottle( src.loc ) @@ -284,12 +284,12 @@ if(!src) return to_chat(user, "You [anchored? "un" : ""]secured \the [src]!") anchored = !anchored - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) return if(I.is_screwdriver()) if(cupholder) - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You take the cup dispenser off.") new /obj/item/stack/material/plastic( src.loc ) if(cups) @@ -300,7 +300,7 @@ update_icon() return if(!bottle && !cupholder) - playsound(loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You start taking the water-cooler apart.") if(do_after(user, 20 * I.toolspeed) && !bottle && !cupholder) to_chat(user, "You take the water-cooler apart.") @@ -334,7 +334,7 @@ var/obj/item/stack/material/plastic/P = I src.add_fingerprint(user) to_chat(user, "You start to attach a cup dispenser onto the water-cooler.") - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 20) && !cupholder && anchored) if (P.use(1)) to_chat(user, "You attach a cup dispenser onto the water-cooler.") diff --git a/code/modules/recycling/disposal-construction.dm b/code/modules/recycling/disposal-construction.dm index eccc71d33c..62c9faec5d 100644 --- a/code/modules/recycling/disposal-construction.dm +++ b/code/modules/recycling/disposal-construction.dm @@ -281,7 +281,7 @@ else density = 1 // We don't want disposal bins or outlets to go density 0 to_chat(user, "You attach the [nicetype] to the underfloor.") - playsound(loc, I.usesound, 100, 1) + playsound(src, I.usesound, 100, 1) update() // weldingtool: convert to real pipe diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index f3dd0fa384..e8eaa809fe 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -639,7 +639,7 @@ for (var/mob/M in hearers(src.loc.loc)) to_chat(M, "CLONG, clong!") - playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0) + playsound(src, 'sound/effects/clang.ogg', 50, 0, 0) // called to vent all gas in holder to a location proc/vent_gas(var/atom/location) @@ -1169,7 +1169,7 @@ if(O.currTag)// Tag set sort_tag = O.currTag - playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1) + playsound(src, 'sound/machines/twobeep.ogg', 100, 1) to_chat(user, "Changed tag to '[sort_tag]'.") updatename() updatedesc() @@ -1237,7 +1237,7 @@ if(O.currTag)// Tag set sortType = O.currTag - playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1) + playsound(src, 'sound/machines/twobeep.ogg', 100, 1) to_chat(user, "Changed filter to '[sortType]'.") updatename() updatedesc() diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 343650f67d..159ce9ed4a 100755 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -18,7 +18,7 @@ unwrap() proc/unwrap() - playsound(loc, 'sound/items/package_unwrap.ogg', 50, 1) + playsound(src, 'sound/items/package_unwrap.ogg', 50, 1) // Destroy will drop our wrapped object on the turf, so let it. qdel(src) @@ -33,7 +33,7 @@ update_icon() else src.sortTag = O.currTag - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) else to_chat(user, "The package is already labeled for [O.currTag].") else @@ -143,7 +143,7 @@ update_icon() else src.sortTag = O.currTag - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(src, 'sound/machines/twobeep.ogg', 50, 1) else to_chat(user, "The package is already labeled for [O.currTag].") else @@ -273,7 +273,7 @@ user.visible_message("\The [user] wraps \a [target] with \a [src].",\ "You wrap \the [target], leaving [amount] units of paper on \the [src].",\ "You hear someone taping paper around a small object.") - playsound(loc, 'sound/items/package_wrap.ogg', 50, 1) + playsound(src, 'sound/items/package_wrap.ogg', 50, 1) else if (istype(target, /obj/structure/closet/crate)) var/obj/structure/closet/crate/O = target if (src.amount > 3 && !O.opened) @@ -285,7 +285,7 @@ user.visible_message("\The [user] wraps \a [target] with \a [src].",\ "You wrap \the [target], leaving [amount] units of paper on \the [src].",\ "You hear someone taping paper around a large object.") - playsound(loc, 'sound/items/package_wrap.ogg', 50, 1) + playsound(src, 'sound/items/package_wrap.ogg', 50, 1) else if(src.amount < 3) to_chat(user, "You need more paper.") else if (istype (target, /obj/structure/closet)) @@ -299,7 +299,7 @@ user.visible_message("\The [user] wraps \a [target] with \a [src].",\ "You wrap \the [target], leaving [amount] units of paper on \the [src].",\ "You hear someone taping paper around a large object.") - playsound(loc, 'sound/items/package_wrap.ogg', 50, 1) + playsound(src, 'sound/items/package_wrap.ogg', 50, 1) else if(src.amount < 3) to_chat(user, "You need more paper.") else @@ -432,18 +432,18 @@ if(I.is_screwdriver()) if(c_mode==0) c_mode=1 - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You remove the screws around the power connection.") return else if(c_mode==1) c_mode=0 - playsound(src.loc, I.usesound, 50, 1) + playsound(src, I.usesound, 50, 1) to_chat(user, "You attach the screws around the power connection.") return else if(istype(I, /obj/item/weapon/weldingtool) && c_mode==1) var/obj/item/weapon/weldingtool/W = I if(W.remove_fuel(0,user)) - playsound(src.loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You start slicing the floorweld off the delivery chute.") if(do_after(user,20 * W.toolspeed)) if(!src || !W.isOn()) return diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm index ebe09e3a98..bbcda60927 100644 --- a/code/modules/research/message_server.dm +++ b/code/modules/research/message_server.dm @@ -129,12 +129,12 @@ var/global/list/obj/machinery/message_server/message_servers = list() switch(priority) if(2) if(!Console.silent) - playsound(Console.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(Console, 'sound/machines/twobeep.ogg', 50, 1) Console.audible_message(text("[bicon(Console)] *The Requests Console beeps: 'PRIORITY Alert in [sender]'"),,5) Console.message_log += "High Priority message from [sender]
[authmsg]" else if(!Console.silent) - playsound(Console.loc, 'sound/machines/twobeep.ogg', 50, 1) + playsound(Console, 'sound/machines/twobeep.ogg', 50, 1) Console.audible_message(text("[bicon(Console)] *The Requests Console beeps: 'Message from [sender]'"),,4) Console.message_log += "Message from [sender]
[authmsg]" Console.set_light(2) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index db70d08863..41510d0545 100755 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -147,7 +147,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, /obj/machinery/computer/rdconsole/emp_act(var/remaining_charges, var/mob/user) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You you disable the security protocols.") return 1 diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 4776646105..075bd3d4d1 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -290,7 +290,7 @@ /obj/machinery/computer/rdservercontrol/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) + playsound(src, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 to_chat(user, "You you disable the security protocols.") src.updateUsrDialog() diff --git a/code/modules/resleeving/machines.dm b/code/modules/resleeving/machines.dm index c2b2968a97..d650593114 100644 --- a/code/modules/resleeving/machines.dm +++ b/code/modules/resleeving/machines.dm @@ -147,7 +147,7 @@ return else if(((occupant.health == occupant.maxHealth)) && (!eject_wait)) - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) audible_message("\The [src] signals that the growing process is complete.") connected_message("Growing Process Complete.") locked = 0 diff --git a/code/modules/shieldgen/directional_shield.dm b/code/modules/shieldgen/directional_shield.dm index 26963a1227..d3d943297a 100644 --- a/code/modules/shieldgen/directional_shield.dm +++ b/code/modules/shieldgen/directional_shield.dm @@ -67,7 +67,7 @@ /obj/effect/directional_shield/bullet_act(var/obj/item/projectile/P) adjust_health(-P.get_structure_damage()) P.on_hit() - playsound(get_turf(src), 'sound/effects/EMPulse.ogg', 75, 1) + playsound(src, 'sound/effects/EMPulse.ogg', 75, 1) // All the shields tied to their projector are one 'unit', and don't have individualized health values like most other shields. /obj/effect/directional_shield/proc/adjust_health(amount) @@ -144,12 +144,12 @@ destroy_shields() var/turf/T = get_turf(src) T.visible_message("\The [src] overloads and the shield vanishes!") - playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 75, 0) + playsound(src, 'sound/machines/defib_failed.ogg', 75, 0) else if(shield_health < max_shield_health / 4) // Play a more urgent sounding beep if it's at 25% health. - playsound(get_turf(src), 'sound/machines/defib_success.ogg', 75, 0) + playsound(src, 'sound/machines/defib_success.ogg', 75, 0) else - playsound(get_turf(src), 'sound/machines/defib_SafetyOn.ogg', 75, 0) + playsound(src, 'sound/machines/defib_SafetyOn.ogg', 75, 0) last_damaged_time = world.time update_shield_colors() @@ -203,9 +203,9 @@ if(always_on && !active) // Make shields as soon as possible if this is set. create_shields() if(shield_health == max_shield_health) - playsound(get_turf(src), 'sound/machines/defib_ready.ogg', 75, 0) + playsound(src, 'sound/machines/defib_ready.ogg', 75, 0) else - playsound(get_turf(src), 'sound/machines/defib_safetyOff.ogg', 75, 0) + playsound(src, 'sound/machines/defib_safetyOff.ogg', 75, 0) /obj/item/shield_projector/examine(var/mob/user) . = ..() diff --git a/code/modules/shieldgen/emergency_shield.dm b/code/modules/shieldgen/emergency_shield.dm index 21e244cc36..4920ffb513 100644 --- a/code/modules/shieldgen/emergency_shield.dm +++ b/code/modules/shieldgen/emergency_shield.dm @@ -48,7 +48,7 @@ src.health -= aforce //Play a fitting sound - playsound(src.loc, 'sound/effects/EMPulse.ogg', 75, 1) + playsound(src, 'sound/effects/EMPulse.ogg', 75, 1) check_failure() set_opacity(1) @@ -105,7 +105,7 @@ src.health -= tforce //This seemed to be the best sound for hitting a force field. - playsound(src.loc, 'sound/effects/EMPulse.ogg', 100, 1) + playsound(src, 'sound/effects/EMPulse.ogg', 100, 1) check_failure() diff --git a/code/modules/shuttles/shuttle_emergency.dm b/code/modules/shuttles/shuttle_emergency.dm index 6c584e1762..b6302a50d1 100644 --- a/code/modules/shuttles/shuttle_emergency.dm +++ b/code/modules/shuttles/shuttle_emergency.dm @@ -146,16 +146,16 @@ if (dna_hash in authorized) src.visible_message("\The [src] buzzes. That ID has already been scanned.") - playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 0) return 0 if (!(access_heads in access)) src.visible_message("\The [src] buzzes, rejecting [ident].") - playsound(src.loc, 'sound/machines/deniedbeep.ogg', 50, 0) + playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0) return 0 src.visible_message("\The [src] beeps as it scans [ident].") - playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0) + playsound(src, 'sound/machines/twobeep.ogg', 50, 0) authorized[dna_hash] = auth_name if (req_authorizations - authorized.len) to_chat(world, "Alert: [req_authorizations - authorized.len] authorization\s needed to override the shuttle autopilot.") //TODO- Belsima, make this an announcement instead of magic. diff --git a/code/modules/spells/aoe_turf/conjure/conjure.dm b/code/modules/spells/aoe_turf/conjure/conjure.dm index 9e02cf9513..e9874ccc12 100644 --- a/code/modules/spells/aoe_turf/conjure/conjure.dm +++ b/code/modules/spells/aoe_turf/conjure/conjure.dm @@ -25,7 +25,7 @@ How they spawn stuff is decided by behaviour vars, which are explained below cast_sound = 'sound/items/welder.ogg' /spell/aoe_turf/conjure/cast(list/targets, mob/user) - playsound(get_turf(user), cast_sound, 50, 1) + playsound(user, cast_sound, 50, 1) for(var/i=1,i <= summon_amt,i++) if(!targets.len) diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index 624d94443c..276af95ce8 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -243,6 +243,6 @@ if (prob(fail_prob)) var/obj/item/weapon/implant/imp = affected.implants[1] user.visible_message(" Something beeps inside [target]'s [affected.name]!") - playsound(imp.loc, 'sound/items/countdown.ogg', 75, 1, -3) + playsound(imp, 'sound/items/countdown.ogg', 75, 1, -3) spawn(25) imp.activate() diff --git a/code/modules/tables/interactions.dm b/code/modules/tables/interactions.dm index 1455fc0192..6cbf77cd99 100644 --- a/code/modules/tables/interactions.dm +++ b/code/modules/tables/interactions.dm @@ -89,9 +89,9 @@ M.apply_damage(8,def_zone = BP_HEAD) visible_message("[G.assailant] slams [G.affecting]'s face against \the [src]!") if(material) - playsound(loc, material.tableslam_noise, 50, 1) + playsound(src, material.tableslam_noise, 50, 1) else - playsound(loc, 'sound/weapons/tablehit1.ogg', 50, 1) + playsound(src, 'sound/weapons/tablehit1.ogg', 50, 1) var/list/L = take_damage(rand(1,5)) // Shards. Extra damage, plus potentially the fact YOU LITERALLY HAVE A PIECE OF GLASS/METAL/WHATEVER IN YOUR FACE for(var/obj/item/weapon/material/shard/S in L) @@ -122,8 +122,8 @@ var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src.loc) spark_system.start() - playsound(src.loc, 'sound/weapons/blade1.ogg', 50, 1) - playsound(src.loc, "sparks", 50, 1) + playsound(src, 'sound/weapons/blade1.ogg', 50, 1) + playsound(src, "sparks", 50, 1) user.visible_message("\The [src] was sliced apart by [user]!") break_to_parts() return diff --git a/code/modules/tables/tables.dm b/code/modules/tables/tables.dm index 249c84be73..80ab93043b 100644 --- a/code/modules/tables/tables.dm +++ b/code/modules/tables/tables.dm @@ -263,7 +263,7 @@ var/list/table_icon_cache = list() user.visible_message("\The [user] begins removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place.", "You begin removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place.") if(sound) - playsound(src.loc, sound, 50, 1) + playsound(src, sound, 50, 1) if(!do_after(user, delay)) manipulating = 0 return M diff --git a/code/modules/telesci/quantum_pad.dm b/code/modules/telesci/quantum_pad.dm index 91b5c19dc2..0588f802b7 100644 --- a/code/modules/telesci/quantum_pad.dm +++ b/code/modules/telesci/quantum_pad.dm @@ -135,7 +135,7 @@ /obj/machinery/power/quantumpad/proc/doteleport(mob/user) if(!linked_pad) return - playsound(get_turf(src), 'sound/weapons/flash.ogg', 25, 1) + playsound(src, 'sound/weapons/flash.ogg', 25, 1) teleporting = 1 spawn(teleport_speed) @@ -163,9 +163,9 @@ linked_pad.sparks() flick("qpad-beam", src) - playsound(get_turf(src), 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) + playsound(src, 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) flick("qpad-beam", linked_pad) - playsound(get_turf(linked_pad), 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) + playsound(linked_pad, 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) for(var/atom/movable/ROI in get_turf(src)) // if is anchored, don't let through if(ROI.anchored) diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm index 9f1a34760e..1119e565ef 100644 --- a/code/modules/telesci/telesci_computer.dm +++ b/code/modules/telesci/telesci_computer.dm @@ -195,7 +195,7 @@ flick("pad-beam", telepad) if(spawn_time > 15) // 1.5 seconds - playsound(telepad.loc, 'sound/weapons/flash.ogg', 50, 1) + playsound(telepad, 'sound/weapons/flash.ogg', 50, 1) // Wait depending on the time the projectile took to get there teleporting = 1 temp_msg = "Powering up bluespace crystals.
Please wait." @@ -241,7 +241,7 @@ dest = target flick("pad-beam", telepad) - playsound(telepad.loc, 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) + playsound(telepad, 'sound/weapons/emitter2.ogg', 25, 1, extrarange = 3, falloff = 5) for(var/atom/movable/ROI in source) // if is anchored, don't let through if(ROI.anchored) diff --git a/code/modules/turbolift/turbolift.dm b/code/modules/turbolift/turbolift.dm index db1ec9805e..cc2739d028 100644 --- a/code/modules/turbolift/turbolift.dm +++ b/code/modules/turbolift/turbolift.dm @@ -159,7 +159,7 @@ if(!fire_mode) open_doors() control_panel_interior.audible_message("\The [current_floor.ext_panel] buzzes loudly.") - playsound(control_panel_interior.loc, "sound/machines/buzz-two.ogg", 50, 1) + playsound(control_panel_interior, "sound/machines/buzz-two.ogg", 50, 1) return 0 doors_closing = 0 // The doors weren't open, so they are done closing @@ -168,7 +168,7 @@ if(target_floor == current_floor) - playsound(control_panel_interior.loc, origin.arrival_sound, 50, 1) + playsound(control_panel_interior, origin.arrival_sound, 50, 1) target_floor.arrived(src) target_floor = null diff --git a/code/modules/turbolift/turbolift_console.dm b/code/modules/turbolift/turbolift_console.dm index 71579d5471..d69a9b0a16 100644 --- a/code/modules/turbolift/turbolift_console.dm +++ b/code/modules/turbolift/turbolift_console.dm @@ -72,7 +72,7 @@ var/obj/item/weapon/card/id/id = W.GetID() if(istype(id)) if(!check_access(id)) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 0) return lift.priority_mode() if(floor == lift.current_floor) @@ -86,7 +86,7 @@ if(!..()) return if(lift.fire_mode || lift.priority_mode) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 0) return light_up() pressed(user) @@ -126,12 +126,12 @@ var/obj/item/weapon/card/id/id = W.GetID() if(istype(id)) if(!check_access(id)) - playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0) + playsound(src, 'sound/machines/buzz-two.ogg', 50, 0) return lift.update_fire_mode(!lift.fire_mode) if(lift.fire_mode) audible_message("Firefighter Mode Activated. Door safeties disabled. Manual control engaged.") - playsound(src.loc, 'sound/machines/airalarm.ogg', 25, 0, 4) + playsound(src, 'sound/machines/airalarm.ogg', 25, 0, 4) else audible_message("Firefighter Mode Deactivated. Door safeties enabled. Automatic control engaged.") return diff --git a/code/modules/vehicles/construction.dm b/code/modules/vehicles/construction.dm index 49021d5fd0..bb0ca7cb0b 100644 --- a/code/modules/vehicles/construction.dm +++ b/code/modules/vehicles/construction.dm @@ -130,10 +130,10 @@ if(7) if(W.is_wrench() || W.is_screwdriver()) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You begin your finishing touches on \the [src].") if(do_after(user, 20) && build_stage == 7) - playsound(loc, W.usesound, 30, 1) + playsound(src, W.usesound, 30, 1) var/obj/vehicle/train/engine/quadbike/built/product = new(src) to_chat(user, "You finish \the [product]") product.loc = get_turf(src) @@ -178,7 +178,7 @@ if(2) if(W.is_screwdriver()) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You close up \the [src].") var/obj/vehicle/train/trolley/trailer/product = new(src) product.loc = get_turf(src) @@ -259,10 +259,10 @@ if(6) if(W.is_wrench() || W.is_screwdriver()) - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You begin your finishing touches on \the [src].") if(do_after(user, 20) && build_stage == 6) - playsound(loc, W.usesound, 30, 1) + playsound(src, W.usesound, 30, 1) var/obj/vehicle/bike/built/product = new(src) to_chat(user, "You finish \the [product]") product.loc = get_turf(src) diff --git a/code/modules/virus2/centrifuge.dm b/code/modules/virus2/centrifuge.dm index fddfb04441..521b74544d 100644 --- a/code/modules/virus2/centrifuge.dm +++ b/code/modules/virus2/centrifuge.dm @@ -138,7 +138,7 @@ delay = delay/2 curing = round(delay) - playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1) + playsound(src, 'sound/machines/juicer.ogg', 50, 1) update_icon() return 1 diff --git a/code/modules/vore/eating/silicon_vr.dm b/code/modules/vore/eating/silicon_vr.dm index 37ed30e8c6..5f128fcd68 100644 --- a/code/modules/vore/eating/silicon_vr.dm +++ b/code/modules/vore/eating/silicon_vr.dm @@ -21,7 +21,7 @@ /obj/effect/overlay/aiholo/proc/get_prey(var/mob/living/prey) if(bellied) return - playsound('sound/effects/stealthoff.ogg',50,0) + playsound(src, 'sound/effects/stealthoff.ogg',50,0) bellied = prey prey.forceMove(src) visible_message("[src] entirely engulfs [prey] in hardlight holograms!") @@ -34,7 +34,7 @@ /obj/effect/overlay/aiholo/proc/drop_prey() if(!bellied) return - playsound('sound/effects/stealthoff.ogg',50,0) + playsound(src, 'sound/effects/stealthoff.ogg',50,0) bellied.forceMove(get_turf(src)) bellied.Weaken(2) bellied.visible_message("[bellied] flops out of [src].","You flop out of [src].","You hear a thud.") diff --git a/code/modules/vore/fluffstuff/custom_items_vr.dm b/code/modules/vore/fluffstuff/custom_items_vr.dm index 8db5a1d9e9..8482c919b8 100644 --- a/code/modules/vore/fluffstuff/custom_items_vr.dm +++ b/code/modules/vore/fluffstuff/custom_items_vr.dm @@ -101,7 +101,7 @@ if(user.ckey != owner_ckey) //ERROR: UNAUTHORIZED USER to_chat(user, "You probably shouldn't mess with all these strange tools and parts...") //give them a slightly fluffy explanation as to why it didn't work return - playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1) + playsound(src, 'sound/items/Screwdriver.ogg', 100, 1) var/obj/N = new to_type(O.loc) user.visible_message("[user] opens \the [src] and modifies \the [O] into \the [N].","You open \the [src] and modify \the [O] into \the [N].") @@ -179,7 +179,7 @@ if(default_parry_check(user, attacker, damage_source) && prob(75)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 @@ -192,7 +192,7 @@ if(default_parry_check(user, attacker, damage_source) && prob(75)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 @@ -392,7 +392,7 @@ if(istype(O,/obj/item/weapon/card/id) && O.icon_state != new_icon) //O.icon = icon // just in case we're using custom sprite paths with fluff items. O.icon_state = new_icon // Changes the icon without changing the access. - playsound(user.loc, 'sound/items/polaroid2.ogg', 100, 1) + playsound(src, 'sound/items/polaroid2.ogg', 100, 1) user.visible_message(" [user] reprints their ID.") qdel(src) else if(O.icon_state == new_icon) @@ -658,7 +658,7 @@ /obj/item/weapon/cane/wand/attack_self(mob/user) if(last_use + cooldown >= world.time) return - playsound(loc, 'sound/weapons/sparkle.ogg', 50, 1) + playsound(src, 'sound/weapons/sparkle.ogg', 50, 1) user.visible_message(" [user] swings their wand.") var/datum/effect/effect/system/spark_spread/s = new s.set_up(3, 1, src) @@ -680,7 +680,7 @@ O.icon = new_icon O.icon_state = new_icon_state // Changes the icon without changing the access. O.desc = new_desc - playsound(user.loc, 'sound/items/polaroid2.ogg', 100, 1) + playsound(src, 'sound/items/polaroid2.ogg', 100, 1) user.visible_message(" [user] reprints their ID.") qdel(src) else if(O.icon_state == new_icon) @@ -1565,7 +1565,7 @@ /obj/item/weapon/melee/baton/fluff/stunstaff/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(wielded && default_parry_check(user, attacker, damage_source) && prob(30)) user.visible_message("\The [user] parries [attack_text] with \the [src]!") - playsound(user.loc, 'sound/weapons/punchmiss.ogg', 50, 1) + playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1) return 1 return 0 @@ -1589,9 +1589,9 @@ status = !status to_chat(user, "[src] is now [status ? "on" : "off"].") if(status == 0) - playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) + playsound(src, 'sound/weapons/saberoff.ogg', 50, 1) else - playsound(user, 'sound/weapons/saberon.ogg', 50, 1) + playsound(src, 'sound/weapons/saberon.ogg', 50, 1) else status = 0 to_chat(user, "[src] is out of charge.") @@ -1639,12 +1639,12 @@ sharp = 1 edge = 1 w_class = active_w_class - playsound(user, 'sound/weapons/sparkle.ogg', 50, 1) + playsound(src, 'sound/weapons/sparkle.ogg', 50, 1) /obj/item/weapon/melee/fluffstuff/proc/deactivate(mob/living/user) if(!active) return - playsound(user, 'sound/weapons/sparkle.ogg', 50, 1) + playsound(src, 'sound/weapons/sparkle.ogg', 50, 1) active = 0 embed_chance = initial(embed_chance) force = initial(force) diff --git a/code/modules/vore/weight/fitness_machines_vr.dm b/code/modules/vore/weight/fitness_machines_vr.dm index df828e8eef..e9125b26d8 100644 --- a/code/modules/vore/weight/fitness_machines_vr.dm +++ b/code/modules/vore/weight/fitness_machines_vr.dm @@ -26,7 +26,7 @@ var/message = pick(messages) to_chat(user, "[message].") for(var/s in workout_sounds) - playsound(loc, s, 50, 1) + playsound(src, s, 50, 1) /obj/machinery/fitness/punching_bag name = "punching bag" @@ -59,7 +59,7 @@ add_fingerprint(user) user.visible_message("[user] has [anchored ? "un" : ""]secured \the [src].", "You [anchored ? "un" : ""]secure \the [src].") anchored = !anchored - playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) + playsound(src, 'sound/items/Ratchet.ogg', 50, 1) return /obj/machinery/fitness/heavy/attack_hand(mob/living/user) diff --git a/code/modules/xenoarcheaology/effects/vampire.dm b/code/modules/xenoarcheaology/effects/vampire.dm index ee75ea5ba1..cf0ae9a246 100644 --- a/code/modules/xenoarcheaology/effects/vampire.dm +++ b/code/modules/xenoarcheaology/effects/vampire.dm @@ -12,7 +12,7 @@ /datum/artifact_effect/vampire/proc/bloodcall(var/mob/living/carbon/human/M) last_bloodcall = world.time if(istype(M)) - playsound(holder.loc, pick('sound/hallucinations/wail.ogg','sound/hallucinations/veryfar_noise.ogg','sound/hallucinations/far_noise.ogg'), 50, 1, -3) + playsound(holder, pick('sound/hallucinations/wail.ogg','sound/hallucinations/veryfar_noise.ogg','sound/hallucinations/far_noise.ogg'), 50, 1, -3) var/target = pick(M.organs_by_name) M.apply_damage(rand(5, 10), SEARING, target) @@ -54,7 +54,7 @@ charges += 0.25 else charges += 1 - playsound(holder.loc, 'sound/effects/splat.ogg', 50, 1, -3) + playsound(holder, 'sound/effects/splat.ogg', 50, 1, -3) qdel(B) @@ -68,7 +68,7 @@ charges -= 1 var/spawn_type = pick(/mob/living/simple_mob/animal/space/bats, /mob/living/simple_mob/creature, /mob/living/simple_mob/faithless) new spawn_type(get_turf(pick(view(1,T)))) - playsound(holder.loc, pick('sound/hallucinations/growl1.ogg','sound/hallucinations/growl2.ogg','sound/hallucinations/growl3.ogg'), 50, 1, -3) + playsound(holder, pick('sound/hallucinations/growl1.ogg','sound/hallucinations/growl2.ogg','sound/hallucinations/growl3.ogg'), 50, 1, -3) if(charges >= 1 && nearby_mobs.len && prob(15 * nearby_mobs.len)) var/mob/living/L = pick(nearby_mobs) diff --git a/code/modules/xenoarcheaology/finds/special.dm b/code/modules/xenoarcheaology/finds/special.dm index 3ed9ce38e8..93bfa10966 100644 --- a/code/modules/xenoarcheaology/finds/special.dm +++ b/code/modules/xenoarcheaology/finds/special.dm @@ -77,7 +77,7 @@ charges += 0.25 else charges += 1 - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1, -3) + playsound(src, 'sound/effects/splat.ogg', 50, 1, -3) //use up stored charges if(charges >= 10) @@ -89,12 +89,12 @@ charges -= 1 var/spawn_type = pick(/mob/living/simple_mob/creature) new spawn_type(pick(view(1,src))) - playsound(src.loc, pick('sound/hallucinations/growl1.ogg','sound/hallucinations/growl2.ogg','sound/hallucinations/growl3.ogg'), 50, 1, -3) + playsound(src, pick('sound/hallucinations/growl1.ogg','sound/hallucinations/growl2.ogg','sound/hallucinations/growl3.ogg'), 50, 1, -3) if(charges >= 1) if(shadow_wights.len < 5 && prob(5)) shadow_wights.Add(new /obj/effect/shadow_wight(src.loc)) - playsound(src.loc, 'sound/effects/ghost.ogg', 50, 1, -3) + playsound(src, 'sound/effects/ghost.ogg', 50, 1, -3) charges -= 0.1 if(charges >= 0.1) @@ -124,7 +124,7 @@ /obj/item/weapon/vampiric/proc/bloodcall(var/mob/living/carbon/human/M) last_bloodcall = world.time if(istype(M)) - playsound(src.loc, pick('sound/hallucinations/wail.ogg','sound/hallucinations/veryfar_noise.ogg','sound/hallucinations/far_noise.ogg'), 50, 1, -3) + playsound(src, pick('sound/hallucinations/wail.ogg','sound/hallucinations/veryfar_noise.ogg','sound/hallucinations/far_noise.ogg'), 50, 1, -3) nearby_mobs.Add(M) var/target = pick(M.organs_by_name) @@ -180,7 +180,7 @@ src.loc = get_turf(pick(orange(1,src))) var/mob/living/carbon/M = locate() in src.loc if(M) - playsound(src.loc, pick('sound/hallucinations/behind_you1.ogg',\ + playsound(src, pick('sound/hallucinations/behind_you1.ogg',\ 'sound/hallucinations/behind_you2.ogg',\ 'sound/hallucinations/i_see_you1.ogg',\ 'sound/hallucinations/i_see_you2.ogg',\ diff --git a/code/modules/xenoarcheaology/tools/coolant_tank.dm b/code/modules/xenoarcheaology/tools/coolant_tank.dm index 9f5172b3de..2975cf0749 100644 --- a/code/modules/xenoarcheaology/tools/coolant_tank.dm +++ b/code/modules/xenoarcheaology/tools/coolant_tank.dm @@ -21,7 +21,7 @@ var/datum/effect/effect/system/smoke_spread/S = new /datum/effect/effect/system/smoke_spread S.set_up(5, 0, src.loc) - playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(src, 'sound/effects/smoke.ogg', 50, 1, -3) spawn(0) S.start() diff --git a/code/modules/xenoarcheaology/tools/geosample_scanner.dm b/code/modules/xenoarcheaology/tools/geosample_scanner.dm index c5e5c029fd..60de4ca494 100644 --- a/code/modules/xenoarcheaology/tools/geosample_scanner.dm +++ b/code/modules/xenoarcheaology/tools/geosample_scanner.dm @@ -244,7 +244,7 @@ scanner_temperature = max(scanner_temperature - 5 - 10 * rand(), 0) if(prob(0.75)) src.visible_message("[bicon(src)] [pick("plinks","hisses")][pick(" quietly"," softly"," sadly"," plaintively")].", 2) - playsound(loc, 'sound/effects/ding.ogg', 25) + playsound(src, 'sound/effects/ding.ogg', 25) last_process_worldtime = world.time /obj/machinery/radiocarbon_spectrometer/proc/stop_scanning() diff --git a/code/modules/xenoarcheaology/tools/suspension_generator.dm b/code/modules/xenoarcheaology/tools/suspension_generator.dm index 9ab39467d3..f4a60f1bfd 100644 --- a/code/modules/xenoarcheaology/tools/suspension_generator.dm +++ b/code/modules/xenoarcheaology/tools/suspension_generator.dm @@ -133,7 +133,7 @@ anchored = 0 else anchored = 1 - playsound(loc, W.usesound, 50, 1) + playsound(src, W.usesound, 50, 1) to_chat(user, "You wrench the stabilising legs [anchored ? "into place" : "up against the body"].") if(anchored) desc = "It is resting securely on four stubby legs." diff --git a/code/modules/xenobio/items/extracts.dm b/code/modules/xenobio/items/extracts.dm index fddbb13a5e..6368f68e15 100644 --- a/code/modules/xenobio/items/extracts.dm +++ b/code/modules/xenobio/items/extracts.dm @@ -323,7 +323,7 @@ /datum/chemical_reaction/slime/orange_fire/on_reaction(var/datum/reagents/holder) log_and_message_admins("Orange extract reaction (fire) has been activated in [get_area(holder.my_atom)]. Last fingerprints: [holder.my_atom.fingerprintslast]") holder.my_atom.visible_message("\The [src] begins to vibrate violently!") - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 75, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 75, 1) spawn(5 SECONDS) if(holder && holder.my_atom) var/turf/simulated/T = get_turf(holder.my_atom) @@ -360,11 +360,11 @@ /datum/chemical_reaction/slime/yellow_emp/on_reaction(var/datum/reagents/holder) log_and_message_admins("Yellow extract reaction (emp) has been activated in [get_area(holder.my_atom)]. Last fingerprints: [holder.my_atom.fingerprintslast]") holder.my_atom.visible_message("\The [src] begins to vibrate violently!") - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 75, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 75, 1) spawn(5 SECONDS) if(holder && holder.my_atom) empulse(get_turf(holder.my_atom), 2, 4, 7, 10) // As strong as a normal EMP grenade. - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 75, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 75, 1) ..() @@ -575,7 +575,7 @@ log_and_message_admins("Red extract reaction (enrage) has been activated in [get_area(holder.my_atom)]. Last fingerprints: [holder.my_atom.fingerprintslast]") - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 75, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 75, 1) ..() @@ -696,7 +696,7 @@ power++ E.uses = 0 - playsound(get_turf(holder.my_atom), 'sound/effects/phasein.ogg', 75, 1) + playsound(holder.my_atom, 'sound/effects/phasein.ogg', 75, 1) holder.my_atom.visible_message("\The [holder.my_atom] begins to vibrate violently!") log_and_message_admins("Oil extract reaction (explosion) has been activated in [get_area(holder.my_atom)]. Last fingerprints: [holder.my_atom.fingerprintslast]") diff --git a/code/modules/xenobio/machinery/processor.dm b/code/modules/xenobio/machinery/processor.dm index 6d888adb26..216c0cb77b 100644 --- a/code/modules/xenobio/machinery/processor.dm +++ b/code/modules/xenobio/machinery/processor.dm @@ -27,7 +27,7 @@ begin_processing() else to_chat(user, "The processor is empty.") - playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 1) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1) return // Verb to remove everything. @@ -54,7 +54,7 @@ return if(!can_insert(AM)) to_chat(user, "\The [src] cannot process \the [AM] at this time.") - playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 1) + playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1) return to_be_processed.Add(AM) AM.forceMove(src) @@ -64,26 +64,26 @@ if(processing) return // Already doing it. processing = TRUE - playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1) + playsound(src, 'sound/machines/juicer.ogg', 50, 1) for(var/atom/movable/AM in to_be_processed) extract(AM) sleep(1 SECONDS) while(monkeys_recycled >= 4) new /obj/item/weapon/reagent_containers/food/snacks/monkeycube(get_turf(src)) - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) monkeys_recycled -= 4 sleep(1 SECOND) processing = FALSE - playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) + playsound(src, 'sound/machines/ding.ogg', 50, 1) /obj/machinery/processor/proc/extract(var/atom/movable/AM) if(istype(AM, /mob/living/simple_mob/slime)) var/mob/living/simple_mob/slime/S = AM while(S.cores) new S.coretype(get_turf(src)) - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) S.cores-- sleep(1 SECOND) to_be_processed.Remove(S) @@ -91,7 +91,7 @@ if(istype(AM, /mob/living/carbon/human)) var/mob/living/carbon/human/M = AM - playsound(src.loc, 'sound/effects/splat.ogg', 50, 1) + playsound(src, 'sound/effects/splat.ogg', 50, 1) to_be_processed.Remove(M) qdel(M) monkeys_recycled++ diff --git a/maps/tether/tether_shuttles.dm b/maps/tether/tether_shuttles.dm index be5f14b42f..7ad7472fc6 100644 --- a/maps/tether/tether_shuttles.dm +++ b/maps/tether/tether_shuttles.dm @@ -172,7 +172,7 @@ if(!WT.remove_fuel(0, user)) to_chat(user,"\The [WT] must be on to complete this task.") return 1 - playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) + playsound(src, 'sound/items/Welder.ogg', 50, 1) user.visible_message("\The [user] begins \the [src] overhaul.","You begin an overhaul of \the [src].") if(!do_after(user, wear SECONDS, src)) return 1 diff --git a/maps/tether/tether_things.dm b/maps/tether/tether_things.dm index 11c775b376..903026b657 100644 --- a/maps/tether/tether_things.dm +++ b/maps/tether/tether_things.dm @@ -127,7 +127,7 @@ /obj/effect/step_trigger/lost_in_space/bluespace/Trigger(A) if(world.time - last_sound > 5 SECONDS) last_sound = world.time - playsound(get_turf(src), 'sound/effects/supermatter.ogg', 75, 1) + playsound(src, 'sound/effects/supermatter.ogg', 75, 1) if(ismob(A) && prob(5))//lucky day var/destturf = locate(rand(5,world.maxx-5),rand(5,world.maxy-5),pick(using_map.station_levels)) new /datum/teleport/instant(A, destturf, 0, 1, null, null, null, 'sound/effects/phasein.ogg') @@ -417,7 +417,7 @@ var/global/list/latejoin_tram = list() /obj/structure/dancepole/attackby(var/obj/item/O as obj, var/mob/user as mob) if(O.is_wrench()) anchored = !anchored - playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) + playsound(src, 'sound/items/Deconstruct.ogg', 50, 1) if(anchored) to_chat(user, "You secure \the [src].") else