//----------------------------------------------------------------------------- // Purpose: Here's where the grenade "detonates" //----------------------------------------------------------------------------- void CShieldGrenade::ShieldActiveThink( void ) { if (m_flDetonateTime > gpGlobals->curtime) { // If it's not time to die, check EMP state CheckEMPDamageFinish(); } else { if (m_hDeployedShield) { m_hDeployedShield->Activate( false ); } SetNextThink( gpGlobals->curtime + SHIELD_FLAT_SHUTDOWN_TIME + 0.2f ); SetThink( DeathThink ); } }