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/server/tf2/tf_obj_manned_missilelauncher.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf2/tf_obj_manned_missilelauncher.h')
| -rw-r--r-- | game/server/tf2/tf_obj_manned_missilelauncher.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/game/server/tf2/tf_obj_manned_missilelauncher.h b/game/server/tf2/tf_obj_manned_missilelauncher.h new file mode 100644 index 0000000..ac03216 --- /dev/null +++ b/game/server/tf2/tf_obj_manned_missilelauncher.h @@ -0,0 +1,57 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef TF_OBJ_MANNED_MISSILELAUNCHER_H +#define TF_OBJ_MANNED_MISSILELAUNCHER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "tf_obj_base_manned_gun.h" + +// ------------------------------------------------------------------------ // +// A stationary gun that players can man that's built by the player +// ------------------------------------------------------------------------ // +class CObjectMannedMissileLauncher : public CObjectBaseMannedGun +{ + DECLARE_CLASS( CObjectMannedMissileLauncher, CObjectBaseMannedGun ); + +public: + DECLARE_SERVERCLASS(); + DECLARE_DATADESC(); + + static CObjectMannedMissileLauncher* Create(const Vector &vOrigin, const QAngle &vAngles); + + CObjectMannedMissileLauncher(); + + virtual void Spawn(); + virtual void Precache(); + virtual void FinishedBuilding( void ); + virtual void SetupTeamModel( void ); + void MissileRechargeThink( void ); + +#if defined( CLIENT_DLL ) + virtual bool ShouldPredict( void ) + { + if ( GetOwner() == C_BasePlayer::GetLocalPlayer() ) + return true; + + return BaseClass::ShouldPredict(); + } + + virtual void PreDataUpdate( DataUpdateType_t updateType ); + virtual void PostDataUpdate( DataUpdateType_t updateType ); +#endif + +protected: + // Fire the weapon + virtual void Fire( void ); + + int m_nPreviousTeam; + int m_nMaxAmmoCount; +}; + +#endif // TF_OBJ_MANNED_MISSILELAUNCHER_H |