Host_Status_PrintClient
0x0017d200 · 478 bytes · __cdecl
_Z23Host_Status_PrintClientP7IClientbPFvPKczE
Decompiled
undefined (3 params)
/* Host_Status_PrintClient(IClient*, bool, void (*)(char const*, ...)) */
void Host_Status_PrintClient(IClient *param_1,bool param_2,_func_void_char_ptr____ *param_3)
{
char cVar1;
undefined1 uVar2;
int *piVar3;
undefined4 uVar4;
undefined4 uVar5;
undefined4 uVar6;
undefined4 uVar7;
int iVar8;
undefined4 uVar9;
int iVar10;
int iVar11;
char *pcVar12;
longdouble lVar13;
longdouble lVar14;
longdouble lVar15;
pcVar12 = "active";
piVar3 = (int *)(**(code **)(*(int *)param_1 + 0x4c))(param_1);
cVar1 = (**(code **)(*(int *)param_1 + 0x88))(param_1);
if (cVar1 == '\0') {
pcVar12 = "spawning";
cVar1 = (**(code **)(*(int *)param_1 + 0x84))(param_1);
if (cVar1 == '\0') {
pcVar12 = "challenging";
cVar1 = (**(code **)(*(int *)param_1 + 0x80))(param_1);
if (cVar1 != '\0') {
pcVar12 = "connecting";
}
}
}
if (piVar3 == (int *)0x0) {
(**(code **)(*(int *)param_1 + 0x58))(param_1);
(**(code **)(*(int *)param_1 + 0x48))(param_1);
uVar2 = (**(code **)(*(int *)param_1 + 0x40))(param_1);
(*param_3)("#%2i \"%s\" %s %s",uVar2);
}
else {
uVar4 = (**(code **)(*piVar3 + 0x14))(piVar3);
lVar13 = (longdouble)(**(code **)(*piVar3 + 0x2c))(piVar3,1);
lVar14 = (longdouble)(**(code **)(*piVar3 + 0x28))(piVar3,0);
lVar15 = (longdouble)(**(code **)(*piVar3 + 0xc))(piVar3);
uVar5 = COM_FormatSeconds((int)lVar15);
uVar6 = (**(code **)(*(int *)param_1 + 0x58))(param_1);
uVar7 = (**(code **)(*(int *)param_1 + 0x48))(param_1);
iVar8 = (**(code **)(*(int *)param_1 + 0x3c))(param_1);
uVar9 = (**(code **)(*(int *)param_1 + 0x40))(param_1);
iVar10 = (int)((float)lVar13 * 100.0);
iVar11 = (int)((float)lVar14 * 1000.0);
iVar8 = iVar8 + 1;
(*param_3)("# %2i %i \"%s\" %s %s %i %i %s %d",(char)uVar9);
if (param_2) {
uVar2 = (**(code **)(*piVar3 + 4))
(piVar3,uVar9,iVar8,uVar7,uVar6,uVar5,iVar11,iVar10,pcVar12,uVar4);
(*param_3)(" %s",uVar2);
}
}
/* WARNING: Could not recover jumptable at 0x0017d34a. Too many branches */
/* WARNING: Treating indirect jump as call */
(*param_3)("\n",param_2);
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.