mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-12 11:49:09 +00:00
1
This commit is contained in:
@@ -0,0 +1,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user