CBaseEntityList::CEntInfoList::LinkAfter
0x0044a2e0 · 140 bytes · __thiscall
_ZN15CBaseEntityList12CEntInfoList9LinkAfterEP8CEntInfoS2_
Decompiled
undefined (3 params)
/* CBaseEntityList::CEntInfoList::LinkAfter(CEntInfo*, CEntInfo*) */
void __thiscall
CBaseEntityList::CEntInfoList::LinkAfter(CEntInfoList *this,CEntInfo *param_1,CEntInfo *param_2)
{
CEntInfo *pCVar1;
int iVar2;
pCVar1 = *(CEntInfo **)(param_2 + 8);
if (param_2 == pCVar1) goto LAB_0044a30b;
if (pCVar1 == (CEntInfo *)0x0) {
*(undefined4 *)this = *(undefined4 *)(param_2 + 0xc);
iVar2 = *(int *)(param_2 + 0xc);
if (iVar2 == 0) goto LAB_0044a370;
LAB_0044a302:
*(undefined4 *)(iVar2 + 8) = *(undefined4 *)(param_2 + 8);
}
else {
*(undefined4 *)(pCVar1 + 0xc) = *(undefined4 *)(param_2 + 0xc);
iVar2 = *(int *)(param_2 + 0xc);
if (iVar2 != 0) goto LAB_0044a302;
LAB_0044a370:
*(undefined4 *)(this + 4) = *(undefined4 *)(param_2 + 8);
}
*(CEntInfo **)(param_2 + 0xc) = param_2;
LAB_0044a30b:
*(CEntInfo **)(param_2 + 8) = param_1;
if (param_1 == (CEntInfo *)0x0) {
*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)this;
*(CEntInfo **)this = param_2;
iVar2 = *(int *)(param_2 + 0xc);
}
else {
*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(param_1 + 0xc);
*(CEntInfo **)(param_1 + 0xc) = param_2;
iVar2 = *(int *)(param_2 + 0xc);
}
if (iVar2 != 0) {
*(CEntInfo **)(iVar2 + 8) = param_2;
return;
}
*(CEntInfo **)(this + 4) = 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.