CommandNavCheckFloor
0x00704360 · 514 bytes · unknown
_ZL20CommandNavCheckFloorv
Decompiled
undefined (0 params)
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* CommandNavCheckFloor() */
void CommandNavCheckFloor(void)
{
char cVar1;
int iVar2;
CNavArea *pCVar3;
int in_GS_OFFSET;
longdouble lVar4;
longdouble lVar5;
double dVar6;
CFmtStrN<256> local_12c [5];
undefined1 local_127 [263];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
cVar1 = UTIL_IsCommandIssuedByServerAdmin();
if (cVar1 != '\0') {
iVar2 = CNavMesh::GetMarkedArea(TheNavMesh);
if (iVar2 == 0) {
lVar4 = (longdouble)Plat_FloatTime();
iVar2 = 0;
if (0 < DAT_00fe6000) {
do {
pCVar3 = *(CNavArea **)(TheNavAreas + iVar2 * 4);
CNavArea::CheckFloor(pCVar3,(CBaseEntity *)0x0);
if (pCVar3[0x7f] != (CNavArea)0x0) {
CFmtStrN<256>::CFmtStrN
(local_12c,"(%f, %f, %f)",SUB84((double)*(float *)(pCVar3 + 0x2c),0),
(int)((ulonglong)(double)*(float *)(pCVar3 + 0x2c) >> 0x20),
(double)*(float *)(pCVar3 + 0x30),(double)(*(float *)(pCVar3 + 0x34) + 35.5))
;
DevMsg("Area #%d %s is blocked\n",*(undefined4 *)(pCVar3 + 0x8c),local_127);
}
iVar2 = iVar2 + 1;
} while (iVar2 < DAT_00fe6000);
}
lVar5 = (longdouble)Plat_FloatTime();
dVar6 = (double)(((float)lVar5 - (float)lVar4) * 1000.0);
DevMsg("nav_check_floor took %2.2f ms\n",SUB84(dVar6,0),(int)((ulonglong)dVar6 >> 0x20));
}
else {
pCVar3 = (CNavArea *)CNavMesh::GetMarkedArea(TheNavMesh);
CNavArea::CheckFloor(pCVar3,(CBaseEntity *)0x0);
if (pCVar3[0x7f] != (CNavArea)0x0) {
CFmtStrN<256>::CFmtStrN
(local_12c,"(%f, %f, %f)",SUB84((double)*(float *)(pCVar3 + 0x2c),0),
(int)((ulonglong)(double)*(float *)(pCVar3 + 0x2c) >> 0x20),
(double)*(float *)(pCVar3 + 0x30),(double)(*(float *)(pCVar3 + 0x34) + 35.5));
DevMsg("Area #%d %s is blocked\n",*(undefined4 *)(pCVar3 + 0x8c),local_127);
}
}
}
if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.