L L4D2node

CFire::DrawDebugGeometryOverlays

0x006a2200 · 517 bytes · __thiscall

_ZN5CFire25DrawDebugGeometryOverlaysEv

Decompiled

undefined (1 param)

/* CFire::DrawDebugGeometryOverlays() */

void __thiscall CFire::DrawDebugGeometryOverlays(CFire *this)

{
  char cVar1;
  int in_GS_OFFSET;
  Vector local_238 [12];
  Vector local_22c [12];
  char local_220 [512];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (((byte)this[0x110] & 4) == 0) goto LAB_006a22c0;
  if ((*(float *)(this + 0x454) < *(float *)(gpGlobals + 0xc) ||
       *(float *)(this + 0x454) == *(float *)(gpGlobals + 0xc)) || (*(float *)(this + 0x464) <= 0.0)
     ) {
    if (*(float *)(this + 0x460) <= 0.0) {
      NDebugOverlay::EntityBounds((CBaseEntity *)this,0x58,0x58,0x80,0,0.0);
      goto LAB_006a23a4;
    }
  }
  else {
    NDebugOverlay::EntityBounds((CBaseEntity *)this,0x58,0xff,0x80,0,0.0);
    V_snprintf(local_220,0x200,"Heat: %.1f",(double)*(float *)(this + 0x464));
    CBaseEntity::EntityText((CBaseEntity *)this,1,local_220,0.0,0xff,0xff,0xff,0xff);
LAB_006a23a4:
    if (*(float *)(this + 0x460) <= 0.0) goto LAB_006a22c0;
  }
  cVar1 = GetFireDimensions(this,local_238,local_22c);
  if (cVar1 != '\0') {
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    NDebugOverlay::Box((Vector *)(this + 0x2e0),local_238,local_22c,0x80,0,0,10,0.0);
  }
LAB_006a22c0:
  CBaseEntity::DrawDebugGeometryOverlays((CBaseEntity *)this);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  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)