diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-04-12 16:35:30 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-04-12 16:35:30 +0200 |
commit | 7555c06c51090eea7a90254d35f5c376992605aa (patch) | |
tree | adb9fa15977fe9af2363cc963feef3707648ddbd /src/cgame | |
parent | 0acd120b36b4eac1d55646d09745bb39c15dd0fc (diff) |
Add a delay to Rocket Launcher shots.
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_event.c | 4 | ||||
-rw-r--r-- | src/cgame/cg_local.h | 2 | ||||
-rw-r--r-- | src/cgame/cg_main.c | 2 |
3 files changed, 8 insertions, 0 deletions
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 ); } |