diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/dod/weapon_dodbasemelee.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/dod/weapon_dodbasemelee.h')
| -rw-r--r-- | game/shared/dod/weapon_dodbasemelee.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/game/shared/dod/weapon_dodbasemelee.h b/game/shared/dod/weapon_dodbasemelee.h new file mode 100644 index 0000000..325f9f7 --- /dev/null +++ b/game/shared/dod/weapon_dodbasemelee.h @@ -0,0 +1,57 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef WEAPON_DODBASE_MELEE_H +#define WEAPON_DODBASE_MELEE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "weapon_dodbase.h" + +#if defined( CLIENT_DLL ) + #define CWeaponDODBaseMelee C_WeaponDODBaseMelee +#endif + +// ----------------------------------------------------------------------------- // +// class definition. +// ----------------------------------------------------------------------------- // + +class CWeaponDODBaseMelee : public CWeaponDODBase +{ +public: + DECLARE_CLASS( CWeaponDODBaseMelee, CWeaponDODBase ); + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + + #ifndef CLIENT_DLL + DECLARE_DATADESC(); + #endif + + CWeaponDODBaseMelee(); + + virtual void Spawn(); + virtual void PrimaryAttack(); + virtual void WeaponIdle(); + + virtual DODWeaponID GetWeaponID( void ) const { return WEAPON_NONE; } + virtual bool ShouldDrawCrosshair( void ) { return false; } + virtual bool HasPrimaryAmmo() { return true; } + virtual bool CanBeSelected() { return true; } + + virtual CBaseEntity *MeleeAttack( int iDamageAmount, int iDamageType, float flDmgDelay, float flAttackDelay ); + + //virtual const char *GetSecondaryDeathNoticeName( void ) { return "stab"; } + +public: + CDODWeaponInfo *m_pWeaponInfo; + +private: + CWeaponDODBaseMelee( const CWeaponDODBaseMelee & ) {} +}; + + +#endif // WEAPON_DODBASE_MELEE_H |