CSteam3Server::CheckForDuplicateSteamID
0x00210e80 · 263 bytes · __thiscall
_ZN13CSteam3Server24CheckForDuplicateSteamIDEPK11CBaseClient
Decompiled
undefined (2 params)
/* CSteam3Server::CheckForDuplicateSteamID(CBaseClient const*) */
undefined4 __thiscall
CSteam3Server::CheckForDuplicateSteamID(CSteam3Server *this,CBaseClient *param_1)
{
int iVar1;
code *pcVar2;
char cVar3;
undefined4 uVar4;
CBaseClient *pCVar5;
int *piVar6;
int *piVar7;
int iVar8;
undefined1 local_4c [16];
int local_3c;
short local_38;
int local_34;
int local_30;
int local_2c;
short local_28;
int local_24;
int local_20;
if ((*(int *)(this + 0x98) != 1) && (0 < DAT_003b8080)) {
iVar8 = 0;
piVar7 = (int *)local_4c;
do {
iVar1 = *(int *)(DAT_003b8074 + iVar8 * 4);
pCVar5 = (CBaseClient *)0x0;
if (iVar1 != 0) {
pCVar5 = (CBaseClient *)(iVar1 + 4);
}
iVar1 = *(int *)pCVar5;
*piVar7 = (int)pCVar5;
pcVar2 = *(code **)(iVar1 + 0x80);
piVar7[-1] = 0x210edc;
uVar4 = (*pcVar2)();
piVar6 = piVar7;
if ((char)uVar4 != '\0') {
iVar1 = *(int *)pCVar5;
*piVar7 = (int)pCVar5;
pcVar2 = *(code **)(iVar1 + 0x8c);
piVar7[-1] = 0x210eed;
cVar3 = (*pcVar2)();
if (cVar3 == '\0') {
iVar1 = *(int *)pCVar5;
piVar7[1] = (int)pCVar5;
*piVar7 = (int)&local_2c;
pcVar2 = *(code **)(iVar1 + 0x44);
piVar7[-1] = 0x210f00;
(*pcVar2)();
piVar6 = piVar7 + -1;
if ((local_2c == 1) &&
((param_1 == (CBaseClient *)0x0 || (piVar6 = piVar7 + -1, pCVar5 != param_1 + 4)))) {
iVar1 = *(int *)pCVar5;
*piVar7 = (int)pCVar5;
piVar7[-1] = (int)&local_2c;
pcVar2 = *(code **)(iVar1 + 0x44);
piVar7[-2] = 0x210f29;
(*pcVar2)();
iVar1 = *(int *)param_1;
piVar7[-1] = (int)param_1;
piVar7[-2] = (int)&local_3c;
pcVar2 = *(code **)(iVar1 + 0x18);
piVar7[-3] = 0x210f41;
(*pcVar2)();
piVar6 = piVar7 + -3;
if ((local_3c == local_2c) &&
(((piVar6 = piVar7 + -3, local_3c - 1U < 2 &&
(piVar6 = piVar7 + -3, local_38 == local_28)) &&
(piVar6 = piVar7 + -3, local_30 == local_20 && local_34 == local_24)))) {
return uVar4;
}
}
}
}
iVar8 = iVar8 + 1;
piVar7 = piVar6;
} while (iVar8 < DAT_003b8080);
}
return 0;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.