MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnSourceModLevelEnd

Method OnSourceModLevelEnd

core/PlayerManager.cpp:771–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771void PlayerManager::OnSourceModLevelEnd()
772{
773 /* Disconnect all bots still in game */
774 for (int i=1; i<=m_maxClients; i++)
775 {
776 if (m_Players[i].IsConnected())
777 {
778 OnClientDisconnect(m_Players[i].GetEdict());
779 OnClientDisconnect_Post(m_Players[i].GetEdict());
780 }
781 }
782 m_PlayerCount = 0;
783}
784
785void PlayerManager::OnServerHibernationUpdate(bool bHibernating)
786{

Callers

nothing calls this directly

Calls 2

IsConnectedMethod · 0.80
GetEdictMethod · 0.80

Tested by

no test coverage detected