L L4D2node

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 into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)