From 2a7581bf0b216d16d90ae4821db6182f192f6f8c Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 6 Mar 2010 23:23:02 +0000 Subject: * Put back some grenade bounce code that was not actually redundant after all (was removed in r1977) --- src/game/g_missile.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/g_missile.c b/src/game/g_missile.c index 458b6d3f..58bd9380 100644 --- a/src/game/g_missile.c +++ b/src/game/g_missile.c @@ -126,7 +126,18 @@ void G_MissileImpact( gentity_t *ent, trace_t *trace ) return; } - if( !strcmp( ent->classname, "lockblob" ) ) + if( !strcmp( ent->classname, "grenade" ) ) + { + //grenade doesn't explode on impact + G_BounceMissile( ent, trace ); + + //only play a sound if requested + if( !( ent->s.eFlags & EF_NO_BOUNCE_SOUND ) ) + G_AddEvent( ent, EV_GRENADE_BOUNCE, 0 ); + + return; + } + else if( !strcmp( ent->classname, "lockblob" ) ) { if( other->client && other->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) { -- cgit