InfectedDying::InfectedDying
0x00a31b70 · 452 bytes · __thiscall
_ZN13InfectedDyingC1ERK15CTakeDamageInfo
Decompiled
undefined (2 params)
/* InfectedDying::InfectedDying(CTakeDamageInfo const&) */
void __thiscall InfectedDying::InfectedDying(InfectedDying *this,CTakeDamageInfo *param_1)
{
uint uVar1;
int *piVar2;
char cVar3;
undefined4 uVar4;
undefined *puVar5;
*(undefined4 *)(this + 0x20) = 0;
*(undefined4 *)(this + 0x24) = 0;
*(undefined4 *)(this + 0x28) = 0;
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x14) = 0;
*(undefined4 *)(this + 0x18) = 0;
*(undefined4 *)(this + 0x1c) = 0;
*(undefined4 *)(this + 8) = 0;
this[0x30] = (InfectedDying)0x0;
this[0x31] = (InfectedDying)0x0;
*(undefined4 *)(this + 0x2c) = 0;
*(undefined ***)this = &PTR__InfectedDying_00d23c68;
*(undefined ***)(this + 4) = &PTR__InfectedDying_00d23dcc;
/* try { // try from 00a31bdf to 00a31d21 has its CatchHandler @ 00a31d37 */
CTakeDamageInfo::CTakeDamageInfo((CTakeDamageInfo *)(this + 0x34));
*(undefined4 *)(this + 0x34) = *(undefined4 *)param_1;
*(undefined4 *)(this + 0x38) = *(undefined4 *)(param_1 + 4);
*(undefined4 *)(this + 0x3c) = *(undefined4 *)(param_1 + 8);
*(undefined4 *)(this + 0x40) = *(undefined4 *)(param_1 + 0xc);
*(undefined4 *)(this + 0x44) = *(undefined4 *)(param_1 + 0x10);
*(undefined4 *)(this + 0x48) = *(undefined4 *)(param_1 + 0x14);
*(undefined4 *)(this + 0x4c) = *(undefined4 *)(param_1 + 0x18);
*(undefined4 *)(this + 0x50) = *(undefined4 *)(param_1 + 0x1c);
*(undefined4 *)(this + 0x54) = *(undefined4 *)(param_1 + 0x20);
*(undefined4 *)(this + 0x58) = *(undefined4 *)(param_1 + 0x24);
*(undefined4 *)(this + 0x5c) = *(undefined4 *)(param_1 + 0x28);
*(undefined4 *)(this + 0x60) = *(undefined4 *)(param_1 + 0x2c);
*(undefined4 *)(this + 100) = *(undefined4 *)(param_1 + 0x30);
*(undefined4 *)(this + 0x68) = *(undefined4 *)(param_1 + 0x34);
*(undefined4 *)(this + 0x6c) = *(undefined4 *)(param_1 + 0x38);
*(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x3c);
*(undefined4 *)(this + 0x74) = *(undefined4 *)(param_1 + 0x40);
puVar5 = g_pEntityList;
*(undefined4 *)(this + 0x78) = *(undefined4 *)(param_1 + 0x44);
*(undefined4 *)(this + 0x7c) = *(undefined4 *)(param_1 + 0x48);
*(undefined4 *)(this + 0x80) = *(undefined4 *)(param_1 + 0x4c);
*(undefined4 *)(this + 0x84) = *(undefined4 *)(param_1 + 0x50);
*(undefined4 *)(this + 0x88) = *(undefined4 *)(param_1 + 0x54);
*(undefined4 *)(this + 0x8c) = *(undefined4 *)(param_1 + 0x58);
*(undefined4 *)(this + 0x90) = *(undefined4 *)(param_1 + 0x5c);
uVar1 = *(uint *)(param_1 + 0x34);
if ((((uVar1 != 0xffffffff) &&
(puVar5 = puVar5 + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar5 + 8) == uVar1 >> 0xc)) &&
(piVar2 = *(int **)(puVar5 + 4), piVar2 != (int *)0x0)) {
cVar3 = (**(code **)(*piVar2 + 0x16c))(piVar2);
if (cVar3 == '\0') {
*(undefined4 *)(this + 0x98) = 999;
return;
}
}
uVar4 = RandomInt(0,10);
*(undefined4 *)(this + 0x98) = uVar4;
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.