L L4D2node

CSmokeStack::CSmokeStack

0x00825660 · 667 bytes · __thiscall

_ZN11CSmokeStackC1Ev

Decompiled

undefined (1 param)

/* CSmokeStack::CSmokeStack() */

void __thiscall CSmokeStack::CSmokeStack(CSmokeStack *this)

{
  CBaseEdict *pCVar1;
  CSmokeStack CVar2;
  int iVar3;
  CSmokeStack *pCVar4;
  byte bVar5;
  
  bVar5 = 0;
  CBaseParticleEntity::CBaseParticleEntity((CBaseParticleEntity *)this);
  *(undefined ***)this = &PTR__CSmokeStack_00cceb08;
  pCVar4 = this + 0x464;
  for (iVar3 = 8; iVar3 != 0; iVar3 = iVar3 + -1) {
    *(undefined4 *)pCVar4 = 0;
    pCVar4 = pCVar4 + (uint)bVar5 * -8 + 4;
  }
  pCVar4 = this + 0x484;
  for (iVar3 = 8; iVar3 != 0; iVar3 = iVar3 + -1) {
    *(undefined4 *)pCVar4 = 0;
    pCVar4 = pCVar4 + (uint)bVar5 * -8 + 4;
  }
  *(CSmokeStack **)(this + 0x464) = this;
  *(CSmokeStack **)(this + 0x484) = this;
  if (*(float *)(this + 0x4a4) == 0.0) {
    CVar2 = this[0x6c];
  }
  else {
    if (this[0x6c] == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 == (CBaseEdict *)0x0) {
        CVar2 = (CSmokeStack)0x0;
      }
      else {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
        CVar2 = this[0x6c];
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
      CVar2 = (CSmokeStack)0x1;
    }
    *(undefined4 *)(this + 0x4a4) = 0;
  }
  if (this[0x124] != (CSmokeStack)0x0) {
    if (CVar2 == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
                    /* try { // try from 008256d7 to 008258c2 has its CatchHandler @ 00825937 */
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
        CVar2 = this[0x6c];
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    }
    this[0x124] = (CSmokeStack)0x0;
  }
  if (this[0x125] != (CSmokeStack)0x0) {
    if (CVar2 == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
        CVar2 = this[0x6c];
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    }
    this[0x125] = (CSmokeStack)0x0;
  }
  if (this[0x126] != (CSmokeStack)0x0) {
    if (CVar2 == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
        CVar2 = this[0x6c];
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    }
    this[0x126] = (CSmokeStack)0x0;
  }
  if (this[0x127] != (CSmokeStack)0xff) {
    if (CVar2 == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
        CVar2 = this[0x6c];
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    }
    this[0x127] = (CSmokeStack)0xff;
  }
  if (CVar2 == (CSmokeStack)0x0) {
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar3 + 2) = 0;
    }
  }
  else {
    this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
  }
  *(undefined4 *)(this + 0x4b8) = 0;
  *(undefined4 *)(this + 0x4bc) = 0;
  *(undefined4 *)(this + 0x4c0) = 0;
  *(undefined4 *)(this + 0x4b4) = 0;
  *(undefined4 *)(this + 0x4b0) = 0;
  if (*(int *)(this + 0x4ac) != -1) {
    if (this[0x6c] == (CSmokeStack)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar3 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    }
    *(undefined4 *)(this + 0x4ac) = 0xffffffff;
  }
  if (*(float *)(this + 0x458) == 0.0) {
    return;
  }
  if (this[0x6c] == (CSmokeStack)0x0) {
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar3 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar3 + 2) = 0;
    }
    *(undefined4 *)(this + 0x458) = 0;
  }
  else {
    this[0x70] = (CSmokeStack)((byte)this[0x70] | 1);
    *(undefined4 *)(this + 0x458) = 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)