L L4D2node

CSurvivorRescue::CloseDoors

0x00969ae0 · 217 bytes · __thiscall

_ZN15CSurvivorRescue10CloseDoorsEv

Decompiled

undefined (1 param)

/* CSurvivorRescue::CloseDoors() */

undefined4 __thiscall CSurvivorRescue::CloseDoors(CSurvivorRescue *this)

{
  uint uVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined *puVar4;
  int iVar5;
  undefined4 local_30 [3];
  undefined4 local_24;
  undefined4 local_20;
  
  if (*(int *)(this + 0x1950) < 1) {
    uVar3 = 0;
  }
  else {
    iVar5 = 0;
    uVar3 = 0;
    do {
      while ((((uVar1 = *(uint *)(*(int *)(this + 0x1944) + iVar5 * 4), uVar1 != 0xffffffff &&
               (puVar4 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc))
              && (*(uint *)(puVar4 + 8) == uVar1 >> 0xc)) &&
             ((piVar2 = *(int **)(puVar4 + 4), piVar2 != (int *)0x0 && (piVar2[0x57d] != 0))))) {
        local_30[0] = 0;
        local_24 = 0xffffffff;
        iVar5 = iVar5 + 1;
        local_20 = 0;
        (**(code **)(*piVar2 + 0xb4))(piVar2,"Close",0,0,local_30,0);
        uVar3 = 1;
        if (*(int *)(this + 0x1950) <= iVar5) {
          return 1;
        }
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < *(int *)(this + 0x1950));
  }
  return uVar3;
}

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)