summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_weapon_syringegun.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_syringegun.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_syringegun.h')
-rw-r--r--game/shared/tf/tf_weapon_syringegun.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/game/shared/tf/tf_weapon_syringegun.h b/game/shared/tf/tf_weapon_syringegun.h
new file mode 100644
index 0000000..d160d05
--- /dev/null
+++ b/game/shared/tf/tf_weapon_syringegun.h
@@ -0,0 +1,60 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef TF_WEAPON_SYRINGEGUN_H
+#define TF_WEAPON_SYRINGEGUN_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tf_weaponbase_gun.h"
+
+// Client specific.
+#ifdef CLIENT_DLL
+#define CTFSyringeGun C_TFSyringeGun
+#endif
+
+enum syringe_weapontypes_t
+{
+ SYRINGE_DEFAULT = 0,
+ SYRINGE_UBER_SCALES_SPEED,
+};
+
+//=============================================================================
+//
+// TF Weapon Syringe gun.
+//
+class CTFSyringeGun : public CTFWeaponBaseGun
+{
+public:
+
+ DECLARE_CLASS( CTFSyringeGun, CTFWeaponBaseGun );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+
+// Server specific.
+#ifdef GAME_DLL
+ DECLARE_DATADESC();
+#endif
+
+ CTFSyringeGun() {}
+ ~CTFSyringeGun() {}
+
+ virtual void Precache();
+ virtual int GetWeaponID( void ) const { return TF_WEAPON_SYRINGEGUN_MEDIC; }
+ int GetSyringeType( void ) const { int iMode = 0; CALL_ATTRIB_HOOK_INT( iMode, set_weapon_mode ); return iMode; };
+ virtual bool Deploy( void );
+ virtual bool Holster( CBaseCombatWeapon *pSwitchingTo );
+
+ virtual void RemoveProjectileAmmo( CTFPlayer *pPlayer );
+ virtual bool HasPrimaryAmmo( void );
+
+private:
+
+ CTFSyringeGun( const CTFSyringeGun & ) {}
+};
+
+#endif // TF_WEAPON_SYRINGEGUN_H