CNavMesh::~CNavMesh
0x00742f80 · 612 bytes · __thiscall
_ZN8CNavMeshD2Ev
Decompiled
undefined (1 param)
/* CNavMesh::~CNavMesh() */
void __thiscall CNavMesh::~CNavMesh(CNavMesh *this)
{
CUtlVector<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int>>
*this_00;
void *pvVar1;
uint uVar2;
*(undefined ***)this = &PTR__CNavMesh_00ca8588;
if (*(void **)(this + 0x554) != (void *)0x0) {
operator_delete__(*(void **)(this + 0x554));
}
uVar2 = 0;
if (*(int *)(this + 0x454) != 0) {
do {
pvVar1 = *(void **)(*(int *)(this + 0x450) + uVar2 * 4);
if (pvVar1 != (void *)0x0) {
operator_delete__(pvVar1);
}
uVar2 = uVar2 + 1;
} while (uVar2 < *(uint *)(this + 0x454));
}
CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)(this + 0x5dc));
*(undefined4 *)(this + 0x5d0) = 0;
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 0x5c4));
*(undefined4 *)(this + 0x5d4) = *(undefined4 *)(this + 0x5c4);
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 0x5c4));
*(undefined4 *)(this + 0x5bc) = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x5b0));
*(undefined4 *)(this + 0x5c0) = *(undefined4 *)(this + 0x5b0);
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x5b0));
*(undefined4 *)(this + 0x5a8) = 0;
CUtlMemory<INavAvoidanceObstacle*,int>::Purge
((CUtlMemory<INavAvoidanceObstacle*,int> *)(this + 0x59c));
*(undefined4 *)(this + 0x5ac) = *(undefined4 *)(this + 0x59c);
CUtlMemory<INavAvoidanceObstacle*,int>::Purge
((CUtlMemory<INavAvoidanceObstacle*,int> *)(this + 0x59c));
*(undefined4 *)(this + 0x594) = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x588));
*(undefined4 *)(this + 0x598) = *(undefined4 *)(this + 0x588);
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x588));
*(undefined4 *)(this + 0x580) = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x574));
*(undefined4 *)(this + 0x584) = *(undefined4 *)(this + 0x574);
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x574));
*(undefined4 *)(this + 0x564) = 0;
CUtlMemory<CNavMesh::WalkableSeedSpot,int>::Purge
((CUtlMemory<CNavMesh::WalkableSeedSpot,int> *)(this + 0x558));
*(undefined4 *)(this + 0x568) = *(undefined4 *)(this + 0x558);
CUtlMemory<CNavMesh::WalkableSeedSpot,int>::Purge
((CUtlMemory<CNavMesh::WalkableSeedSpot,int> *)(this + 0x558));
*(undefined4 *)(this + 0x51c) = 0;
CUtlMemory<CNavLadder*,int>::Purge((CUtlMemory<CNavLadder*,int> *)(this + 0x510));
*(undefined4 *)(this + 0x520) = *(undefined4 *)(this + 0x510);
CUtlMemory<CNavLadder*,int>::Purge((CUtlMemory<CNavLadder*,int> *)(this + 0x510));
*(undefined4 *)(this + 0x4f4) = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x4e8));
*(undefined4 *)(this + 0x4f8) = *(undefined4 *)(this + 0x4e8);
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x4e8));
*(undefined4 *)(this + 0x4e0) = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x4d4));
*(undefined4 *)(this + 0x4e4) = *(undefined4 *)(this + 0x4d4);
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)(this + 0x4d4));
*(undefined4 *)(this + 0x44) = 0;
CUtlMemory<CFuncNavConnectionBlocker*,int>::Purge
((CUtlMemory<CFuncNavConnectionBlocker*,int> *)(this + 0x38));
*(undefined4 *)(this + 0x48) = *(undefined4 *)(this + 0x38);
this_00 = (CUtlVector<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int>>
*)(this + 0xc);
CUtlMemory<CFuncNavConnectionBlocker*,int>::Purge
((CUtlMemory<CFuncNavConnectionBlocker*,int> *)(this + 0x38));
CUtlVector<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int>>
::RemoveAll(this_00);
CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int>::Purge
((CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int> *)this_00);
*(undefined4 *)(this + 0x1c) = *(undefined4 *)(this + 0xc);
CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int>::Purge
((CUtlMemory<CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>,int> *)this_00);
*(undefined ***)this = &PTR__CGameEventListener_00bfb6e8;
*(undefined4 *)(this + 4) = 0xd;
if (this[8] != (CNavMesh)0x0) {
if (gameeventmanager != (int *)0x0) {
(**(code **)(*gameeventmanager + 0x18))(gameeventmanager,this);
}
this[8] = (CNavMesh)0x0;
}
*(undefined ***)this = &PTR__IGameEventListener2_00bfb610;
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.