L L4D2node

TankIntention::Update

0x00aeff30 · 473 bytes · __thiscall

_ZN13TankIntention6UpdateEv

Decompiled

undefined (1 param)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* TankIntention::Update() */

void __thiscall TankIntention::Update(TankIntention *this)

{
  uint *puVar1;
  int iVar2;
  char cVar3;
  int iVar4;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_24 = 0;
  local_20 = 0;
  if (_towlower == 0) {
    local_10 = 0;
  }
  else {
    (**(code **)(_towlower + 0x50))
              (_towlower,&local_24,0,0,0,0,
               "/data/src/game/server/terror/zombieplayerbot/tank/tankintention.cpp",0x3b,
               &Update()::tm_fmt,"(%s)%s","NextBot","TankIntention::Update");
    local_10 = _towlower;
  }
  iVar2 = _DAT_0105db00;
  local_18 = local_24;
  local_14 = local_20;
  if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
                    /* try { // try from 00af0096 to 00af00f6 has its CatchHandler @ 00af0134 */
    iVar4 = ThreadGetCurrentId();
    if (iVar2 == iVar4) {
      if ((char *)*_DAT_0105d15c != "TankIntention::Update") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xd39af0,(char *)0x0,0xca8906);
      }
      puVar1 = (uint *)(_DAT_0105d1e8 + 4 + _DAT_0105d15c[0x1c] * 8);
      *puVar1 = *puVar1 | 4;
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  if (*(Tank **)(this + 0x1c) != (Tank *)0x0) {
                    /* try { // try from 00aeffff to 00af0003 has its CatchHandler @ 00af0113 */
    Behavior<Tank>::Update(*(Tank **)(this + 0x1c),*(float *)(this + 0x18));
  }
  iVar2 = _DAT_0105db00;
  if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
    iVar4 = ThreadGetCurrentId();
    if (iVar2 == iVar4) {
      cVar3 = CVProfNode::ExitScope();
      if (cVar3 != '\0') {
        _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
      }
      DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
    }
  }
  if (local_10 != 0) {
    (**(code **)(local_10 + 0x54))(local_10,local_18,local_14,0,0,0);
  }
  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)