L L4D2node

DispInfoRenderDebugModes

0x00133ef0 · 205 bytes · unknown

_Z24DispInfoRenderDebugModesv

Decompiled

undefined (0 params)

/* WARNING: Type propagation algorithm not settling */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DispInfoRenderDebugModes() */

undefined4 DispInfoRenderDebugModes(void)

{
  char cVar1;
  int iVar2;
  undefined1 *puVar3;
  
  cVar1 = ConVar::IsFlagSet((ConVar *)sv_hosting_lobby,2);
  if (cVar1 == '\0') {
    iVar2 = *(int *)(sv_cheats._28_4_ + 0x30);
joined_r0x00133f85:
    if (iVar2 == 0) goto LAB_00133f87;
  }
  else {
    if ((g_pMatchFramework == (int *)0x0) ||
       (iVar2 = (**(code **)(*g_pMatchFramework + 0x24))(g_pMatchFramework), iVar2 == 0)) {
      puVar3 = sv_cheats;
    }
    else {
      puVar3 = (undefined1 *)0x0;
    }
    if (((DAT_003b80d0 == 0 && _DAT_003b80cc == 0) &&
        (*(int *)(sv_hosting_lobby._28_4_ + 0x30) == 0)) && (puVar3 != (undefined1 *)0x0)) {
      iVar2 = *(int *)(*(int *)(puVar3 + 0x1c) + 0x30);
      goto joined_r0x00133f85;
    }
LAB_00133f87:
    cVar1 = Cmd_IsRptActive();
    if (cVar1 == '\0') goto LAB_00133f90;
  }
  if (*(int *)(mat_wireframe._28_4_ + 0x30) != 0) {
    return 1;
  }
LAB_00133f90:
  if (((*(int *)(mat_luxels._28_4_ + 0x30) == 0) && (*(int *)(r_DispWalkable._28_4_ + 0x30) == 0))
     && (*(int *)(r_DispBuildable._28_4_ + 0x30) == 0)) {
    return 0;
  }
  return 1;
}

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)