z_unwound_all
0x0051ea60 · 129 bytes · __cdecl
_ZL13z_unwound_allRK8CCommand
Decompiled
undefined (1 param)
/* z_unwound_all(CCommand const&) */
void z_unwound_all(CCommand *param_1)
{
int iVar1;
uint uVar2;
int *piVar3;
int iVar4;
int *piVar5;
Infected *this;
iVar1 = TheNextBots();
uVar2 = (uint)*(ushort *)(iVar1 + 0x10);
if (uVar2 != 0xffff) {
iVar4 = *(int *)(iVar1 + 4);
do {
piVar5 = *(int **)(iVar4 + uVar2 * 8);
piVar3 = (int *)(**(code **)(*piVar5 + 0xb4))(piVar5);
iVar4 = (**(code **)(*piVar3 + 0x14c))(piVar3);
if (iVar4 != 0) {
piVar5 = (int *)(**(code **)(*piVar5 + 0xb4))(piVar5);
this = (Infected *)(**(code **)(*piVar5 + 0x14c))(piVar5);
Infected::RequestWound(this,-1);
}
iVar4 = *(int *)(iVar1 + 4);
uVar2 = (uint)*(ushort *)(iVar4 + 6 + uVar2 * 8);
} while (uVar2 != 0xffff);
}
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.