summaryrefslogtreecommitdiff
path: root/game/shared/tfc/weapon_tfc_minigun.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/tfc/weapon_tfc_minigun.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tfc/weapon_tfc_minigun.h')
-rw-r--r--game/shared/tfc/weapon_tfc_minigun.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/game/shared/tfc/weapon_tfc_minigun.h b/game/shared/tfc/weapon_tfc_minigun.h
new file mode 100644
index 0000000..cead9d2
--- /dev/null
+++ b/game/shared/tfc/weapon_tfc_minigun.h
@@ -0,0 +1,84 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef WEAPON_TFC_MINIGUN_H
+#define WEAPON_TFC_MINIGUN_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "weapon_tfcbase.h"
+
+
+#if defined( CLIENT_DLL )
+
+ #define CTFCMinigun C_TFCMinigun
+
+#endif
+
+
+enum MinigunState_t
+{
+// assault cannon firing states
+ AC_STATE_IDLE=0,
+ AC_STATE_STARTFIRING,
+ AC_STATE_FIRING,
+ AC_STATE_SPINNING
+};
+
+// ----------------------------------------------------------------------------- //
+// CTFCMinigun class definition.
+// ----------------------------------------------------------------------------- //
+
+class CTFCMinigun : public CWeaponTFCBase
+{
+public:
+ DECLARE_CLASS( CTFCMinigun, CWeaponTFCBase );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+
+ #ifndef CLIENT_DLL
+ DECLARE_DATADESC();
+ #endif
+
+
+ CTFCMinigun();
+
+ // We say yes to this so the weapon system lets us switch to it.
+ virtual bool HasPrimaryAmmo();
+ virtual bool CanBeSelected();
+ virtual void Precache();
+ virtual void PrimaryAttack();
+ virtual void WeaponIdle();
+ virtual bool Deploy();
+ virtual bool SendWeaponAnim( int iActivity );
+ virtual void HandleFireOnEmpty();
+
+ virtual TFCWeaponID GetWeaponID( void ) const;
+
+
+// Overrideables.
+public:
+
+private:
+
+ CTFCMinigun( const CTFCMinigun & ) {}
+
+ void WindUp();
+ void Spin();
+ void Fire();
+ void StartSpin();
+ void WindDown( bool bFromHolster );
+
+
+private:
+
+ MinigunState_t m_iWeaponState;
+};
+
+
+#endif // WEAPON_TFC_MINIGUN_H