diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/hl2/weapon_ar2.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/hl2/weapon_ar2.h')
| -rw-r--r-- | mp/src/game/server/hl2/weapon_ar2.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/weapon_ar2.h b/mp/src/game/server/hl2/weapon_ar2.h new file mode 100644 index 00000000..4592a497 --- /dev/null +++ b/mp/src/game/server/hl2/weapon_ar2.h @@ -0,0 +1,79 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Projectile shot from the AR2
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef WEAPONAR2_H
+#define WEAPONAR2_H
+
+#include "basegrenade_shared.h"
+#include "basehlcombatweapon.h"
+
+class CWeaponAR2 : public CHLMachineGun
+{
+public:
+ DECLARE_CLASS( CWeaponAR2, CHLMachineGun );
+
+ CWeaponAR2();
+
+ DECLARE_SERVERCLASS();
+
+ void ItemPostFrame( void );
+ void Precache( void );
+
+ void SecondaryAttack( void );
+ void DelayedAttack( void );
+
+ const char *GetTracerType( void ) { return "AR2Tracer"; }
+
+ void AddViewKick( void );
+
+ void FireNPCPrimaryAttack( CBaseCombatCharacter *pOperator, bool bUseWeaponAngles );
+ void FireNPCSecondaryAttack( CBaseCombatCharacter *pOperator, bool bUseWeaponAngles );
+ void Operator_ForceNPCFire( CBaseCombatCharacter *pOperator, bool bSecondary );
+ void Operator_HandleAnimEvent( animevent_t *pEvent, CBaseCombatCharacter *pOperator );
+
+ int GetMinBurst( void ) { return 2; }
+ int GetMaxBurst( void ) { return 5; }
+ float GetFireRate( void ) { return 0.1f; }
+
+ bool CanHolster( void );
+ bool Reload( void );
+
+ int CapabilitiesGet( void ) { return bits_CAP_WEAPON_RANGE_ATTACK1; }
+
+ Activity GetPrimaryAttackActivity( void );
+
+ void DoImpactEffect( trace_t &tr, int nDamageType );
+
+ virtual const Vector& GetBulletSpread( void )
+ {
+ static Vector cone;
+
+ cone = VECTOR_CONE_3DEGREES;
+
+ return cone;
+ }
+
+ const WeaponProficiencyInfo_t *GetProficiencyValues();
+
+protected:
+
+ float m_flDelayedFire;
+ bool m_bShotDelayed;
+ int m_nVentPose;
+
+ DECLARE_ACTTABLE();
+ DECLARE_DATADESC();
+};
+
+
+#endif //WEAPONAR2_H
|