From b28d5f6dbedd5b895eed4cc5b730581df3b2215d Mon Sep 17 00:00:00 2001 From: PaweÅ‚ Redman Date: Fri, 26 Jun 2015 01:29:00 +0200 Subject: Initial implementation of Wraith. --- src/cgame/cg_weapons.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cgame/cg_weapons.c') diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index 520d40a..69b8b90 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -1131,6 +1131,13 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent CG_DestroyParticleSystem( ¢->muzzlePS ); } + + if( ps && ( cent->currentState.eFlags & EF_WARPING ) ) + { + trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin, + vec3_origin, cgs.media.warpingSound ); + } + // add the flash if( !weapon->wim[ weaponMode ].continuousFlash || !firing ) { -- cgit