L L4D2node

CEventQueue::Init

0x0063c1f0 · 59 bytes · __thiscall

_ZN11CEventQueue4InitEv

Decompiled

undefined (1 param)

/* CEventQueue::Init() */

void __thiscall CEventQueue::Init(CEventQueue *this)

{
  void *pvVar1;
  void *pvVar2;
  
  pvVar2 = *(void **)(this + 0x30);
  while (pvVar2 != (void *)0x0) {
    pvVar1 = *(void **)((int)pvVar2 + 0x30);
    CUtlMemoryPool::Free((CUtlMemoryPool *)EventQueuePrioritizedEvent_t::s_Allocator,pvVar2);
    pvVar2 = pvVar1;
  }
  *(undefined4 *)(this + 0x30) = 0;
  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)