blob: e186ebb95956429809df7578a576f038bcb8798d (
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
31
32
33
34
35
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "c_demo_entities.h"
IMPLEMENT_CLIENTCLASS_DT(C_Cycler_TF2Commando, DT_Cycler_TF2Commando, CCycler_TF2Commando)
RecvPropInt( RECVINFO(m_bShieldActive) ),
RecvPropFloat( RECVINFO(m_flShieldRaiseTime) ),
RecvPropFloat( RECVINFO(m_flShieldLowerTime) ),
END_RECV_TABLE()
C_Cycler_TF2Commando::C_Cycler_TF2Commando()
{
}
float C_Cycler_TF2Commando::GetShieldRaiseTime() const
{
return m_bShieldActive ? gpGlobals->curtime - m_flShieldRaiseTime : 0.0f;
}
float C_Cycler_TF2Commando::GetShieldLowerTime() const
{
return !m_bShieldActive ? gpGlobals->curtime - m_flShieldLowerTime : 0.0f;
}
bool C_Cycler_TF2Commando::IsShieldActive() const
{
return m_bShieldActive;
}
|