mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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:
committed by
duncathan salt
parent
24dc15930e
commit
585fc0615d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user