Rainyan / sourcemod-nt-anti-cap-deny

SourceMod plugin for Neotokyo — If the last living player of a team disconnects or suicides (or gets posthumously teamkilled) to prevent a ghost capture, treat it as if the ghost capture happened.
GNU General Public License v3.0
0 stars 1 forks source link

Problem with checking client team after disconnect? #11

Closed bauxiteDYS closed 10 months ago

bauxiteDYS commented 10 months ago
L 11/23/2023 - 21:36:16: [SM] Exception reported: Client 10 is not in game
L 11/23/2023 - 21:36:16: [SM] Blaming: nt_anti_ghostcap_deny.smx
L 11/23/2023 - 21:36:16: [SM] Call stack trace:
L 11/23/2023 - 21:36:16: [SM]   [0] GetClientTeam
L 11/23/2023 - 21:36:16: [SM]   [1] Line 101, nt_anti_ghostcap_deny.sp::CheckForAntiCap
L 11/23/2023 - 21:36:16: [SM]   [2] Line 76, nt_anti_ghostcap_deny.sp::OnClientDisconnect
Rainyan commented 10 months ago

Thanks. Looking at what GetClientOfUserId does, it seems to only guarantee IsClientConnected, but not IsClientInGame, which is probably the issue happening here.