Skip to content

Commit

Permalink
Hook bots to damage taken (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdnk authored Jul 24, 2022
1 parent f18b336 commit 6920d3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripting/get5.sp
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@ public void RememberAndKickClient(int client, const char[] format, const char[]
}

public void OnClientPutInServer(int client) {
if (!IsClientSourceTV(client)) {
Stats_HookDamageForClient(client);
}
if (IsFakeClient(client)) {
return;
}
Expand All @@ -671,7 +674,6 @@ public void OnClientPutInServer(int client) {
}

Stats_ResetClientRoundValues(client);
Stats_HookDamageForClient(client);
}

public void OnClientPostAdminCheck(int client) {
Expand Down

0 comments on commit 6920d3d

Please sign in to comment.