CNavMesh::CommandNavCornerRaise
0x0070d100 · 389 bytes · __thiscall
_ZN8CNavMesh21CommandNavCornerRaiseERK8CCommand
Decompiled
undefined (2 params)
/* CNavMesh::CommandNavCornerRaise(CCommand const&) */
void __thiscall CNavMesh::CommandNavCornerRaise(CNavMesh *this,CCommand *param_1)
{
int iVar1;
undefined4 uVar2;
char cVar3;
CBaseEntity *this_00;
int iVar4;
CNavArea *pCVar5;
long lVar6;
cVar3 = TestFilesWritable(this);
if (cVar3 != '\0') {
this_00 = (CBaseEntity *)UTIL_GetListenServerHost();
if ((this_00 != (CBaseEntity *)0x0) && (*(int *)(this + 0x458) == 0)) {
lVar6 = 1;
if (1 < *(int *)param_1) {
lVar6 = strtol(*(char **)(param_1 + 0x40c),(char **)0x0,10);
}
if (*(int *)(this + 0x4e0) != 0) {
CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.MarkedArea",0.0,(float *)0x0);
if (0 < *(int *)(this + 0x4e0)) {
iVar4 = 0;
do {
iVar1 = iVar4 * 4;
iVar4 = iVar4 + 1;
CNavArea::RaiseCorner(*(CNavArea **)(*(int *)(this + 0x4d4) + iVar1),4,lVar6,0);
} while (iVar4 < *(int *)(this + 0x4e0));
}
Msg();
return;
}
FindActiveNavArea(this);
if (*(int *)(this + 0x474) != 0) {
iVar4 = GetMarkedArea(this);
if (iVar4 == 0) {
CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.NoMarkedArea",0.0,(float *)0x0);
}
else {
uVar2 = *(undefined4 *)(this + 0x47c);
pCVar5 = (CNavArea *)GetMarkedArea(this);
CNavArea::RaiseCorner(pCVar5,uVar2,lVar6,1);
CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.MarkedArea",0.0,(float *)0x0);
}
}
}
}
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.