From: MirceaKitsune Date: Sat, 28 Jan 2012 23:30:17 +0000 (+0200) Subject: Play a sound when the predator first starts capturing their prey, meant to sound... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba7b14361cf7fa744759cc41d694bb2dea61e3f3;p=voretournament%2Fvoretournament.git Play a sound when the predator first starts capturing their prey, meant to sound like grabbing them --- diff --git a/data/models/player/vixen.iqm.sounds b/data/models/player/vixen.iqm.sounds index 478f8c21..09c08dd7 100644 --- a/data/models/player/vixen.iqm.sounds +++ b/data/models/player/vixen.iqm.sounds @@ -28,6 +28,7 @@ fall sound/player/female/player/fall 1 falling sound/player/female/player/falling 0 gasp sound/player/female/player/gasp 0 jump sound/player/female/player/jump 0 +grab sound/player/female/player/grab 0 swallow sound/player/female/player/swallow 2 digest sound/player/female/player/digest 0 regurgitate sound/player/female/player/regurgitate 2 diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index 9862d2c2..5c468503 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -450,6 +450,7 @@ float next_pingtime; _VOICEMSG(fall) \ _VOICEMSG(drown) \ _VOICEMSG(gasp) \ + _VOICEMSG(grab) \ _VOICEMSG(swallow) \ _VOICEMSG(digest) \ _VOICEMSG(regurgitate) \ diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index b7a71a2a..c4480e4d 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -641,6 +641,7 @@ void Vore_SetSbarRings() } .float regurgitatecolor_particles_tick; +.float grabsound; void Vore() { // main vore code, this is where it all happens @@ -758,7 +759,18 @@ void Vore() self.stat_canswallow = 1; if(self.BUTTON_ATCK) + { Vore_SwallowStep(prey); + + // when the predator starts swallowing, play the grab sound + if(!self.grabsound) + { + PlayerSound(self, playersound_grab, CHAN_PAIN, VOICETYPE_PLAYERSOUND); + self.grabsound = TRUE; + } + } + else if(self.grabsound) + self.grabsound = FALSE; // clear the grab sound } else if(prey != world) self.stat_canswallow = -1; diff --git a/data/sound/player/default.sounds b/data/sound/player/default.sounds index 398a6bcd..c4f91e02 100644 --- a/data/sound/player/default.sounds +++ b/data/sound/player/default.sounds @@ -28,6 +28,7 @@ fall sound/player/female/player/fall 1 falling sound/player/female/player/falling 0 gasp sound/player/female/player/gasp 0 jump sound/player/female/player/jump 0 +grab sound/player/female/player/grab 0 swallow sound/player/female/player/swallow 2 digest sound/player/female/player/digest 0 regurgitate sound/player/female/player/regurgitate 2 diff --git a/data/sound/player/female/player/grab.wav b/data/sound/player/female/player/grab.wav new file mode 100644 index 00000000..8ff59312 Binary files /dev/null and b/data/sound/player/female/player/grab.wav differ