CNavArea::ComputeHeightChange
0x006fc6f0 · 252 bytes · __thiscall
_ZN8CNavArea19ComputeHeightChangeEPKS_
Decompiled
undefined (2 params)
/* CNavArea::ComputeHeightChange(CNavArea const*) */
longdouble __thiscall CNavArea::ComputeHeightChange(CNavArea *this,CNavArea *param_1)
{
char cVar1;
float local_38;
float local_34;
undefined4 local_30;
undefined4 local_2c;
float local_28;
undefined4 local_24;
undefined4 local_20;
float local_1c;
undefined4 local_18;
undefined4 local_14;
float local_10;
GetClosestPointOnArea(param_1,(Vector *)(this + 0x2c),(Vector *)&local_24);
GetClosestPointOnArea(this,(Vector *)(param_1 + 0x2c),(Vector *)&local_30);
local_18 = local_24;
local_14 = local_20;
local_10 = local_1c + 18.0;
cVar1 = CNavMesh::GetSimpleGroundHeight(TheNavMesh,(Vector *)&local_18,&local_38,(Vector *)0x0);
if (cVar1 != '\0') {
local_18 = local_30;
local_14 = local_2c;
local_10 = local_28 + 18.0;
cVar1 = CNavMesh::GetSimpleGroundHeight(TheNavMesh,(Vector *)&local_18,&local_34,(Vector *)0x0);
if (cVar1 != '\0') {
return (longdouble)(local_38 - local_34);
}
}
return (longdouble)0.0;
}
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.