mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
@@ -25,7 +25,7 @@ var/list/page_sound = list('sound/effects/pageturn1.ogg', 'sound/effects/pagetur
|
|||||||
var/mob/M = P
|
var/mob/M = P
|
||||||
if(!M || !M.client)
|
if(!M || !M.client)
|
||||||
continue
|
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)
|
var/turf/T = get_turf(M)
|
||||||
if(T && T.z == turf_source.z)
|
if(T && T.z == turf_source.z)
|
||||||
M.playsound_local(turf_source, soundin, vol, vary, frequency, falloff)
|
M.playsound_local(turf_source, soundin, vol, vary, frequency, falloff)
|
||||||
@@ -52,7 +52,7 @@ var/const/SURROUND_CAP = 255
|
|||||||
if(isturf(turf_source))
|
if(isturf(turf_source))
|
||||||
// 3D sounds, the technology is here!
|
// 3D sounds, the technology is here!
|
||||||
var/turf/T = get_turf(src)
|
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)
|
if (S.volume < 0)
|
||||||
S.volume = 0
|
S.volume = 0
|
||||||
var/dx = turf_source.x - T.x // Hearing from the right/left
|
var/dx = turf_source.x - T.x // Hearing from the right/left
|
||||||
|
|||||||
Reference in New Issue
Block a user