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/tf2/weapon_combat_usedwithshieldbase.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/tf2/weapon_combat_usedwithshieldbase.h')
| -rw-r--r-- | game/shared/tf2/weapon_combat_usedwithshieldbase.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/game/shared/tf2/weapon_combat_usedwithshieldbase.h b/game/shared/tf2/weapon_combat_usedwithshieldbase.h new file mode 100644 index 0000000..7db6ea4 --- /dev/null +++ b/game/shared/tf2/weapon_combat_usedwithshieldbase.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef WEAPON_COMBAT_USEDWITHSHIELDBASE_H +#define WEAPON_COMBAT_USEDWITHSHIELDBASE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "basetfcombatweapon_shared.h" + +class CBasePlayer; + +#if defined( CLIENT_DLL ) +#define CWeaponCombatUsedWithShieldBase C_WeaponCombatUsedWithShieldBase +#endif + +class CWeaponCombatUsedWithShieldBase : public CBaseTFCombatWeapon +{ + DECLARE_CLASS( CWeaponCombatUsedWithShieldBase, CBaseTFCombatWeapon ); +public: + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + + CWeaponCombatUsedWithShieldBase( void ) {} + + virtual bool CanDeploy( void ); + virtual int UpdateClientData( CBasePlayer *pPlayer ); + virtual bool SupportsTwoHanded( void ) { return true; }; + void AllowShieldPostFrame( bool allow ); + virtual int GetShieldState( void ); + + /* + // All predicted weapons need to implement and return true + virtual bool IsPredicted( void ) const + { + return true; + } + +#if defined( CLIENT_DLL ) + virtual bool ShouldPredict( void ) + { + if ( GetOwner() == C_BasePlayer::GetLocalPlayer() ) + return true; + + return BaseClass::ShouldPredict(); + } +#endif + */ + +private: + CWeaponCombatUsedWithShieldBase( const CWeaponCombatUsedWithShieldBase & ); + +}; +#endif // WEAPON_COMBAT_USEDWITHSHIELDBASE_H |