L L4D2node

SurvivorBot::UpdateTeamSituation

0x00938640 · 182 bytes · __thiscall

_ZN11SurvivorBot19UpdateTeamSituationEv

Decompiled

undefined (1 param)

/* SurvivorBot::UpdateTeamSituation() */

void __thiscall SurvivorBot::UpdateTeamSituation(SurvivorBot *this)

{
  SurvivorBot *pSVar1;
  char cVar2;
  int *piVar3;
  undefined4 uVar4;
  int iVar5;
  
  iVar5 = 1;
  pSVar1 = this + 0x8b6c;
  (*(code *)**(undefined4 **)(this + 0x8b6c))(pSVar1);
  if (0 < *(int *)(gpGlobals + 0x14)) {
    do {
      piVar3 = (int *)UTIL_PlayerByIndex(iVar5);
      if ((((piVar3 != (int *)0x0) && (piVar3[0xc] != 0)) &&
          (piVar3[0xc] - *(int *)(gpGlobals + 0x58) >> 4 != 0)) &&
         (((cVar2 = (**(code **)(*piVar3 + 0x16c))(piVar3), cVar2 != '\0' && (piVar3[0x7db] != 2))
          && (cVar2 = (**(code **)(*(int *)(this + 0x8b6c) + 4))(pSVar1,piVar3), cVar2 == '\0')))) {
        uVar4 = 0;
        goto LAB_009386d7;
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 <= *(int *)(gpGlobals + 0x14));
  }
  uVar4 = 1;
LAB_009386d7:
  (**(code **)(*(int *)(this + 0x8b6c) + 8))(pSVar1,uVar4);
  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)