From 4a9bcd3e5d7ad9f632f64696f557815f67aeb53c Mon Sep 17 00:00:00 2001 From: deathride58 Date: Mon, 4 Apr 2022 20:32:51 -0400 Subject: [PATCH] Fixes audio panning sounding weird by adding 1 to playsoundlocal's zlevel calculations --- code/game/sound.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/sound.dm b/code/game/sound.dm index 3a65d47f3f..edc3019f27 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -173,7 +173,7 @@ distance_multiplier - Can be used to multiply the distance at which the sound is var/dz = turf_source.y - T.y // Hearing from infront/behind S.z = dz * distance_multiplier var/dy = (turf_source.z - T.z) * 5 * distance_multiplier // Hearing from above / below, multiplied by 5 because we assume height is further along coords. - S.y = dy + S.y = dy + 1 S.falloff = isnull(max_distance)? FALLOFF_SOUNDS : max_distance //use max_distance, else just use 1 as we are a direct sound so falloff isnt relevant.