diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 01:29:00 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 01:29:00 +0200 |
commit | b28d5f6dbedd5b895eed4cc5b730581df3b2215d (patch) | |
tree | 9bb750d3f30ff731ce2c60f6a845fff25f20b668 /src/cgame/cg_event.c | |
parent | 6c7152aada204bfdfa6e39cdfea5e10440e0ed36 (diff) |
Initial implementation of Wraith.
Diffstat (limited to 'src/cgame/cg_event.c')
-rw-r--r-- | src/cgame/cg_event.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c index 436e819..2ff1520 100644 --- a/src/cgame/cg_event.c +++ b/src/cgame/cg_event.c @@ -976,6 +976,38 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.rocketlPrimeSound ); break; + case EV_WARP_ENTER: + { + particleSystem_t *ps; + + ps = CG_SpawnNewParticleSystem( cgs.media.warpEnterPS ); + + if( CG_IsParticleSystemValid( &ps ) ) + { + CG_SetAttachmentPoint( &ps->attachment, position ); + CG_AttachToPoint( &ps->attachment ); + } + + trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.warpEnterSound ); + } + break; + + case EV_WARP_EXIT: + { + particleSystem_t *ps; + + ps = CG_SpawnNewParticleSystem( cgs.media.warpExitPS ); + + if( CG_IsParticleSystemValid( &ps ) ) + { + CG_SetAttachmentPoint( &ps->attachment, position ); + CG_AttachToPoint( &ps->attachment ); + } + + trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.warpExitSound ); + } + break; + // // missile impacts // |