L L4D2node

SmokerIntention::Update

0x00acb040 · 473 bytes · __thiscall

_ZN15SmokerIntention6UpdateEv

Decompiled

undefined (1 param)

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

void __thiscall SmokerIntention::Update(SmokerIntention *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/smoker/smokerintention.cpp",0x3b,
               &Update()::tm_fmt,"(%s)%s","NextBotSpiky","SmokerIntention::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 00acb1a6 to 00acb206 has its CatchHandler @ 00acb244 */
    iVar4 = ThreadGetCurrentId();
    if (iVar2 == iVar4) {
      if ((char *)*_DAT_0105d15c != "SmokerIntention::Update") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xd35df0,(char *)0x0,0xbfa1cb);
      }
      puVar1 = (uint *)(_DAT_0105d1e8 + 4 + _DAT_0105d15c[0x1c] * 8);
      *puVar1 = *puVar1 | 4;
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  if (*(Smoker **)(this + 0x1c) != (Smoker *)0x0) {
                    /* try { // try from 00acb10f to 00acb113 has its CatchHandler @ 00acb223 */
    Behavior<Smoker>::Update(*(Smoker **)(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)