summaryrefslogtreecommitdiff
path: root/game/shared/dod/weapon_spade.cpp
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/dod/weapon_spade.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/dod/weapon_spade.cpp')
-rw-r--r--game/shared/dod/weapon_spade.cpp71
1 files changed, 71 insertions, 0 deletions
diff --git a/game/shared/dod/weapon_spade.cpp b/game/shared/dod/weapon_spade.cpp
new file mode 100644
index 0000000..4df7d21
--- /dev/null
+++ b/game/shared/dod/weapon_spade.cpp
@@ -0,0 +1,71 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+#include "weapon_dodbasemelee.h"
+
+#if defined( CLIENT_DLL )
+
+ #define CWeaponSpade C_WeaponSpade
+
+#endif
+
+
+class CWeaponSpade : public CWeaponDODBaseMelee
+{
+public:
+ DECLARE_CLASS( CWeaponSpade, CWeaponDODBaseMelee );
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+ DECLARE_ACTTABLE();
+
+ CWeaponSpade() {}
+
+ virtual Activity GetMeleeActivity( void ) { return ACT_VM_PRIMARYATTACK; }
+
+ virtual DODWeaponID GetWeaponID( void ) const { return WEAPON_SPADE; }
+
+private:
+ CWeaponSpade( const CWeaponSpade & );
+};
+
+IMPLEMENT_NETWORKCLASS_ALIASED( WeaponSpade, DT_WeaponSpade )
+
+BEGIN_NETWORK_TABLE( CWeaponSpade, DT_WeaponSpade )
+END_NETWORK_TABLE()
+
+BEGIN_PREDICTION_DATA( CWeaponSpade )
+END_PREDICTION_DATA()
+
+LINK_ENTITY_TO_CLASS( weapon_spade, CWeaponSpade );
+PRECACHE_WEAPON_REGISTER( weapon_spade );
+
+acttable_t CWeaponSpade::m_acttable[] =
+{
+ { ACT_DOD_STAND_AIM, ACT_DOD_STAND_AIM_SPADE, false },
+ { ACT_DOD_CROUCH_AIM, ACT_DOD_CROUCH_AIM_SPADE, false },
+ { ACT_DOD_CROUCHWALK_AIM, ACT_DOD_CROUCHWALK_AIM_SPADE, false },
+ { ACT_DOD_WALK_AIM, ACT_DOD_WALK_AIM_SPADE, false },
+ { ACT_DOD_RUN_AIM, ACT_DOD_RUN_AIM_SPADE, false },
+ { ACT_PRONE_IDLE, ACT_DOD_PRONE_AIM_SPADE, false },
+ { ACT_PRONE_FORWARD, ACT_DOD_PRONEWALK_AIM_SPADE, false },
+ { ACT_DOD_STAND_IDLE, ACT_DOD_STAND_AIM_SPADE, false },
+ { ACT_DOD_CROUCH_IDLE, ACT_DOD_CROUCH_AIM_SPADE, false },
+ { ACT_DOD_CROUCHWALK_IDLE, ACT_DOD_CROUCHWALK_AIM_SPADE, false },
+ { ACT_DOD_WALK_IDLE, ACT_DOD_WALK_AIM_SPADE, false },
+ { ACT_DOD_RUN_IDLE, ACT_DOD_RUN_AIM_SPADE, false },
+ { ACT_SPRINT, ACT_DOD_SPRINT_AIM_SPADE, false },
+
+ { ACT_RANGE_ATTACK2, ACT_DOD_PRIMARYATTACK_SPADE, false },
+ { ACT_DOD_SECONDARYATTACK_CROUCH, ACT_DOD_PRIMARYATTACK_CROUCH_SPADE, false },
+ { ACT_DOD_SECONDARYATTACK_PRONE, ACT_DOD_PRIMARYATTACK_PRONE_SPADE, false },
+
+ // Hand Signals
+ { ACT_DOD_HS_IDLE, ACT_DOD_HS_IDLE_STICKGRENADE, false },
+ { ACT_DOD_HS_CROUCH, ACT_DOD_HS_CROUCH_STICKGRENADE, false },
+};
+
+IMPLEMENT_ACTTABLE( CWeaponSpade ); \ No newline at end of file