L L4D2node

Charger::~Charger

0x00a7bc20 · 217 bytes · __thiscall

_ZN7ChargerD2Ev

Decompiled

undefined (1 param)

/* Charger::~Charger() */

void __thiscall Charger::~Charger(Charger *this)

{
  int *piVar1;
  
  piVar1 = *(int **)(this + 0x431c);
  *(undefined ***)this = &PTR__Charger_00d2dfa8;
  *(undefined **)(this + 0x2364) = &DAT_00d2e970;
  *(undefined ***)(this + 0x4028) = &PTR__Charger_00d2e984;
  *(undefined ***)(this + 0x4258) = &PTR_PressFireButton_00d2ead4;
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 4))(piVar1);
    *(undefined4 *)(this + 0x431c) = 0;
  }
  piVar1 = *(int **)(this + 0x4314);
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 4))(piVar1);
    *(undefined4 *)(this + 0x4314) = 0;
  }
  piVar1 = *(int **)(this + 0x4318);
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 4))(piVar1);
    *(undefined4 *)(this + 0x4318) = 0;
  }
  piVar1 = *(int **)(this + 0x4320);
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 4))(piVar1);
    *(undefined4 *)(this + 0x4320) = 0;
  }
  *(undefined4 *)(this + 0x4334) = 0;
  CUtlMemory<CHandle<CBaseEntity>,int>::Purge
            ((CUtlMemory<CHandle<CBaseEntity>,int> *)(this + 0x4328));
  *(undefined4 *)(this + 0x4338) = *(undefined4 *)(this + 0x4328);
  CUtlMemory<CHandle<CBaseEntity>,int>::Purge
            ((CUtlMemory<CHandle<CBaseEntity>,int> *)(this + 0x4328));
  BossZombiePlayerBot::~BossZombiePlayerBot((BossZombiePlayerBot *)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)