CBaseClient::FillSignOnFullServerInfo
0x000fb590 · 194 bytes · __thiscall
_ZN11CBaseClient24FillSignOnFullServerInfoER15NET_SignonState
Decompiled
undefined (2 params)
/* CBaseClient::FillSignOnFullServerInfo(NET_SignonState&) */
void __thiscall CBaseClient::FillSignOnFullServerInfo(CBaseClient *this,NET_SignonState *param_1)
{
char *pcVar1;
int iVar2;
int iVar3;
int iVar4;
pcVar1 = (char *)HostState_GetNewLevel();
if (pcVar1 == (char *)0x0) {
iVar3 = *(int *)(param_1 + 0x78);
}
else {
iVar2 = _V_strlen(pcVar1);
iVar3 = *(int *)(param_1 + 0x78);
if (iVar2 != 0) {
CUtlVector<char,CUtlMemory<char,int>>::GrowVector
((CUtlVector<char,CUtlMemory<char,int>> *)(param_1 + 0x6c),iVar2);
CUtlVector<char,CUtlMemory<char,int>>::ShiftElementsRight
((CUtlVector<char,CUtlMemory<char,int>> *)(param_1 + 0x6c),iVar3,iVar2);
iVar4 = iVar3;
if (0 < iVar2) {
do {
*(char *)(*(int *)(param_1 + 0x6c) + iVar4) = pcVar1[iVar4 - iVar3];
iVar4 = iVar4 + 1;
} while (iVar4 != iVar2 + iVar3);
}
iVar3 = *(int *)(param_1 + 0x78);
}
}
CUtlVector<char,CUtlMemory<char,int>>::GrowVector
((CUtlVector<char,CUtlMemory<char,int>> *)(param_1 + 0x6c),1);
CUtlVector<char,CUtlMemory<char,int>>::ShiftElementsRight
((CUtlVector<char,CUtlMemory<char,int>> *)(param_1 + 0x6c),iVar3,1);
if ((undefined1 *)(iVar3 + *(int *)(param_1 + 0x6c)) != (undefined1 *)0x0) {
*(undefined1 *)(iVar3 + *(int *)(param_1 + 0x6c)) = 0;
}
return;
}
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.