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/client/tf2/c_tfcarrier.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf2/c_tfcarrier.cpp')
| -rw-r--r-- | game/client/tf2/c_tfcarrier.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/game/client/tf2/c_tfcarrier.cpp b/game/client/tf2/c_tfcarrier.cpp new file mode 100644 index 0000000..c516861 --- /dev/null +++ b/game/client/tf2/c_tfcarrier.cpp @@ -0,0 +1,30 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Client's CObjectSentrygun +// +// $NoKeywords: $ +//=============================================================================// +#include "c_base.h +#include "bone_setup.h" +#include "CommanderOverlay.h" +#include "c_ai_basenpc.h" +#include "c_tfcarrier.h" + +IMPLEMENT_CLIENTCLASS_DT(C_TFCarrier, DT_TFCarrier, CTFCarrier) + RecvPropInt(RECVINFO(m_iHealth)), + RecvPropInt(RECVINFO(m_iMaxHealth)), +END_RECV_TABLE() + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TFCarrier::C_TFCarrier() +{ + CONSTRUCT_MINIMAP_PANEL( "minimap_helicopter", MINIMAP_COLLECTORS ); +} + +void C_TFCarrier::SetDormant( bool inside ) +{ + BaseClass::SetDormant( bDormant ); + ENTITY_PANEL_ACTIVATE( "helicopter", !bDormant ); +} |