Skip to content

Commit

Permalink
doors mixered
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Sep 14, 2023
1 parent a5c15e5 commit 7bdf796
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
32 changes: 16 additions & 16 deletions code/game/machinery/doors/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
if(locked)
return
set_bolt(TRUE)
playsound(src,boltDown,30,FALSE,3)
playsound(src,boltDown,30,FALSE,3, mixer_channel = CHANNEL_MACHINERY)
audible_message(span_hear("You hear a click from the bottom of the door."), null, 1)
update_appearance()

Expand All @@ -248,7 +248,7 @@
if(!locked)
return
set_bolt(FALSE)
playsound(src,boltUp,30,FALSE,3)
playsound(src,boltUp,30,FALSE,3, mixer_channel = CHANNEL_MACHINERY)
audible_message(span_hear("You hear a click from the bottom of the door."), null, 1)
update_appearance()

Expand Down Expand Up @@ -515,7 +515,7 @@
if("deny")
if(!machine_stat)
update_icon(ALL, AIRLOCK_DENY)
playsound(src,doorDeni,50,FALSE,3)
playsound(src,doorDeni,50,FALSE,3, mixer_channel = CHANNEL_MACHINERY)
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon), ALL, AIRLOCK_CLOSED), AIRLOCK_DENY_ANIMATION_TIME)

/obj/machinery/door/airlock/examine(mob/user)
Expand Down Expand Up @@ -712,7 +712,7 @@
if(ishuman(user) && prob(40) && density)
var/mob/living/carbon/human/H = user
if((HAS_TRAIT(H, TRAIT_DUMB)) && Adjacent(user))
playsound(src, 'sound/effects/bang.ogg', 25, TRUE)
playsound(src, 'sound/effects/bang.ogg', 25, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
if(!istype(H.head, /obj/item/clothing/head/helmet))
H.visible_message(span_danger("[user] headbutts the airlock."), \
span_userdanger("You headbutt the airlock!"))
Expand Down Expand Up @@ -938,7 +938,7 @@
to_chat(user, span_warning("[src] has already been sealed!"))
return
user.visible_message(span_notice("[user] begins sealing [src]."), span_notice("You begin sealing [src]."))
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE)
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
if(!do_after(user, airlockseal.seal_time, target = src))
return
if(!density)
Expand All @@ -950,7 +950,7 @@
if(!user.transferItemToLoc(airlockseal, src))
to_chat(user, span_warning("For some reason, you can't attach [airlockseal]!"))
return
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE)
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
user.visible_message(span_notice("[user] finishes sealing [src]."), span_notice("You finish sealing [src]."))
seal = airlockseal
modify_max_integrity(max_integrity * AIRLOCK_SEAL_MULTIPLIER)
Expand Down Expand Up @@ -978,10 +978,10 @@
if(fake.uses)
if(check_access_list(fake.access))
user.visible_message("<span class='warning'>[user] starts fumbling at \the [src] with a piece of paper!</span>", "<span class='userwarning'>You start swiping \the [fake] in \the [src]!</span>")
playsound(src, 'sound/items/handling/paper_pickup.ogg', 100, TRUE)
playsound(src, 'sound/items/handling/paper_pickup.ogg', 100, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
if(do_after(user, 50, src))
if(open()) //only take a use away if the door actually opens
playsound(src, 'sound/items/poster_ripped.ogg', 100, TRUE)
playsound(src, 'sound/items/poster_ripped.ogg', 100, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
fake.used()
if(fake.uses == 0)
to_chat(user, "<span class='warning'>It's no good, this ID is so torn up it won't fit in another door.</span>")
Expand Down Expand Up @@ -1044,12 +1044,12 @@
to_chat(user, span_warning("You don't have the dexterity to remove the seal!"))
return TRUE
user.visible_message(span_notice("[user] begins removing the seal from [src]."), span_notice("You begin removing [src]'s pneumatic seal."))
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE)
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
if(!do_after(user, airlockseal.unseal_time, target = src))
return TRUE
if(!seal)
return TRUE
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE)
playsound(src, 'sound/items/jaws_pry.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
airlockseal.forceMove(get_turf(user))
user.visible_message(span_notice("[user] finishes removing the seal from [src]."), span_notice("You finish removing [src]'s pneumatic seal."))
seal = null
Expand Down Expand Up @@ -1109,7 +1109,7 @@

if(!prying_so_hard)
var/time_to_open = 50
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE) //is it aliens or just the CE being a dick?
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS) //is it aliens or just the CE being a dick?
prying_so_hard = TRUE
if(do_after(user, time_to_open, src))
if(check_electrified && shock(user,100))
Expand Down Expand Up @@ -1189,7 +1189,7 @@
if(!hasPower() || wires.is_cut(WIRE_OPEN) || (obj_flags & EMAGGED))
return FALSE
use_power(50)
playsound(src, doorOpen, 30, TRUE)
playsound(src, doorOpen, 30, TRUE, mixer_channel = CHANNEL_MACHINERY)
return TRUE

if(FORCING_DOOR_CHECKS) // Only one check.
Expand All @@ -1200,7 +1200,7 @@
return TRUE

if(BYPASS_DOOR_CHECKS) // No power usage, special sound, get it open.
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE)
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
return TRUE

else
Expand Down Expand Up @@ -1277,11 +1277,11 @@
if(obj_flags & EMAGGED)
return FALSE
use_power(50)
playsound(src, doorClose, 30, TRUE)
playsound(src, doorClose, 30, TRUE, mixer_channel = CHANNEL_MACHINERY)
return TRUE

if(BYPASS_DOOR_CHECKS)
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE)
playsound(src, 'sound/machines/airlockforced.ogg', 30, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
return TRUE

else
Expand Down Expand Up @@ -1363,7 +1363,7 @@
var/time_to_open = 5 //half a second
if(hasPower())
time_to_open = 5 SECONDS //Powered airlocks take longer to open, and are loud.
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE)
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)


if(do_after(user, time_to_open, src))
Expand Down
2 changes: 1 addition & 1 deletion code/game/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ GLOBAL_LIST_INIT(freqtospan, list(
if(client && radio_freq)
var/atom/movable/virtualspeaker/V = speaker
if(isAI(V.source))
playsound_local(get_turf(src), 'goon/sounds/radio_ai.ogg', 170, 1, 0, 0, pressure_affected = FALSE, use_reverb = FALSE)
playsound_local(get_turf(src), 'goon/sounds/radio_ai.ogg', 170, 1, 0, 0, pressure_affected = FALSE, use_reverb = FALSE, mixer_channel = CHANNEL_MOB_SOUNDS)
//MONKESTATION EDIT END
/**
* Checks if our movable can speak the provided message, passing it through filters
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
if(HAS_TRAIT(src, TRAIT_FLOORED) && !(dir & (NORTH|SOUTH)))
setDir(pick(NORTH, SOUTH)) // We are and look helpless.
body_position_pixel_y_offset = PIXEL_Y_OFFSET_LYING
playsound(loc, 'goon/sounds/body_thud.ogg', ishuman(src) ? 40 : 15, 1, 0.3)
playsound(loc, 'goon/sounds/body_thud.ogg', ishuman(src) ? 40 : 15, 1, 0.3, mixer_channel = CHANNEL_MOB_SOUNDS)


/// Proc to append behavior related to lying down.
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/living_say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ GLOBAL_LIST_INIT(message_modes_stat_limits, list(
speak_sound = voice_type2sound[voice_type]["!"]
else
speak_sound = voice_type2sound[voice_type][voice_type]
playsound(src, speak_sound, 300, 1, SHORT_RANGE_SOUND_EXTRARANGE-2, falloff_exponent = 0, pressure_affected = FALSE, ignore_walls = FALSE, use_reverb = FALSE)
playsound(src, speak_sound, 300, 1, SHORT_RANGE_SOUND_EXTRARANGE-2, falloff_exponent = 0, pressure_affected = FALSE, ignore_walls = FALSE, use_reverb = FALSE, mixer_channel = CHANNEL_MOB_SOUNDS)
//monkestation edit end

if(succumbed)
Expand All @@ -267,7 +267,7 @@ GLOBAL_LIST_INIT(message_modes_stat_limits, list(
if(radio_freq && can_hear())
var/atom/movable/virtualspeaker/V = speaker
if(isAI(V.source))
playsound_local(get_turf(src), 'goon/sounds/radio_ai.ogg', 170, 1, 0, 0, pressure_affected = FALSE, use_reverb = FALSE)
playsound_local(get_turf(src), 'goon/sounds/radio_ai.ogg', 170, 1, 0, 0, pressure_affected = FALSE, use_reverb = FALSE, mixer_channel = CHANNEL_MOB_SOUNDS)
//monkestation edit end

var/deaf_message
Expand Down
8 changes: 4 additions & 4 deletions monkestation/code/modules/surgery/organs/internal/butts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
cooling_down = TRUE
user.audible_message("[user] <font color='green'>farts.</font>")
if(prob(fart_instability))
playsound(user, "sound/machines/alarm.ogg", 100, FALSE, 50, ignore_walls=TRUE)
playsound(user, "sound/machines/alarm.ogg", 100, FALSE, 50, ignore_walls=TRUE, mixer_channel = CHANNEL_MOB_SOUNDS)
minor_announce("The detonation of a nuclear posterior has been detected in your area. All crew are required to exit the blast radius.", "Nanotrasen Atomics", 0)
Person.Paralyze(120)
Person.electrocution_animation(120)
Expand All @@ -44,7 +44,7 @@
dyn_explosion(Location, 20,10)
cooling_down = FALSE
else
playsound(user, pick(sound_effect), 50, TRUE)
playsound(user, pick(sound_effect), 50, TRUE, mixer_channel = CHANNEL_MOB_SOUNDS)
Location.atmos_spawn_air(atmos_gas)
spawn(20)
cooling_down = FALSE
Expand Down Expand Up @@ -285,7 +285,7 @@
bot_cover_flags |= BOT_COVER_EMAGGED
var/turf/butt = get_turf(src)
butt.atmos_spawn_air("miasma=5;TEMP=310.15")
playsound(src, pick('sound/misc/fart1.ogg', 'monkestation/sound/effects/fart2.ogg', 'monkestation/sound/effects/fart3.ogg', 'monkestation/sound/effects/fart4.ogg'), 100 ,use_reverb = TRUE)
playsound(src, pick('sound/misc/fart1.ogg', 'monkestation/sound/effects/fart2.ogg', 'monkestation/sound/effects/fart3.ogg', 'monkestation/sound/effects/fart4.ogg'), 100 ,use_reverb = TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)

/mob/living/simple_animal/bot/buttbot/Hear(message, atom/movable/speaker, datum/language/message_language, raw_message, radio_freq, list/spans, list/message_mods)
. = ..()
Expand All @@ -303,7 +303,7 @@
cooling_down = FALSE
return
say(joined_text)
playsound(src, pick('sound/misc/fart1.ogg', 'monkestation/sound/effects/fart2.ogg', 'monkestation/sound/effects/fart3.ogg', 'monkestation/sound/effects/fart4.ogg'), 25 ,use_reverb = TRUE)
playsound(src, pick('sound/misc/fart1.ogg', 'monkestation/sound/effects/fart2.ogg', 'monkestation/sound/effects/fart3.ogg', 'monkestation/sound/effects/fart4.ogg'), 25 , use_reverb = TRUE, mixer_channel = CHANNEL_SOUND_EFFECTS)
spawn(20)
cooling_down = FALSE

0 comments on commit 7bdf796

Please sign in to comment.