L L4D2node

CSceneEntity::ClearActivatorTargets

0x00815b30 · 957 bytes · __thiscall

_ZN12CSceneEntity21ClearActivatorTargetsEv

Decompiled

undefined (1 param)

/* CSceneEntity::ClearActivatorTargets() */

void __thiscall CSceneEntity::ClearActivatorTargets(CSceneEntity *this)

{
  CBaseEdict *pCVar1;
  int iVar2;
  char *pcVar3;
  
  pcVar3 = "";
  if (*(char **)(this + 0x454) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x454);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x474) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x458) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x458);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x478) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x45c) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x45c);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x47c) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x460) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x460);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x480) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x464) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x464);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x484) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x468) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x468);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x488) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x46c) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x46c);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 == 0) {
    *(undefined4 *)(this + 0x4d0) = 0;
    CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
    *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
    pCVar1 = *(CBaseEdict **)(this + 0x30);
    if (pCVar1 != (CBaseEdict *)0x0) {
      *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
      iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
      *(undefined2 *)(iVar2 + 2) = 0;
    }
    *(undefined4 *)(this + 0x48c) = 0xffffffff;
  }
  pcVar3 = "";
  if (*(char **)(this + 0x470) != (char *)0x0) {
    pcVar3 = *(char **)(this + 0x470);
  }
  iVar2 = _V_stricmp(pcVar3,"!activator");
  if (iVar2 != 0) {
    return;
  }
  *(undefined4 *)(this + 0x4d0) = 0;
  CUtlMemory<CHandle<CBaseFlex>,int>::Purge((CUtlMemory<CHandle<CBaseFlex>,int> *)(this + 0x4c4));
  *(undefined4 *)(this + 0x4d4) = *(undefined4 *)(this + 0x4c4);
  pCVar1 = *(CBaseEdict **)(this + 0x30);
  if (pCVar1 != (CBaseEdict *)0x0) {
    *(uint *)pCVar1 = *(uint *)pCVar1 | 0x101;
    iVar2 = CBaseEdict::GetChangeAccessor(pCVar1);
    *(undefined2 *)(iVar2 + 2) = 0;
  }
  *(undefined4 *)(this + 0x490) = 0xffffffff;
  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)