Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.1 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef GRENADE_BASE_EMPABLE_H
#define GRENADE_BASE_EMPABLE_H
#ifdef _WIN32
#pragma once
#endif
#include "basegrenade_shared.h"
#if defined( CLIENT_DLL )
#define CBaseEMPableGrenade C_BaseEMPableGrenade
#endif
//-----------------------------------------------------------------------------
// Purpose: EMP grenade
//-----------------------------------------------------------------------------
class CBaseEMPableGrenade : public CBaseGrenade
{
DECLARE_CLASS( CBaseEMPableGrenade, CBaseGrenade );
public:
DECLARE_PREDICTABLE();
DECLARE_NETWORKCLASS();
#if !defined( CLIENT_DLL )
DECLARE_DATADESC();
#endif
CBaseEMPableGrenade();
virtual bool CanTakeEMPDamage( void ) { return true; }
virtual bool TakeEMPDamage( float duration );
void FizzleThink( void );
private:
CNetworkVar( float, m_flFizzleDuration );
private:
CBaseEMPableGrenade( const CBaseEMPableGrenade & ); // not defined, not accessible
};
#endif // GRENADE_BASE_EMPABLE_H