Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Remove coach on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Mar 4, 2024
1 parent 1ecbc19 commit eb76e7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cs2fixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,13 @@ void CS2Fixes::Hook_ClientDisconnect( CPlayerSlot slot, ENetworkDisconnectionRea
Message( "Hook_ClientDisconnect(%d, %d, \"%s\", %lli, \"%s\")\n", slot, reason, pszName, xuid, pszNetworkID );

g_playerManager->OnClientDisconnect(slot);

if (coaches.Count() < 1) return;
FOR_EACH_VEC(coaches,i){
if(coaches[i]->GetPlayerSlot() == slot.Get()){
coaches.Remove(i);
}
}
}

void CS2Fixes::Hook_GameFrame( bool simulating, bool bFirstTick, bool bLastTick )
Expand Down

0 comments on commit eb76e7d

Please sign in to comment.