CAI_RR_Lifeboat::SaveWorldContexts
0x005d0860 · 60 bytes · __thiscall
_ZN15CAI_RR_Lifeboat17SaveWorldContextsEv
Decompiled
undefined (1 param)
/* CAI_RR_Lifeboat::SaveWorldContexts() */
void __thiscall CAI_RR_Lifeboat::SaveWorldContexts(CAI_RR_Lifeboat *this)
{
byte *pbVar1;
int *piVar2;
CBaseEntity *pCVar3;
pbVar1 = *(byte **)(gpGlobals + 0x58);
if ((((pbVar1 != (byte *)0x0) && ((*pbVar1 & 2) == 0)) &&
(piVar2 = *(int **)(pbVar1 + 0xc), piVar2 != (int *)0x0)) &&
(pCVar3 = (CBaseEntity *)(**(code **)(*piVar2 + 0x18))(piVar2), pCVar3 != (CBaseEntity *)0x0))
{
LoadFromEntity(this,pCVar3);
}
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.