L L4D2node

CTankClaw::ItemPostFrame

0x0055e340 · 726 bytes · __thiscall

_ZN9CTankClaw13ItemPostFrameEv

Decompiled

undefined (1 param)

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

void __thiscall CTankClaw::ItemPostFrame(CTankClaw *this)

{
  int iVar1;
  char cVar2;
  int *piVar3;
  int iVar4;
  longdouble lVar5;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_24 = 0;
  local_20 = 0;
  if (___atan2f_finite == 0) {
    local_10 = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_24,0,0,0,0,
               "/data/src/game/server/../../game/shared/terror/weapons/tankfist.cpp",0x1d3,
               &ItemPostFrame()::tm_fmt,"(%s)%s","Unaccounted","CTankClaw::ItemPostFrame");
    local_10 = ___atan2f_finite;
  }
  iVar1 = _DAT_0105db00;
  local_18 = local_24;
  local_14 = local_20;
                    /* try { // try from 0055e546 to 0055e594 has its CatchHandler @ 0055e62f */
  if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
     (iVar4 = ThreadGetCurrentId(), iVar1 == iVar4)) {
    if ((char *)*_DAT_0105d15c != "CTankClaw::ItemPostFrame") {
      _DAT_0105d15c =
           (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc4f82c,(char *)0x1,0xbfafa1);
    }
    CVProfNode::EnterScope();
    DAT_0105d158 = '\0';
  }
                    /* try { // try from 0055e3f6 to 0055e480 has its CatchHandler @ 0055e644 */
  piVar3 = (int *)CTerrorWeapon::GetPlayerOwner((CTerrorWeapon *)this);
  if ((piVar3 != (int *)0x0) && (cVar2 = (**(code **)(*piVar3 + 0x7e8))(piVar3), cVar2 == '\0')) {
    if (0.0 < *(float *)(this + 0x17e4)) {
      lVar5 = (longdouble)CountdownTimer::Now();
      if (*(float *)(this + 0x17e4) <= (float)lVar5) {
        if (*(float *)(this + 0x17e4) != -1.0) {
          (**(code **)(*(int *)(this + 0x17dc) + 4))(this + 0x17dc,this + 0x17e4);
          *(undefined4 *)(this + 0x17e4) = 0xbf800000;
        }
        (**(code **)(*(int *)this + 0x714))(this);
      }
    }
    CTerrorWeapon::ItemPostFrame((CTerrorWeapon *)this);
    iVar1 = _DAT_0105db00;
    if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
       (iVar4 = ThreadGetCurrentId(), iVar1 == iVar4)) {
      cVar2 = CVProfNode::ExitScope();
      if (cVar2 != '\0') {
        _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
      }
      DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
    }
    if (local_10 == 0) {
      return;
    }
    (**(code **)(local_10 + 0x54))(local_10,local_18,local_14,0,0,0);
    return;
  }
  iVar1 = _DAT_0105db00;
  if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
     (iVar4 = ThreadGetCurrentId(), iVar1 == iVar4)) {
    cVar2 = CVProfNode::ExitScope();
    if (cVar2 != '\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)