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

Method ProcessDelayedKicks

core/HalfLife2.cpp:891–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891void CHalfLife2::ProcessDelayedKicks()
892{
893 while (!m_DelayedKicks.empty())
894 {
895 DelayedKickInfo info = m_DelayedKicks.first();
896 m_DelayedKicks.pop();
897
898 CPlayer *player = g_Players.GetPlayerByIndex(info.client);
899 if (player == NULL || player->GetUserId() != info.userid)
900 {
901 continue;
902 }
903
904 player->Kick(info.buffer);
905 }
906}
907
908edict_t *CHalfLife2::EdictOfIndex(int index)
909{

Callers 1

RunFrameHooksFunction · 0.80

Calls 5

emptyMethod · 0.80
popMethod · 0.80
GetPlayerByIndexMethod · 0.80
GetUserIdMethod · 0.80
KickMethod · 0.80

Tested by

no test coverage detected