CFuncNavBlocker::UpdateOnRemove
0x00719020 · 124 bytes · __thiscall
_ZN15CFuncNavBlocker14UpdateOnRemoveEv
Decompiled
undefined (1 param)
/* CFuncNavBlocker::UpdateOnRemove() */
void __thiscall CFuncNavBlocker::UpdateOnRemove(CFuncNavBlocker *this)
{
int *piVar1;
ushort uVar2;
UnblockNav(this);
uVar2 = DAT_00fe677c;
do {
if (uVar2 == 0xffff) {
LAB_00719094:
CBaseEntity::UpdateOnRemove((CBaseEntity *)this);
return;
}
piVar1 = (int *)(gm_NavBlockers + (uint)uVar2 * 8);
if (this == (CFuncNavBlocker *)*piVar1) {
CUtlLinkedList<CFuncNavBlocker*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CFuncNavBlocker*,unsigned_short>,unsigned_short>>
::Unlink((CUtlLinkedList<CFuncNavBlocker*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CFuncNavBlocker*,unsigned_short>,unsigned_short>>
*)&gm_NavBlockers,uVar2);
*(ushort *)(gm_NavBlockers + 6 + (uint)uVar2 * 8) = DAT_00fe6780;
DAT_00fe6780 = uVar2;
goto LAB_00719094;
}
uVar2 = *(ushort *)((int)piVar1 + 6);
} while( true );
}
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.