CNavMesh::CommandNavFloodSelect
0x00711d80 · 351 bytes · __thiscall
_ZN8CNavMesh21CommandNavFloodSelectERK8CCommand
Decompiled
undefined (2 params)
/* CNavMesh::CommandNavFloodSelect(CCommand const&) */
void __thiscall CNavMesh::CommandNavFloodSelect(CNavMesh *this,CCommand *param_1)
{
CBaseEntity *this_00;
int iVar1;
int iVar2;
uint uVar3;
CNavArea *pCVar4;
undefined4 local_20 [4];
this_00 = (CBaseEntity *)UTIL_GetListenServerHost();
if ((this_00 == (CBaseEntity *)0x0) || (1 < *(uint *)(this + 0x458))) {
return;
}
FindActiveNavArea(this);
pCVar4 = *(CNavArea **)(this + 0x474);
if ((pCVar4 == (CNavArea *)0x0) &&
(pCVar4 = *(CNavArea **)(this + 0x470), pCVar4 == (CNavArea *)0x0)) goto LAB_00711e48;
CBaseEntity::EmitSound(this_00,"EDIT_DELETE",0.0,(float *)0x0);
iVar1 = *(int *)param_1;
if (iVar1 == 2) {
if (*(char **)(param_1 + 0x40c) != "out") {
iVar2 = _V_stricmp("out",*(char **)(param_1 + 0x40c));
iVar1 = *(int *)param_1;
if (iVar2 != 0) goto LAB_00711df4;
}
uVar3 = 2;
}
else {
LAB_00711df4:
uVar3 = 3;
}
if ((iVar1 == 2) &&
((*(char **)(param_1 + 0x40c) == "in" ||
(iVar1 = _V_stricmp("in",*(char **)(param_1 + 0x40c)), iVar1 == 0)))) {
uVar3 = 7;
}
local_20[0] = 0;
SearchSurroundingAreas<SelectCollector>
(pCVar4,(Vector *)(pCVar4 + 0x2c),(SelectCollector *)local_20,-1.0,uVar3,-1);
Msg("Selected %d areas.\n",local_20[0]);
LAB_00711e48:
*(undefined4 *)(this + 0x4c4) = 0;
*(undefined4 *)(this + 0x470) = 0;
*(undefined4 *)(this + 0x47c) = 4;
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.