CGameClient::SendSignonData
0x001eb370 · 462 bytes · __thiscall
_ZN11CGameClient14SendSignonDataEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CGameClient::SendSignonData() */
undefined4 __thiscall CGameClient::SendSignonData(CGameClient *this)
{
int iVar1;
undefined4 uVar2;
int iVar3;
undefined **local_84;
undefined1 local_80;
undefined4 local_7c;
undefined4 local_78;
undefined4 local_74;
undefined8 local_70;
undefined4 local_68;
undefined4 local_64;
undefined8 local_60;
undefined4 local_58;
undefined4 local_54;
undefined1 local_50;
undefined8 local_4c;
undefined4 local_44;
undefined4 local_40;
undefined1 local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
if (DAT_003b81ac != '\0') {
Host_Error("Send Table signon buffer overflowed %i bytes!!!\n",_DAT_003b81a8 + 7 >> 3);
return 0;
}
iVar1 = SendTable_GetCRC();
if (iVar1 != 0) {
iVar1 = *(int *)(this + 0xc0);
iVar3 = SendTable_GetCRC();
if (iVar1 != iVar3) {
if (*(int *)(sv_sendtables._28_4_ + 0x30) == 0) {
(**(code **)(*(int *)this + 0x3c))(this,"Server uses different class tables");
return 0;
}
ConDMsg("Client sent different SendTable CRC, sending full tables.\n");
(**(code **)(**(int **)(this + 0xe8) + 0xac))(*(int **)(this + 0xe8),&DAT_003b819c,1);
goto LAB_001eb481;
}
}
local_78 = 0;
local_74 = 0;
local_70 = 0;
local_68 = 0;
local_20 = *(undefined4 *)(*(int *)(this + 0xb8) + 0xf8);
local_64 = 0;
local_60 = 0;
local_58 = 0;
local_54 = 0;
local_50 = 0;
local_4c = 0;
local_44 = 0;
local_40 = 0;
local_80 = 1;
local_7c = 0;
local_84 = &PTR__SVC_ClassInfo_002a1ee8;
local_34 = 0;
local_30 = 0;
local_2c = 0;
local_28 = 0;
local_24 = 0;
local_38 = 1;
/* try { // try from 001eb454 to 001eb459 has its CatchHandler @ 001eb555 */
(**(code **)(**(int **)(this + 0xe8) + 0xa8))(*(int **)(this + 0xe8),&local_84,0,0);
local_84 = &PTR__SVC_ClassInfo_002a1ee8;
local_28 = 0;
CUtlMemory<SVC_ClassInfo::class_s,int>::Purge((CUtlMemory<SVC_ClassInfo::class_s,int> *)&local_34)
;
local_24 = local_34;
CUtlMemory<SVC_ClassInfo::class_s,int>::Purge((CUtlMemory<SVC_ClassInfo::class_s,int> *)&local_34)
;
LAB_001eb481:
uVar2 = CBaseClient::SendSignonData((CBaseClient *)this);
if ((char)uVar2 != '\0') {
*(undefined4 *)(this + 0x1d74c) = 1;
}
return uVar2;
}
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.