MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsClientHighBandwidth

Method IsClientHighBandwidth

src/game/server/gamecontext.cpp:4739–4744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4737}
4738
4739bool CGameContext::IsClientHighBandwidth(int ClientId) const
4740{
4741 // force high bandwidth is not supported for sixup
4742 return m_apPlayers[ClientId] && !Server()->IsSixup(ClientId) && Server()->IsRconAuthed(ClientId) &&
4743 (m_apPlayers[ClientId]->GetTeam() == TEAM_SPECTATORS || m_apPlayers[ClientId]->IsPaused());
4744}
4745
4746CUuid CGameContext::GameUuid() const { return m_GameUuid; }
4747const char *CGameContext::GameType() const

Callers 1

DoSnapshotMethod · 0.80

Calls 5

IsRconAuthedMethod · 0.80
GetTeamMethod · 0.80
ServerClass · 0.50
IsSixupMethod · 0.45
IsPausedMethod · 0.45

Tested by

no test coverage detected