L L4D2node

CBreakableProp::CheckRemoveRagdolls

0x007e70e0 · 88 bytes · __thiscall

_ZN14CBreakableProp19CheckRemoveRagdollsEv.part.153

Decompiled

undefined (1 param)

/* CBreakableProp::CheckRemoveRagdolls() [clone .part.153] */

void __thiscall CBreakableProp::CheckRemoveRagdolls(CBreakableProp *this)

{
  CBaseEdict *this_00;
  CBaseEntity *in_EAX;
  int iVar1;
  uint uVar2;
  
  DetachAttachedRagdollsForEntity(in_EAX);
  uVar2 = *(uint *)(in_EAX + 0x148) & 0xfffff7ff;
  if (*(uint *)(in_EAX + 0x148) != uVar2) {
    if (in_EAX[0x6c] == (CBaseEntity)0x0) {
      this_00 = *(CBaseEdict **)(in_EAX + 0x30);
      if (this_00 != (CBaseEdict *)0x0) {
        *(uint *)this_00 = *(uint *)this_00 | 0x101;
        iVar1 = CBaseEdict::GetChangeAccessor(this_00);
        *(undefined2 *)(iVar1 + 2) = 0;
      }
    }
    else {
      in_EAX[0x70] = (CBaseEntity)((byte)in_EAX[0x70] | 1);
    }
    *(uint *)(in_EAX + 0x148) = uVar2;
  }
  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)