swallow sound/player/pyria-skadi/player/swallow 0
regurgitate sound/player/pyria-skadi/player/regurgitate 0
regurgitate_prepare sound/player/pyria-skadi/player/regurgitate_prepare 0
+gurgle sound/player/pyria-skadi/player/gurgle 0
pain25 sound/player/pyria-skadi/player/pain25 0
pain50 sound/player/pyria-skadi/player/pain50 0
pain75 sound/player/pyria-skadi/player/pain75 0
case VOICETYPE_PLAYERSOUND:\r
sound(self, chan, sample, VOL_BASE, ATTN_NORM);\r
break;\r
+ case VOICETYPE_GURGLE:\r
+ if(self.stomach_load)\r
+ sound(self, chan, sample, VOL_BASE * self.stomach_load / cvar("g_balance_vore_swallow_limit"), ATTN_NORM);\r
+ else\r
+ stopsound(self, chan);\r
+ break;\r
default:\r
backtrace("Invalid voice type!");\r
break;\r
_VOICEMSG(swallow) \\r
_VOICEMSG(regurgitate) \\r
_VOICEMSG(regurgitate_prepare) \\r
+ _VOICEMSG(gurgle) \\r
_VOICEMSG(jump) \\r
_VOICEMSG(pain25) \\r
_VOICEMSG(pain50) \\r
#define VOICETYPE_LASTATTACKER_ONLY 13\r
#define VOICETYPE_AUTOTAUNT 14\r
#define VOICETYPE_TAUNT 15\r
+#define VOICETYPE_GURGLE 16\r
\r
void PrecachePlayerSounds(string f);\r
void PrecacheGlobalSound(string samplestring);\r
{\r
if(time > self.gurglesound_finished || self.gurglesound_oldstomachload != self.stomach_load)\r
{\r
- local float vol;\r
- vol = VOL_BASE * self.stomach_load / cvar("g_balance_vore_swallow_limit");\r
-\r
- precache_sound("player/gurgle.ogg");\r
- if(self.stomach_load)\r
- sound (self, CHAN_TRIGGER, "player/gurgle.ogg", vol, ATTN_NORM);\r
- else\r
- stopsound(self, CHAN_TRIGGER);\r
+ GlobalSound(self.playersound_gurgle, CHAN_TRIGGER, VOICETYPE_GURGLE);\r
\r
self.gurglesound_finished = time + 11; // yes, hard coded sound length. I know it's bad but what can I do?\r
self.gurglesound_oldstomachload = self.stomach_load;\r