make flashes use audio range (#23521)

make flashes use range
This commit is contained in:
Emisse
2024-01-04 05:27:32 -07:00
committed by GitHub
parent ce8252c1f3
commit dfec6a4ac9
2 changed files with 6 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ namespace Content.Server.Flash
}
if (sound != null)
{
_audio.PlayPvs(sound, source);
_audio.PlayPvs(sound, source, AudioParams.Default.WithVolume(1f).WithMaxDistance(3f));
}
}