FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

dlls/team.cpp

404142434445
IMPLEMENT_SERVERCLASS_ST_NOBASE(CTeam, DT_Team) SendPropInt( SENDINFO(m_iTeamNum), 5 ), SendPropInt( SENDINFO(m_iScore), 0 ), SendPropString( SENDINFO( m_szTeamname ) ), SendPropArray2(
40414243444546474849
IMPLEMENT_SERVERCLASS_ST_NOBASE(CTeam, DT_Team) SendPropInt( SENDINFO(m_iTeamNum), 5 ), SendPropInt( SENDINFO(m_iScore), 0 ), SendPropInt( SENDINFO(m_iFortPoints), 0 ), // Bug #0000529: Total death column doesn't work SendPropInt( SENDINFO(m_iDeaths), 0 ), // Mulch: send deaths to client SendPropFloat( SENDINFO( m_flScoreTime) ), // Mulch: time team last scored SendPropString( SENDINFO( m_szTeamname ) ), SendPropArray2(
122123124125126127
InitializePlayers(); m_iScore = 0; Q_strncpy( m_szTeamname.GetForModify(), pName, MAX_TEAM_NAME_LENGTH ); m_iTeamNum = iNumber;
126127128129130131132133134
InitializePlayers(); m_iScore = 0; m_iFortPoints = 0; m_iDeaths = 0; m_flScoreTime = 0.0f; Q_strncpy( m_szTeamname.GetForModify(), pName, MAX_TEAM_NAME_LENGTH ); m_iTeamNum = iNumber;
143144145146147148149
return m_szTeamname; } //----------------------------------------------------------------------------- // Purpose: Update the player's client data //-----------------------------------------------------------------------------
150151152153154155156157158159160161162163164
return m_szTeamname; } //----------------------------------------------------------------------------- // Purpose: Set the team's name //----------------------------------------------------------------------------- void CTeam::SetName( const char *pszName ) { Q_strncpy( m_szTeamname.GetForModify(), pszName, MAX_TEAM_NAME_LENGTH ); } //----------------------------------------------------------------------------- // Purpose: Update the player's client data //-----------------------------------------------------------------------------
276277278279280281282283284285286
void CTeam::AddScore( int iScore ) { m_iScore += iScore; } void CTeam::SetScore( int iScore ) { m_iScore = iScore; } //-----------------------------------------------------------------------------
291292293294295296297298299300301302303
void CTeam::AddScore( int iScore ) { m_iScore += iScore; m_flScoreTime = gpGlobals->curtime; } void CTeam::SetScore( int iScore ) { m_iScore = iScore; m_flScoreTime = gpGlobals->curtime; } //-----------------------------------------------------------------------------
290291292
{ return m_iScore; }
307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
{ return m_iScore; } //----------------------------------------------------------------------------- // Purpose: Add / Remove score for this team //----------------------------------------------------------------------------- void CTeam::AddFortPoints( int iFortPoints ) { m_iFortPoints += iFortPoints; //m_flScoreTime = gpGlobals->curtime; } void CTeam::SetFortPoints( int iFortPoints ) { m_iFortPoints= iFortPoints; //m_flScoreTime = gpGlobals->curtime; } //----------------------------------------------------------------------------- // Purpose: Get this team's score //----------------------------------------------------------------------------- int CTeam::GetFortPoints( void ) { return m_iFortPoints; } //----------------------------------------------------------------------------- // Purpose: Get the time this team last scored //----------------------------------------------------------------------------- float CTeam::GetScoreTime( void ) { return m_flScoreTime; } //----------------------------------------------------------------------------- // Purpose: Add / Remove deaths for this team // Bug #0000529: Total death column doesn't work //----------------------------------------------------------------------------- void CTeam::AddDeaths( int iScore ) { m_iDeaths += iScore; } //----------------------------------------------------------------------------- // Purpose: Get this team's deaths // Bug #0000529: Total death column doesn't work //----------------------------------------------------------------------------- int CTeam::GetDeaths( void ) { return m_iDeaths; } //----------------------------------------------------------------------------- // Purpose: Set the team's deaths //----------------------------------------------------------------------------- void CTeam::SetDeaths( int iDeaths ) { m_iDeaths = iDeaths; }