L L4D2node

CBaseTrigger::DrawDebugTextOverlays

0x00b13690 · 428 bytes · __thiscall

_ZN12CBaseTrigger21DrawDebugTextOverlaysEv

Decompiled

undefined (1 param)

/* CBaseTrigger::DrawDebugTextOverlays() */

int __thiscall CBaseTrigger::DrawDebugTextOverlays(CBaseTrigger *this)

{
  code *pcVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  char local_11f [255];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = CBaseEntity::DrawDebugTextOverlays((CBaseEntity *)this);
  iVar5 = iVar2;
  if (((byte)this[0x110] & 1) != 0) {
    if (((byte)this[0x1b4] & 8) == 0) {
      V_strncpy(local_11f,"State: Disabled",0xff);
    }
    else {
      V_strncpy(local_11f,"State: Enabled",0xff);
    }
    iVar5 = iVar2 + 1;
    CBaseEntity::EntityText((CBaseEntity *)this,iVar2,local_11f,0.0,0xff,0xff,0xff,0xff);
    pcVar1 = *(code **)(*debugoverlay + 4);
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    uVar3 = (**(code **)(*(int *)(this + 0x194) + 8))(this + 0x194);
    uVar4 = (**(code **)(*(int *)(this + 0x194) + 4))(this + 0x194);
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    (*pcVar1)(debugoverlay,this + 0x2e0,uVar4,uVar3,this + 0x37c,0xff,0,0,10,0x3c279bbb);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)