L L4D2node

CBaseToggle::IsLockedByMaster

0x00833b20 · 116 bytes · __thiscall

_ZN11CBaseToggle16IsLockedByMasterEv

Decompiled

undefined (1 param)

/* CBaseToggle::IsLockedByMaster() */

undefined4 __thiscall CBaseToggle::IsLockedByMaster(CBaseToggle *this)

{
  uint uVar1;
  char cVar2;
  undefined *puVar3;
  undefined4 uVar4;
  
  if (*(int *)(this + 0x4b4) != 0) {
    uVar1 = *(uint *)(this + 0x494);
    uVar4 = 0;
    if (((uVar1 != 0xffffffff) &&
        (puVar3 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar3 != (undefined *)0xfffffffc)) &&
       (*(uint *)(puVar3 + 8) == uVar1 >> 0xc)) {
      uVar4 = *(undefined4 *)(puVar3 + 4);
    }
    cVar2 = UTIL_IsMasterTriggered(*(undefined4 *)(this + 0x4b4),uVar4);
    if (cVar2 == '\0') {
      return 1;
    }
  }
  return 0;
}

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)