aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/hl2mp/weapon_crowbar.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/shared/hl2mp/weapon_crowbar.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/shared/hl2mp/weapon_crowbar.h')
-rw-r--r--mp/src/game/shared/hl2mp/weapon_crowbar.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/mp/src/game/shared/hl2mp/weapon_crowbar.h b/mp/src/game/shared/hl2mp/weapon_crowbar.h
new file mode 100644
index 00000000..ad62f37a
--- /dev/null
+++ b/mp/src/game/shared/hl2mp/weapon_crowbar.h
@@ -0,0 +1,70 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef HL2MP_WEAPON_CROWBAR_H
+#define HL2MP_WEAPON_CROWBAR_H
+#pragma once
+
+
+#include "weapon_hl2mpbasehlmpcombatweapon.h"
+#include "weapon_hl2mpbasebasebludgeon.h"
+
+
+#ifdef CLIENT_DLL
+#define CWeaponCrowbar C_WeaponCrowbar
+#endif
+
+//-----------------------------------------------------------------------------
+// CWeaponCrowbar
+//-----------------------------------------------------------------------------
+
+class CWeaponCrowbar : public CBaseHL2MPBludgeonWeapon
+{
+public:
+ DECLARE_CLASS( CWeaponCrowbar, CBaseHL2MPBludgeonWeapon );
+
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+
+#ifndef CLIENT_DLL
+ DECLARE_ACTTABLE();
+#endif
+
+ CWeaponCrowbar();
+
+ float GetRange( void );
+ float GetFireRate( void );
+
+ void AddViewKick( void );
+ float GetDamageForActivity( Activity hitActivity );
+ void SecondaryAttack( void ) { return; }
+
+ void Drop( const Vector &vecVelocity );
+
+
+ // Animation event
+#ifndef CLIENT_DLL
+ virtual void Operator_HandleAnimEvent( animevent_t *pEvent, CBaseCombatCharacter *pOperator );
+ void HandleAnimEventMeleeHit( animevent_t *pEvent, CBaseCombatCharacter *pOperator );
+ int WeaponMeleeAttack1Condition( float flDot, float flDist );
+#endif
+
+ CWeaponCrowbar( const CWeaponCrowbar & );
+
+private:
+
+};
+
+
+#endif // HL2MP_WEAPON_CROWBAR_H
+