L L4D2node

CNavMesh::CommandNavCornerLower

0x0070d2a0 · 391 bytes · __thiscall

_ZN8CNavMesh21CommandNavCornerLowerERK8CCommand

Decompiled

undefined (2 params)

/* CNavMesh::CommandNavCornerLower(CCommand const&) */

void __thiscall CNavMesh::CommandNavCornerLower(CNavMesh *this,CCommand *param_1)

{
  int iVar1;
  undefined4 uVar2;
  char cVar3;
  CBaseEntity *this_00;
  long lVar4;
  int iVar5;
  CNavArea *pCVar6;
  int iVar7;
  
  cVar3 = TestFilesWritable(this);
  if (cVar3 != '\0') {
    this_00 = (CBaseEntity *)UTIL_GetListenServerHost();
    if ((this_00 != (CBaseEntity *)0x0) && (*(int *)(this + 0x458) == 0)) {
      iVar7 = -1;
      if (1 < *(int *)param_1) {
        lVar4 = strtol(*(char **)(param_1 + 0x40c),(char **)0x0,10);
        iVar7 = -lVar4;
      }
      if (*(int *)(this + 0x4e0) != 0) {
        CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.MarkedArea",0.0,(float *)0x0);
        if (0 < *(int *)(this + 0x4e0)) {
          iVar5 = 0;
          do {
            iVar1 = iVar5 * 4;
            iVar5 = iVar5 + 1;
            CNavArea::RaiseCorner(*(CNavArea **)(*(int *)(this + 0x4d4) + iVar1),4,iVar7,0);
          } while (iVar5 < *(int *)(this + 0x4e0));
        }
        Msg();
        return;
      }
      FindActiveNavArea(this);
      if (*(int *)(this + 0x474) != 0) {
        iVar5 = GetMarkedArea(this);
        if (iVar5 == 0) {
          CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.NoMarkedArea",0.0,(float *)0x0);
        }
        else {
          uVar2 = *(undefined4 *)(this + 0x47c);
          pCVar6 = (CNavArea *)GetMarkedArea(this);
          CNavArea::RaiseCorner(pCVar6,uVar2,iVar7,1);
          CBaseEntity::EmitSound(this_00,"EDIT_MOVE_CORNER.MarkedArea",0.0,(float *)0x0);
        }
      }
    }
  }
  return;
}

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)