From 1bc29627fff4aa3a0a42bec09a0d22ef90fb1d58 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 2 Sep 2010 20:06:45 +0300 Subject: [PATCH] First step toward an ambient stomach gurgling sound. The sound's volume depends on how many players there are inside. --- data/qcsrc/server/vore.qc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 037aca00..4366fd10 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -214,8 +214,21 @@ void Vore_StomachKick() } } -void Vore() +.float gurglesound_finished; +void Vore_Gurglesound() { + if(time > self.gurglesound_finished) + { + local float vol; + vol = VOL_BASE * self.stomach_load / cvar("g_balance_vore_swallow_limit"); + + sound (self, CHAN_WEAPON2, "weapons/stomachkick.ogg", vol, ATTN_NORM); + self.gurglesound_finished = time + 1; + } +} + +void Vore() +{Vore_Gurglesound(); // skip the vore system under some circumstances if(time < game_starttime) { -- 2.39.2