From bb6121f265d70282aeba57a252996f130e5d6df8 Mon Sep 17 00:00:00 2001 From: enneract Date: Sun, 14 Dec 2014 13:17:33 +0100 Subject: Add view quake to more events. --- assets/models/weapons/grenade/weapon.cfg | 1 + src/cgame/cg_event.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/assets/models/weapons/grenade/weapon.cfg b/assets/models/weapons/grenade/weapon.cfg index a0d2f1b..9d0811c 100644 --- a/assets/models/weapons/grenade/weapon.cfg +++ b/assets/models/weapons/grenade/weapon.cfg @@ -9,4 +9,5 @@ primary impactParticleSystem models/weapons/grenade/impactPS2 impactSound 0 models/weapons/grenade/impact0.wav + impactQuake 120 } diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c index 4c756ad..e5002cd 100644 --- a/src/cgame/cg_event.c +++ b/src/cgame/cg_event.c @@ -1009,9 +1009,12 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) CG_MissileHitWall( es->weapon, es->generic1, 0, position, dir, IMPACTSOUND_METAL, es->torsoAnim ); break; +#define BUILDABLE_EXPLOSION_QUAKE 50 + case EV_HUMAN_BUILDABLE_EXPLOSION: ByteToDir( es->eventParm, dir ); CG_HumanBuildableExplosion( position, dir, es->modelindex ); + CG_InduceViewQuake( position, BUILDABLE_EXPLOSION_QUAKE ); break; case EV_ALIEN_BUILDABLE_EXPLOSION: @@ -1020,6 +1023,8 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) if ( es->modelindex == BA_A_SPITEFUL_ABCESS ) CG_AlienSPITEFUL_ABCESSExplosion( position, dir ); + + CG_InduceViewQuake( position, BUILDABLE_EXPLOSION_QUAKE ); break; //Scleim greifer schwanz f\FCr slime -- cgit