CNavLadder::DrawConnectedAreas
0x00735120 · 307 bytes · __thiscall
_ZN10CNavLadder18DrawConnectedAreasEv
Decompiled
undefined (1 param)
/* CNavLadder::DrawConnectedAreas() */
void __thiscall CNavLadder::DrawConnectedAreas(CNavLadder *this)
{
CNavArea *this_00;
int iVar1;
int local_30 [8];
local_30[0] = 0;
local_30[1] = 0;
local_30[2] = 0;
local_30[3] = 0;
local_30[4] = 0;
if (*(int *)(this + 0x24) != 0) {
/* try { // try from 0073516f to 0073521b has its CatchHandler @ 00735253 */
CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>::InsertBefore
((CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>> *)local_30,0,
(CNavArea **)(this + 0x24));
}
if (*(int *)(this + 0x28) != 0) {
CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>::InsertBefore
((CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>> *)local_30,local_30[3],
(CNavArea **)(this + 0x28));
}
if (*(int *)(this + 0x2c) != 0) {
CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>::InsertBefore
((CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>> *)local_30,local_30[3],
(CNavArea **)(this + 0x2c));
}
if (*(int *)(this + 0x30) != 0) {
CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>::InsertBefore
((CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>> *)local_30,local_30[3],
(CNavArea **)(this + 0x30));
}
if (*(int *)(this + 0x34) != 0) {
CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>>::InsertBefore
((CUtlVector<CNavArea*,CUtlMemory<CNavArea*,int>> *)local_30,local_30[3],
(CNavArea **)(this + 0x34));
}
iVar1 = 0;
if (0 < local_30[3]) {
do {
this_00 = *(CNavArea **)(local_30[0] + iVar1 * 4);
(**(code **)(*(int *)this_00 + 0x50))(this_00);
if (*(int *)(TheNavMesh + 0x458) != 1) {
CNavArea::DrawHidingSpots(this_00);
}
iVar1 = iVar1 + 1;
} while (iVar1 < local_30[3]);
}
local_30[3] = 0;
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)local_30);
local_30[4] = local_30[0];
CUtlMemory<CNavArea*,int>::Purge((CUtlMemory<CNavArea*,int> *)local_30);
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.