CHLTVClientState::ProcessServerInfo
0x0016cc20 · 436 bytes · __thiscall
_ZN16CHLTVClientState17ProcessServerInfoEP14SVC_ServerInfo
Decompiled
undefined (2 params)
/* CHLTVClientState::ProcessServerInfo(SVC_ServerInfo*) */
undefined4 __thiscall
CHLTVClientState::ProcessServerInfo(CHLTVClientState *this,SVC_ServerInfo *param_1)
{
CNetworkStringTableContainer *this_00;
char cVar1;
undefined4 uVar2;
(**(code **)(*(int *)this + 0x80))(this);
cVar1 = (**(code **)(**(int **)(this + 0x49ec) + 0x78))(*(int **)(this + 0x49ec));
if ((cVar1 == '\0') && (param_1[0x56] == (SVC_ServerInfo)0x0)) {
uVar2 = (**(code **)(**(int **)(this + 0x10) + 4))(*(int **)(this + 0x10));
ConMsg("Server (%s) is not a SourceTV proxy.\n",uVar2);
(**(code **)(*(int *)this + 0x94))(this,1);
return 0;
}
CHLTVServer::StartRelay(*(CHLTVServer **)(this + 0x49ec));
uVar2 = CBaseClientState::ProcessServerInfo((CBaseClientState *)this,param_1);
if ((char)uVar2 != '\0') {
this_00 = *(CNetworkStringTableContainer **)(*(int *)(this + 0x49ec) + 0xc0);
*(CNetworkStringTableContainer **)(this + 0x49d4) = this_00;
CNetworkStringTableContainer::EnableRollback(this_00,false);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0x5388) = *(undefined4 *)(this + 0x14c);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0xfc) = *(undefined4 *)(this + 0x41c8);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0x100) = *(undefined4 *)(this + 0x41cc);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0x51cc) = *(undefined4 *)(this + 0xcc);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0xb4) = *(undefined4 *)(param_1 + 0x58);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0xb8) = *(undefined4 *)(param_1 + 0x5c);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0xbc) = *(undefined4 *)(param_1 + 0x60);
*(undefined4 *)(*(int *)(this + 0x49ec) + 0x110) = *(undefined4 *)(param_1 + 0x70);
DAT_003a1730 = *(undefined4 *)(param_1 + 0x70);
V_strncpy((char *)(*(int *)(this + 0x49ec) + 0x14),*(char **)(param_1 + 0x78),0x40);
V_strncpy((char *)(*(int *)(this + 0x49ec) + 0x54),*(char **)(param_1 + 0x7c),0x40);
return uVar2;
}
(**(code **)(*(int *)this + 0x94))(this,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.