L L4D2node

CFuncTrackTrain::DrawDebugGeometryOverlays

0x00b09c90 · 350 bytes · __thiscall

_ZN15CFuncTrackTrain25DrawDebugGeometryOverlaysEv

Decompiled

undefined (1 param)

/* CFuncTrackTrain::DrawDebugGeometryOverlays() */

void __thiscall CFuncTrackTrain::DrawDebugGeometryOverlays(CFuncTrackTrain *this)

{
  Vector local_40 [12];
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  
  CBaseEntity::DrawDebugGeometryOverlays((CBaseEntity *)this);
  if (((byte)this[0x110] & 4) != 0) {
    local_28 = 0x40800000;
    local_24 = 0x40800000;
    local_20 = 0x40800000;
    local_34 = 0xc0800000;
    local_30 = 0xc0800000;
    local_2c = 0xc0800000;
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    NDebugOverlay::Box((Vector *)(this + 0x2e0),(Vector *)&local_34,(Vector *)&local_28,0xff,0,0xff,
                       0,0.0);
    if (((byte)this[0x14d] & 8) != 0) {
      CBaseEntity::CalcAbsolutePosition((CBaseEntity *)this);
    }
    local_24 = 0;
    local_28 = *(undefined4 *)(this + 0x444);
    local_20 = 0;
    VectorTransform((float *)&local_28,(matrix3x4_t *)(this + 0x28c),(float *)local_40);
    local_34 = 0x40800000;
    local_30 = 0x40800000;
    local_2c = 0x40800000;
    local_28 = 0xc0800000;
    local_24 = 0xc0800000;
    local_20 = 0xc0800000;
    NDebugOverlay::Box(local_40,(Vector *)&local_28,(Vector *)&local_34,0xff,0,0xff,0,0.0);
  }
  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)