Adds Sound Environments: Reverb and Echo (#15378)

This commit is contained in:
Fox McCloud
2021-02-23 06:52:34 -05:00
committed by GitHub
parent 8c7e847174
commit 64064019d8
16 changed files with 163 additions and 18 deletions
@@ -75,7 +75,7 @@
/datum/contractor_hub/proc/first_login(mob/user)
if(!is_user_authorized(user))
return
user.playsound_local(user, 'sound/effects/contractstartup.ogg', 30, FALSE)
user.playsound_local(user, 'sound/effects/contractstartup.ogg', 30, FALSE, use_reverb = FALSE)
generate_contracts()
SStgui.update_uis(src)
@@ -39,4 +39,4 @@
to_chat(M, "<span class='notice'>[bicon(src)] Incoming encrypted transmission from your handlers. Message as follows:</span><br />"\
+ "<span class='boldnotice'>[text]</span>")
if(sndfile)
M.playsound_local(get_turf(M), sndfile, 30, FALSE)
M.playsound_local(get_turf(M), sndfile, 30, FALSE, use_reverb = FALSE)
@@ -272,13 +272,13 @@
switch(traitor_kind)
if(TRAITOR_AI)
add_law_zero()
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/malf.ogg', 100, FALSE, pressure_affected = FALSE)
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/malf.ogg', 100, FALSE, pressure_affected = FALSE, use_reverb = FALSE)
var/mob/living/silicon/ai/A = owner.current
A.show_laws()
if(TRAITOR_HUMAN)
if(should_equip)
equip_traitor()
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/tatoralert.ogg', 100, FALSE, pressure_affected = FALSE)
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/tatoralert.ogg', 100, FALSE, pressure_affected = FALSE, use_reverb = FALSE)
/datum/antagonist/traitor/proc/give_codewords()
+2
View File
@@ -340,8 +340,10 @@
if(slurring && drunk)
throw_alert("drunk", /obj/screen/alert/drunk)
sound_environment_override = SOUND_ENVIRONMENT_PSYCHOTIC
else
clear_alert("drunk")
sound_environment_override = SOUND_ENVIRONMENT_NONE
/mob/living/AdjustSlur(amount, bound_lower = 0, bound_upper = INFINITY)
var/new_value = directional_bounded_sum(slurring, amount, bound_lower, bound_upper)
+2
View File
@@ -20,9 +20,11 @@
if(druggy)
overlay_fullscreen("high", /obj/screen/fullscreen/high)
throw_alert("high", /obj/screen/alert/high)
sound_environment_override = SOUND_ENVIRONMENT_DRUGGED
else
clear_fullscreen("high")
clear_alert("high")
sound_environment_override = SOUND_ENVIRONMENT_NONE
/mob/living/update_nearsighted_effects()
if(HAS_TRAIT(src, TRAIT_NEARSIGHT))
+2
View File
@@ -115,6 +115,8 @@
var/has_enabled_antagHUD = 0 // Whether antagHUD was ever enabled. Not a true boolean - sometimes it is set to 2, because reasons.
var/antagHUD = FALSE // Whether AntagHUD is active right now
var/can_change_intents = 1 //all mobs can change intents by default.
///Override for sound_environments. If this is set the user will always hear a specific type of reverb (Instead of the area defined reverb)
var/sound_environment_override = SOUND_ENVIRONMENT_NONE
//Generic list for proc holders. Only way I can see to enable certain verbs/procs. Should be modified if needed.
var/proc_holder_list[] = list()
+1
View File
@@ -7,6 +7,7 @@
there_can_be_many = TRUE
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
ambientsounds = RUINS_SOUNDS
sound_environment = SOUND_ENVIRONMENT_STONEROOM
/area/ruin/unpowered
always_unpowered = FALSE