Nerf on sound distance.

This commit is contained in:
DJSnapshot
2014-07-13 08:47:31 -04:00
committed by ZomgPonies
parent 1079661a1e
commit a76be6bf7c
+2 -2
View File
@@ -14,7 +14,7 @@
var/mob/M = P
if(!M || !M.client)
continue
if(get_dist(M, turf_source) <= (world.view + extrarange) * 6)
if(get_dist(M, turf_source) <= (world.view + extrarange) * 3)
var/turf/T = get_turf(M)
if(T && T.z == turf_source.z)
M.playsound_local(turf_source, soundin, vol, vary, frequency, falloff)
@@ -41,7 +41,7 @@ var/const/SURROUND_CAP = 255
if(isturf(turf_source))
// 3D sounds, the technology is here!
var/turf/T = get_turf(src)
S.volume -= get_dist(T, turf_source) * 0.5
S.volume -= get_dist(T, turf_source) * 0.75
if (S.volume < 0)
S.volume = 0
var/dx = turf_source.x - T.x // Hearing from the right/left