L L4D2node

CBaseBackpackItem::ItemPostFrame

0x005254b0 · 688 bytes · __thiscall

_ZN17CBaseBackpackItem13ItemPostFrameEv

Decompiled

undefined (1 param)

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

void __thiscall CBaseBackpackItem::ItemPostFrame(CBaseBackpackItem *this)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  longdouble lVar7;
  CBaseBackpackItem *pCVar8;
  undefined4 local_24;
  undefined4 local_20;
  
  local_24 = 0;
  local_20 = 0;
  if (___atan2f_finite == 0) {
    iVar6 = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_24,0,0,0,0,
               "/data/src/game/server/../../game/shared/terror/weapons/basebackpackitem.cpp",0x102,
               &ItemPostFrame()::tm_fmt,"(%s)%s","Unaccounted","CBaseBackpackItem::ItemPostFrame");
    iVar6 = ___atan2f_finite;
  }
  uVar2 = local_20;
  uVar1 = local_24;
  iVar4 = _DAT_0105db00;
                    /* try { // try from 005255e6 to 00525634 has its CatchHandler @ 00525774 */
  if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
     (iVar5 = ThreadGetCurrentId(), iVar4 == iVar5)) {
    if ((char *)*_DAT_0105d15c != "CBaseBackpackItem::ItemPostFrame") {
      _DAT_0105d15c =
           (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xc30ed0,(char *)0x1,0xbfafa1);
    }
    CVProfNode::EnterScope();
    DAT_0105d158 = '\0';
  }
                    /* try { // try from 00525564 to 0052557f has its CatchHandler @ 005257ae */
  iVar4 = CTerrorWeapon::GetPlayerOwner((CTerrorWeapon *)this);
  if (iVar4 != 0) {
    iVar5 = *(int *)(iVar4 + 0x1cb0);
    CTerrorWeapon::ItemPostFrame((CTerrorWeapon *)this);
    if (this[0x17dc] != (CBaseBackpackItem)0x0) {
                    /* try { // try from 005256b2 to 005256e6 has its CatchHandler @ 005257ae */
      ActionUpdate(this,iVar5);
      pCVar8 = this + 0x17e0;
      lVar7 = (longdouble)CountdownTimer::Now();
      if (*(float *)(this + 0x17e8) <= (float)lVar7) {
        *(int *)(iVar4 + 0x1cb0) = iVar5;
        CompleteAction(this);
        pCVar8 = this;
      }
      iVar4 = _DAT_0105db00;
      if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
         (iVar5 = ThreadGetCurrentId(pCVar8), iVar4 == iVar5)) {
        cVar3 = CVProfNode::ExitScope();
        if (cVar3 != '\0') {
          _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
        }
        DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
      }
      if (iVar6 == 0) {
        return;
      }
      (**(code **)(iVar6 + 0x54))(iVar6,uVar1,uVar2,0,0,0);
      return;
    }
  }
  iVar4 = _DAT_0105db00;
  if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
     (iVar5 = ThreadGetCurrentId(), iVar4 == iVar5)) {
    cVar3 = CVProfNode::ExitScope();
    if (cVar3 != '\0') {
      _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
    }
    DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
  }
  if (iVar6 != 0) {
    (**(code **)(iVar6 + 0x54))(iVar6,uVar1,uVar2,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)