diff options
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r-- | src/game/g_weapon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 84773855..7094bcdb 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -813,10 +813,11 @@ void CheckGrabAttack( gentity_t *ent ) } traceEnt->client->ps.stats[ STAT_STATE ] |= SS_GRABBED; - - //if getting damaged, don't reset the grab time - if( ( ent->client->lastDamageTime + LEVEL1_GRAB_TIME ) < level.time ) - traceEnt->client->lastGrabTime = level.time; + + if( ent->client->ps.weapon == WP_ALEVEL1 ) + traceEnt->client->grabExpiryTime = level.time + LEVEL1_GRAB_TIME; + else if( ent->client->ps.weapon == WP_ALEVEL1_UPG ) + traceEnt->client->grabExpiryTime = level.time + LEVEL1_GRAB_U_TIME; } else if( traceEnt->s.eType == ET_BUILDABLE && traceEnt->s.modelindex == BA_H_MGTURRET ) |