cl_dll/c_team.cpp
323334353637
IMPLEMENT_CLIENTCLASS_DT_NOBASE(C_Team, DT_Team, CTeam)
RecvPropInt( RECVINFO(m_iTeamNum)),
RecvPropInt( RECVINFO(m_iScore)),
RecvPropString( RECVINFO(m_szTeamname)),
RecvPropArray2(
32333435363738394041
IMPLEMENT_CLIENTCLASS_DT_NOBASE(C_Team, DT_Team, CTeam)
RecvPropInt( RECVINFO(m_iTeamNum)),
RecvPropInt( RECVINFO(m_iScore)),
RecvPropInt( RECVINFO(m_iFortPoints)),
// Bug #0000529: Total death column doesn't work
RecvPropInt( RECVINFO(m_iDeaths)), // Mulch: receive team deaths from server
RecvPropFloat( RECVINFO( m_flScoreTime ) ), // Mulch: time this team last scored
RecvPropString( RECVINFO(m_szTeamname)),
RecvPropArray2(
5556575859606162636465
C_Team::C_Team()
{
m_iScore = 0;
memset( m_szTeamname, 0, sizeof(m_szTeamname) );
m_iDeaths = 0;
m_iPing = 0;
m_iPacketloss = 0;
// Add myself to the global list of team entities
g_Teams.AddToTail( this );
59606162636465666768697071
C_Team::C_Team()
{
m_iScore = 0;
m_iFortPoints = 0;
memset( m_szTeamname, 0, sizeof(m_szTeamname) );
m_iDeaths = 0;
m_iPing = 0;
m_iPacketloss = 0;
m_flScoreTime = 0.0f;
// Add myself to the global list of team entities
g_Teams.AddToTail( this );
129130131132133134
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
int C_Team::Get_Ping( void )
{
return m_iPing;
135136137138139140141142143144145146147148149150151152153154155156
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
int C_Team::Get_FortPoints( void )
{
return m_iFortPoints;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
float C_Team::Get_ScoreTime( void )
{
return m_flScoreTime;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
int C_Team::Get_Ping( void )
{
return m_iPing;