L L4D2node

CDatatableStack::Init

0x00156c40 · 101 bytes · __thiscall

_ZN15CDatatableStack4InitEb

Decompiled

undefined (2 params)

/* CDatatableStack::Init(bool) */

void __thiscall CDatatableStack::Init(CDatatableStack *this,bool param_1)

{
  if (!param_1) {
    (*(code *)**(undefined4 **)this)(this,*(int *)(this + 4) + 0x68,*(undefined4 *)(this + 0x108));
    this[0x118] = (CDatatableStack)0x1;
    return;
  }
  memset(this + 8,0xff,*(int *)(*(int *)(this + 4) + 0x24) << 2);
  this[0x118] = (CDatatableStack)0x1;
  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)