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/tf2/weapon_mortar.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/tf2/weapon_mortar.h')
| -rw-r--r-- | game/shared/tf2/weapon_mortar.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/game/shared/tf2/weapon_mortar.h b/game/shared/tf2/weapon_mortar.h new file mode 100644 index 0000000..c32db7d --- /dev/null +++ b/game/shared/tf2/weapon_mortar.h @@ -0,0 +1,84 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef WEAPON_MORTAR_H +#define WEAPON_MORTAR_H +#ifdef _WIN32 +#pragma once +#endif + +class SmokeTrail; +class CWeaponMortar; + +#include "tf_basecombatweapon.h" +#include "particle_smokegrenade.h" +#include "utllinkedlist.h" +#include "tf_obj_mortar.h" + + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class CWeaponMortar : public CBaseTFCombatWeapon +{ + DECLARE_CLASS( CWeaponMortar, CBaseTFCombatWeapon ); +public: + DECLARE_SERVERCLASS(); + + CWeaponMortar(); + + virtual void Precache(); + + // Input + void Fire( float flPower, float flAccuracy ); + void PrimaryAttack( void ); + void SecondaryAttack( void ); + + // Deployment / Pick-up + void DeployMortar( CObjectMortar *pMortar ); + void PickupMortar( void ); + void MortarDestroyed( void ); + void MortarObjectRemoved( void ); + + // Turning + void SetYaw( float flYaw ); + + // Firing + virtual void ItemPostFrame( void ); + virtual float GetFireRate( void ); + + // Ammo + virtual void SetRoundType( int iRoundType ); + + virtual bool Deploy( void ); + virtual void WeaponIdle( void ); + + virtual void GainedNewTechnology( CBaseTechnology *pTechnology ); + virtual void AddAssociatedObject( CBaseObject *pObject ); + virtual void RemoveAssociatedObject( CBaseObject *pObject ); + + virtual bool ComputeEMPFireState( void ); + + void MortarIsReloading( void ); + void MortarFinishedReloading( void ); + +public: + // Data + bool m_bCarried; + bool m_bMortarReloading; + CHandle< CObjectMortar > m_hDeployedMortar; + Vector m_vecMortarOrigin; + QAngle m_vecMortarAngles; + bool m_bRangeUpgraded; + bool m_bAccuracyUpgraded; + + // Firing + float m_flFiringPower; + float m_flFiringAccuracy; +}; + +#endif // WEAPON_MORTAR_H |