L L4D2node

SelectOverlappingAreas::operator()

0x00704150 · 371 bytes · __thiscall

_ZN22SelectOverlappingAreasclEP8CNavArea

Decompiled

undefined (2 params)

/* SelectOverlappingAreas::TEMPNAMEPLACEHOLDERVALUE(CNavArea*) */

undefined4 __thiscall
SelectOverlappingAreas::operator()(SelectOverlappingAreas *this,CNavArea *param_1)

{
  float fVar1;
  float fVar2;
  float fVar3;
  char cVar4;
  longdouble lVar5;
  CNavArea *local_3c;
  CNavLadder *local_38;
  float local_34;
  float local_30;
  float local_2c;
  float local_28;
  float local_24;
  float local_20;
  
  local_3c = (CNavArea *)0x0;
  local_38 = (CNavLadder *)0x0;
  local_2c = *(float *)(param_1 + 0xc);
  fVar1 = *(float *)(param_1 + 0x10);
  fVar2 = *(float *)(param_1 + 8);
  fVar3 = *(float *)(param_1 + 0x14);
  for (local_34 = *(float *)(param_1 + 4) + 12.5; local_34 < fVar1; local_34 = local_34 + 25.0) {
    if (fVar2 + 12.5 < fVar3) {
      local_30 = fVar2 + 12.5;
      do {
        lVar5 = (longdouble)CNavArea::GetZ(param_1,local_34,local_30);
        local_28 = local_34;
        local_2c = (float)lVar5 - 18.0;
        local_20 = (float)lVar5 + 35.5;
        local_24 = local_30;
        cVar4 = CNavMesh::FindNavAreaOrLadderAlongRay
                          (TheNavMesh,(Vector *)&local_34,(Vector *)&local_28,&local_3c,&local_38,
                           param_1);
        if ((cVar4 != '\0') && (local_3c != (CNavArea *)0x0)) {
          CNavMesh::AddToSelectedSet(TheNavMesh,local_3c);
          CNavMesh::AddToSelectedSet(TheNavMesh,param_1);
        }
        local_30 = local_30 + 25.0;
      } while (local_30 < fVar3);
    }
  }
  return 1;
}

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)