summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_weapon_parachute.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_weapon_parachute.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_weapon_parachute.h')
-rw-r--r--game/shared/tf/tf_weapon_parachute.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/game/shared/tf/tf_weapon_parachute.h b/game/shared/tf/tf_weapon_parachute.h
new file mode 100644
index 0000000..c605b0c
--- /dev/null
+++ b/game/shared/tf/tf_weapon_parachute.h
@@ -0,0 +1,74 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef TF_WEAPON_PARACHUTE_H
+#define TF_WEAPON_PARACHUTE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tf_weaponbase_gun.h"
+#include "tf_weapon_buff_item.h"
+
+// Client specific.
+#ifdef CLIENT_DLL
+#define CTFParachute C_TFParachute
+#define CTFParachute_Primary C_TFParachute_Primary
+#define CTFParachute_Secondary C_TFParachute_Secondary
+#endif
+
+//=============================================================================
+//
+// Parachute
+//
+class CTFParachute : public CTFBuffItem
+{
+public:
+
+ DECLARE_CLASS( CTFParachute, CTFBuffItem );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+
+ CTFParachute();
+
+ virtual int GetWeaponID( void ) const { return TF_WEAPON_PARACHUTE; }
+
+ virtual bool VisibleInWeaponSelection( void ) { return false; }
+ virtual bool CanBeSelected( void ) { return false; }
+ virtual bool CanDeploy( void ) { return false; }
+ virtual void CreateBanner();
+
+#ifdef CLIENT_DLL
+ virtual void ClientThink( void );
+ void ParachuteAnimThink( void );
+#endif // CLIENT_DLL
+
+private:
+#ifdef CLIENT_DLL
+ int m_iParachuteAnimState;
+ float m_flParachuteToIdleTime;
+#endif // CLIENT_DLL
+};
+
+//=============================================================================
+// Parachute Primary (demo)
+class CTFParachute_Primary : public CTFParachute
+{
+public:
+ DECLARE_CLASS( CTFParachute_Primary, CTFParachute );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+};
+//=============================================================================
+// Parachute Secondary (soldier)
+class CTFParachute_Secondary : public CTFParachute
+{
+public:
+ DECLARE_CLASS( CTFParachute_Secondary, CTFParachute );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+};
+#endif // TF_WEAPON_BUFF_ITEM_H \ No newline at end of file