summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_missile.c13
1 files changed, 12 insertions, 1 deletions
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 )
{