L L4D2node

CPostProcessController::CPostProcessController

0x007e2cb0 · 749 bytes · __thiscall

_ZN22CPostProcessControllerC1Ev

Decompiled

undefined (1 param)

/* CPostProcessController::CPostProcessController() */

void __thiscall CPostProcessController::CPostProcessController(CPostProcessController *this)

{
  CBaseEdict *pCVar1;
  int iVar2;
  
  CBaseEntity::CBaseEntity((CBaseEntity *)this,false);
  *(undefined ***)this = &PTR__CPostProcessController_00cc07c8;
  *(undefined4 *)(this + 0x440) = 0;
  if (this[0x6c] == (CPostProcessController)0x0) {
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) {
      *(undefined4 *)(this + 0x444) = 0;
LAB_007e2f52:
      *(undefined4 *)(this + 0x448) = 0x3f800000;
LAB_007e2f5c:
      *(undefined4 *)(this + 0x44c) = 0x40000000;
LAB_007e2f66:
      *(undefined4 *)(this + 0x450) = 0;
LAB_007e2f70:
      *(undefined4 *)(this + 0x454) = 0;
LAB_007e2f7a:
      *(undefined4 *)(this + 0x458) = 0x3f800000;
LAB_007e2f84:
      *(undefined4 *)(this + 0x45c) = 0x3f800000;
LAB_007e2f8e:
      *(undefined4 *)(this + 0x460) = 0x40000000;
LAB_007e2f98:
      this[0x464] = (CPostProcessController)0x0;
      return;
    }
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
                    /* try { // try from 007e2cf9 to 007e2ecf has its CatchHandler @ 007e2fa6 */
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x444) = 0;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2eea;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f52;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x448) = 0x3f800000;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2ef4;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f5c;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x44c) = 0x40000000;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2efe;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f66;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x450) = 0;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2f08;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f70;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x454) = 0;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2f12;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f7a;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x458) = 0x3f800000;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2f1c;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f84;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x45c) = 0x3f800000;
    if (this[0x6c] != (CPostProcessController)0x0) goto LAB_007e2f26;
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f8e;
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
    *(undefined4 *)(this + 0x460) = 0x40000000;
    if (this[0x6c] == (CPostProcessController)0x0) {
      pCVar1 = *(CBaseEdict **)(this + 0x30);
      if (pCVar1 == (CBaseEdict *)0x0) goto LAB_007e2f98;
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
      this[0x464] = (CPostProcessController)0x0;
      if (this[0x6c] == (CPostProcessController)0x0) {
        pCVar1 = *(CBaseEdict **)(this + 0x30);
        if (pCVar1 != (CBaseEdict *)0x0) {
          *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
          iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
          *(undefined2 *)(iVar2 + 2) = 0;
        }
        return;
      }
      goto LAB_007e2f37;
    }
  }
  else {
    *(undefined4 *)(this + 0x444) = 0;
LAB_007e2eea:
    *(undefined4 *)(this + 0x448) = 0x3f800000;
LAB_007e2ef4:
    *(undefined4 *)(this + 0x44c) = 0x40000000;
LAB_007e2efe:
    *(undefined4 *)(this + 0x450) = 0;
LAB_007e2f08:
    *(undefined4 *)(this + 0x454) = 0;
LAB_007e2f12:
    *(undefined4 *)(this + 0x458) = 0x3f800000;
LAB_007e2f1c:
    *(undefined4 *)(this + 0x45c) = 0x3f800000;
LAB_007e2f26:
    *(undefined4 *)(this + 0x460) = 0x40000000;
  }
  this[0x464] = (CPostProcessController)0x0;
LAB_007e2f37:
  this[0x70] = (CPostProcessController)((byte)this[0x70] | 1);
  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)