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/tfc/weapon_tfc_spanner.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/tfc/weapon_tfc_spanner.h')
| -rw-r--r-- | game/shared/tfc/weapon_tfc_spanner.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/game/shared/tfc/weapon_tfc_spanner.h b/game/shared/tfc/weapon_tfc_spanner.h new file mode 100644 index 0000000..041178e --- /dev/null +++ b/game/shared/tfc/weapon_tfc_spanner.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef WEAPON_TFC_SPANNER_H +#define WEAPON_TFC_SPANNER_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "weapon_tfcbase.h" +#include "weapon_tfc_crowbar.h" + + +#if defined( CLIENT_DLL ) + + #define CTFCSpanner C_TFCSpanner + +#endif + + +// ----------------------------------------------------------------------------- // +// CTFCSpanner class definition. +// ----------------------------------------------------------------------------- // + +class CTFCSpanner : public CTFCCrowbar +{ +public: + DECLARE_CLASS( CTFCSpanner, CTFCCrowbar ); + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + + #ifndef CLIENT_DLL + DECLARE_DATADESC(); + #endif + + +public: + + CTFCSpanner(); + + virtual void Precache(); + virtual TFCWeaponID GetWeaponID( void ) const; + + +// CTFCCrowbar overrides. +public: + +#ifdef GAME_DLL + virtual void AxeHit( CBaseEntity *pHit, bool bFirstSwing, trace_t &tr, float *flDamage, bool *bDoEffects ); +#endif + + +private: + + CTFCSpanner( const CTFCSpanner & ) {} +}; + + +#endif // WEAPON_TFC_SPANNER_H |