L L4D2node

CBaseAnimating::CBaseAnimating

0x005e0300 · 863 bytes · __thiscall

_ZN14CBaseAnimatingC1Ev

Decompiled

undefined (1 param)

/* CBaseAnimating::CBaseAnimating() */

void __thiscall CBaseAnimating::CBaseAnimating(CBaseAnimating *this)

{
  CBaseEdict *pCVar1;
  int iVar2;
  float fVar3;
  
  CBaseEntity::CBaseEntity((CBaseEntity *)this,false);
  *(undefined ***)this = &PTR__CBaseAnimating_00c5a548;
  *(undefined2 *)(this + 0x560) = 0xffff;
  *(undefined2 *)(this + 0x562) = 0xffff;
  *(undefined2 *)(this + 0x564) = 0xffff;
  *(undefined4 *)(this + 0x518) = 0xffffffff;
  *(undefined4 *)(this + 0x53c) = 0;
  *(undefined4 *)(this + 0x548) = 0xffffffff;
  *(undefined4 *)(this + 0x54c) = 0;
  this[0x566] = (CBaseAnimating)0x0;
  this[0x567] = (CBaseAnimating)0x0;
  this[0x568] = (CBaseAnimating)0x0;
  this[0x569] = (CBaseAnimating)0x0;
  *(undefined4 *)(this + 0x56c) = 0;
  *(undefined4 *)(this + 0x570) = 0;
  *(undefined4 *)(this + 0x574) = 0;
  this[0x578] = (CBaseAnimating)0x0;
                    /* try { // try from 005e03b7 to 005e0626 has its CatchHandler @ 005e06a6 */
  CBoneList::CBoneList((CBoneList *)(this + 0x5dc));
  *(undefined4 *)(this + 0x13e4) = 0;
  *(undefined4 *)(this + 0x13e8) = 0;
  *(undefined4 *)(this + 0x13ec) = 0;
  *(undefined4 *)(this + 0x13f0) = 0;
  if (this[0x6c] == (CBaseAnimating)0x0) {
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
  }
  else {
    this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
  }
  *(undefined4 *)(this + 0x44c) = 0;
  *(undefined4 *)(this + 0x450) = 0;
  *(undefined4 *)(this + 0x454) = 0;
  if (*(int *)(this + 0x448) != 0) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    *(undefined4 *)(this + 0x448) = 0;
  }
  if (this[0x508] != (CBaseAnimating)0x0) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    this[0x508] = (CBaseAnimating)0x0;
  }
  *(undefined4 *)(this + 0x480) = 0;
  *(undefined4 *)(this + 0x484) = 0;
  InitStepHeightAdjust(this);
  if (*(float *)(this + 0x464) != 1.0) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    *(undefined4 *)(this + 0x464) = 0x3f800000;
  }
  iVar2 = gpGlobals;
  fVar3 = *(float *)(gpGlobals + 0xc);
  if (fVar3 != *(float *)(this + 0x90)) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
        iVar2 = gpGlobals;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    *(float *)(this + 0x90) = fVar3;
    fVar3 = *(float *)(iVar2 + 0xc);
  }
  *(float *)(this + 0x8c) = fVar3;
  if (*(int *)(this + 0x50c) != 0) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    *(undefined4 *)(this + 0x50c) = 0;
  }
  if (*(int *)(this + 0x510) != 0) {
    if (this[0x6c] == (CBaseAnimating)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 != (CBaseEdict *)0x0) {
        *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
        iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
        *(undefined2 *)(iVar2 + 2) = 0;
      }
    }
    else {
      this[0x70] = (CBaseAnimating)((byte)this[0x70] | 1);
    }
    *(undefined4 *)(this + 0x510) = 0;
  }
  *(undefined4 *)(this + 0x520) = 0;
  *(undefined4 *)(this + 0x13e0) = 0;
  CBaseEntity::SetGlobalFadeScale((CBaseEntity *)this,1.0);
  *(undefined2 *)(this + 0x524) = 0;
  CGlowProperty::Init((CGlowProperty *)(this + 0x1f0),(CBaseEntity *)this);
  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)