L L4D2node

CResponseSystem::GetCurrentToken

0x005b53d0 · 34 bytes · __thiscall

_ZNK15CResponseSystem15GetCurrentTokenEv

Decompiled

undefined (1 param)

/* CResponseSystem::GetCurrentToken() const */

undefined4 __thiscall CResponseSystem::GetCurrentToken(CResponseSystem *this)

{
  if (0 < *(int *)(this + 0x3d8c)) {
    return *(undefined4 *)(*(int *)(this + 0x3d80) + 0xc);
  }
  return 0xffffffff;
}

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)