From: MirceaKitsune Date: Thu, 2 Sep 2010 17:06:45 +0000 (+0300) Subject: First step toward an ambient stomach gurgling sound. The sound's volume depends on... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bc29627fff4aa3a0a42bec09a0d22ef90fb1d58;p=voretournament%2Fvoretournament.git First step toward an ambient stomach gurgling sound. The sound's volume depends on how many players there are inside. --- 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) {