Sound tweaks (#25876)

* Port ai vox channel to new system

* Add playsound_direct

* Add pressure_affected parameter

* Channel allocation

* Default pressure_affected to FALSE for ps_direct

* Can't wait to get rid of this shitty fucking proc
This commit is contained in:
Cyberboss
2017-04-05 12:57:23 -06:00
committed by duncathan salt
parent 24dc15930e
commit 585fc0615d
4 changed files with 40 additions and 25 deletions
+1 -2
View File
@@ -59,7 +59,6 @@
#ifdef AI_VOX
var/announcing_vox = 0 // Stores the time of the last announcement
var/const/VOX_CHANNEL = 200
var/const/VOX_DELAY = 600
/mob/living/silicon/ai/verb/announcement_help()
@@ -149,7 +148,7 @@ var/const/VOX_DELAY = 600
if(vox_sounds[word])
var/sound_file = vox_sounds[word]
var/sound/voice = sound(sound_file, wait = 1, channel = VOX_CHANNEL)
var/sound/voice = sound(sound_file, wait = 1, channel = CHANNEL_VOX)
voice.status = SOUND_STREAM
// If there is no single listener, broadcast to everyone in the same z level