L L4D2node

CPropDoorRotatingCheckpoint::OnTakeDamage

0x007e9aa0 · 356 bytes · __thiscall

_ZN27CPropDoorRotatingCheckpoint12OnTakeDamageERK15CTakeDamageInfo

Decompiled

undefined (2 params)

/* CPropDoorRotatingCheckpoint::OnTakeDamage(CTakeDamageInfo const&) */

undefined4 __thiscall
CPropDoorRotatingCheckpoint::OnTakeDamage
          (CPropDoorRotatingCheckpoint *this,CTakeDamageInfo *param_1)

{
  uint uVar1;
  CBaseEntity *this_00;
  char cVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  undefined4 local_7c;
  undefined4 local_78;
  undefined4 local_74;
  undefined4 local_70;
  undefined4 local_6c;
  undefined4 local_68;
  undefined4 local_64;
  undefined4 local_60;
  undefined4 local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  float local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  
  if ((this[0x105] == (CPropDoorRotatingCheckpoint)0x2) &&
     (((((uVar1 = *(uint *)(param_1 + 0x34), uVar1 != 0xffffffff &&
         (puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
        (*(uint *)(puVar5 + 8) == uVar1 >> 0xc)) &&
       (((this_00 = *(CBaseEntity **)(puVar5 + 4), this_00 != (CBaseEntity *)0x0 &&
         (cVar2 = (**(code **)(*(int *)this_00 + 0x16c))(this_00), cVar2 != '\0')) &&
        ((iVar4 = CBaseEntity::GetTeamNumber(this_00), iVar4 == 3 &&
         (iVar4 = (**(code **)(*(int *)this_00 + 0x544))(this_00), iVar4 == 8)))))) ||
      (*(int *)(DebugZombieBreakables._28_4_ + 0x30) != 0)))) {
    local_7c = *(undefined4 *)param_1;
    local_3c = *(undefined4 *)(param_1 + 0x40);
    local_38 = *(undefined4 *)(param_1 + 0x44);
    local_78 = *(undefined4 *)(param_1 + 4);
    local_74 = *(undefined4 *)(param_1 + 8);
    local_70 = *(undefined4 *)(param_1 + 0xc);
    local_6c = *(undefined4 *)(param_1 + 0x10);
    local_68 = *(undefined4 *)(param_1 + 0x14);
    local_64 = *(undefined4 *)(param_1 + 0x18);
    local_60 = *(undefined4 *)(param_1 + 0x1c);
    local_5c = *(undefined4 *)(param_1 + 0x20);
    local_58 = *(undefined4 *)(param_1 + 0x24);
    local_54 = *(undefined4 *)(param_1 + 0x28);
    local_50 = *(undefined4 *)(param_1 + 0x2c);
    local_4c = *(undefined4 *)(param_1 + 0x30);
    local_48 = *(undefined4 *)(param_1 + 0x34);
    local_44 = *(undefined4 *)(param_1 + 0x38);
    local_34 = *(undefined4 *)(param_1 + 0x48);
    local_24 = *(undefined4 *)(param_1 + 0x58);
    local_30 = *(undefined4 *)(param_1 + 0x4c);
    local_2c = *(undefined4 *)(param_1 + 0x50);
    local_28 = *(undefined4 *)(param_1 + 0x54);
    local_20 = *(undefined4 *)(param_1 + 0x5c);
    local_40 = (float)(*(int *)(this + 0x100) * 10);
    uVar3 = CBreakableProp::OnTakeDamage((CBreakableProp *)this,(CTakeDamageInfo *)&local_7c);
    return uVar3;
  }
  return 0;
}

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)