mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 12:19:13 +00:00
1
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
//========= 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
|
||||
Reference in New Issue
Block a user