CNavArea::RemoveOrthogonalConnections
0x006fc0b0 · 139 bytes · __thiscall
_ZN8CNavArea27RemoveOrthogonalConnectionsE10NavDirType
Decompiled
undefined (2 params)
/* CNavArea::RemoveOrthogonalConnections(NavDirType) */
void __thiscall CNavArea::RemoveOrthogonalConnections(CNavArea *this,uint param_2)
{
int *piVar1;
int iVar2;
CNavArea *this_00;
int iVar3;
int *local_30;
int local_20;
int local_1c [3];
if (param_2 < 4) {
iVar3 = *(int *)(CSWTCH_1823 + param_2 * 4);
local_20 = *(int *)(CSWTCH_1825 + param_2 * 4);
}
else {
iVar3 = 0;
local_20 = 0;
}
local_30 = &local_20;
while( true ) {
piVar1 = *(int **)(this + iVar3 * 4 + 0x58);
iVar2 = *piVar1;
while (0 < iVar2) {
this_00 = (CNavArea *)piVar1[1];
Disconnect(this,this_00);
Disconnect(this_00,this);
piVar1 = *(int **)(this + iVar3 * 4 + 0x58);
iVar2 = *piVar1;
}
if (local_30 == local_1c) break;
iVar3 = *local_30;
local_30 = local_30 + 1;
}
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.