From 7555c06c51090eea7a90254d35f5c376992605aa Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 12 Apr 2015 16:35:30 +0200 Subject: Add a delay to Rocket Launcher shots. --- src/cgame/cg_event.c | 4 ++++ src/cgame/cg_local.h | 2 ++ src/cgame/cg_main.c | 2 ++ 3 files changed, 8 insertions(+) (limited to 'src/cgame') diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c index 8ebb5af..1001f46 100644 --- a/src/cgame/cg_event.c +++ b/src/cgame/cg_event.c @@ -993,6 +993,10 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.acidBombBounceSound2 ); break; + case EV_ROCKETL_PRIME: + trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.rocketlPrimeSound ); + break; + // // missile impacts // diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index dc40f22..b3d6e85 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -1351,6 +1351,8 @@ typedef struct qhandle_t lightningImpactPS; sfxHandle_t hitSounds[ 5 ]; + + sfxHandle_t rocketlPrimeSound; } cgMedia_t; typedef struct diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index f562728..7ac160e 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -765,6 +765,8 @@ static void CG_RegisterSounds( void ) for( i = 0; i < 5; i++ ) cgs.media.hitSounds[ i ] = trap_S_RegisterSound( hit_sounds[ i ], qfalse ); + + cgs.media.rocketlPrimeSound = trap_S_RegisterSound( "models/weapons/rocketl/prime.wav", qfalse ); } -- cgit