diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/hl2mp/weapon_ar2.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/hl2mp/weapon_ar2.h')
| -rw-r--r-- | game/shared/hl2mp/weapon_ar2.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/game/shared/hl2mp/weapon_ar2.h b/game/shared/hl2mp/weapon_ar2.h new file mode 100644 index 0000000..8aa8dde --- /dev/null +++ b/game/shared/hl2mp/weapon_ar2.h @@ -0,0 +1,84 @@ +//========= 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 "weapon_hl2mpbase_machinegun.h" + +#ifdef CLIENT_DLL +#define CWeaponAR2 C_WeaponAR2 +#endif + +class CWeaponAR2 : public CHL2MPMachineGun +{ +public: + DECLARE_CLASS( CWeaponAR2, CHL2MPMachineGun ); + + CWeaponAR2(); + + DECLARE_NETWORKCLASS(); + DECLARE_PREDICTABLE(); + + void ItemPostFrame( void ); + void Precache( void ); + + void SecondaryAttack( void ); + void DelayedAttack( void ); + + const char *GetTracerType( void ) { return "AR2Tracer"; } + + void AddViewKick( void ); + + int GetMinBurst( void ) { return 2; } + int GetMaxBurst( void ) { return 5; } + float GetFireRate( void ) { return 0.1f; } + + bool CanHolster( void ); + bool Reload( void ); + + Activity GetPrimaryAttackActivity( void ); + + void DoImpactEffect( trace_t &tr, int nDamageType ); + + virtual bool Deploy( void ); + + + virtual const Vector& GetBulletSpread( void ) + { + static Vector cone; + + cone = VECTOR_CONE_3DEGREES; + + return cone; + } + + const WeaponProficiencyInfo_t *GetProficiencyValues(); + +private: + CWeaponAR2( const CWeaponAR2 & ); + +protected: + + float m_flDelayedFire; + bool m_bShotDelayed; + int m_nVentPose; + +#ifndef CLIENT_DLL + DECLARE_ACTTABLE(); +#endif +}; + + +#endif //WEAPONAR2_H |