summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_wearable_item_demoshield.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/tf/tf_wearable_item_demoshield.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tf/tf_wearable_item_demoshield.h')
-rw-r--r--game/shared/tf/tf_wearable_item_demoshield.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/game/shared/tf/tf_wearable_item_demoshield.h b/game/shared/tf/tf_wearable_item_demoshield.h
new file mode 100644
index 0000000..6d5ce3b
--- /dev/null
+++ b/game/shared/tf/tf_wearable_item_demoshield.h
@@ -0,0 +1,67 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+#ifndef TF_WEARABLE_ITEM_DEMOSHIELD_H
+#define TF_WEARABLE_ITEM_DEMOSHIELD_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "cbase.h"
+#include "tf_shareddefs.h"
+#include "tf_item_wearable.h"
+
+#ifdef CLIENT_DLL
+#include "c_tf_player.h"
+#include "tf_viewmodel.h"
+#include "bone_setup.h"
+#else
+#include "tf_player.h"
+#endif
+
+#ifdef CLIENT_DLL
+#define CTFWearableDemoShield C_TFWearableDemoShield
+class C_TFSword;
+#endif
+
+
+//=============================================================================
+//
+//
+//
+class CTFWearableDemoShield : public CTFWearable
+{
+ DECLARE_CLASS( CTFWearableDemoShield, CTFWearable );
+
+public:
+ DECLARE_NETWORKCLASS();
+ DECLARE_DATADESC();
+
+ CTFWearableDemoShield();
+
+ virtual void Precache();
+
+ void DoSpecialAction( CTFPlayer *pPlayer );
+ void EndSpecialAction( CTFPlayer *pPlayer );
+
+ // Charge
+ bool CanCharge( CTFPlayer *pPlayer );
+ void DoCharge( CTFPlayer *pPlayer );
+ void ShieldBash( CTFPlayer *pPlayer, float flCurrentChargeMeter );
+
+ virtual void Equip( CBasePlayer* pOwner );
+ virtual void UnEquip( CBasePlayer* pOwner );
+
+ float CalculateChargeDamage( float flCurrentChargeMeter );
+ Vector GetShieldDamageForce( float flCurrentChargeMeter );
+
+private:
+#ifdef GAME_DLL
+ bool m_bImpactedSomething;
+#endif
+};
+
+
+#endif // TF_WEARABLE_ITEM_DEMOSHIELD_H \ No newline at end of file