You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
897 B
36 lines
897 B
5 years ago
|
//========= 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;
|
||
|
}
|
||
|
|