summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_tfcarrier.cpp
blob: c5168611380883078e7b3743e12deb035895ac24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 );
}