L L4D2node

CEnvScreenOverlay::InputStartOverlay

0x00695570 · 318 bytes · __cdecl

_ZN17CEnvScreenOverlay17InputStartOverlayER11inputdata_t

Decompiled

undefined (1 param)

/* CEnvScreenOverlay::InputStartOverlay(inputdata_t&) */

void CEnvScreenOverlay::InputStartOverlay(inputdata_t *param_1)

{
  float fVar1;
  CBaseEdict *pCVar2;
  int iVar3;
  CBaseEntity *pCVar4;
  undefined1 *puStack00000008;
  
  if (*(int *)(param_1 + 0x440) != 0) {
    fVar1 = *(float *)(gpGlobals + 0xc);
    if (fVar1 != *(float *)(param_1 + 0x490)) {
      if (param_1[0x6c] == (inputdata_t)0x0) {
        pCVar2 = *(CBaseEdict **)(param_1 + 0x30);
        if (pCVar2 != (CBaseEdict *)0x0) {
          *(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
          iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
          *(undefined2 *)(iVar3 + 2) = 0;
        }
      }
      else {
        param_1[0x70] = (inputdata_t)((byte)param_1[0x70] | 1);
      }
      *(float *)(param_1 + 0x490) = fVar1;
    }
    if (param_1[0x498] != (inputdata_t)0x1) {
      if (param_1[0x6c] == (inputdata_t)0x0) {
        pCVar2 = *(CBaseEdict **)(param_1 + 0x30);
        if (pCVar2 != (CBaseEdict *)0x0) {
          *(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
          iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
          *(undefined2 *)(iVar3 + 2) = 0;
        }
      }
      else {
        param_1[0x70] = (inputdata_t)((byte)param_1[0x70] | 1);
      }
      param_1[0x498] = (inputdata_t)0x1;
    }
    pCVar4 = (CBaseEntity *)0x0;
    while( true ) {
      pCVar4 = (CBaseEntity *)
               CGlobalEntityList::FindEntityByClassname
                         ((CGlobalEntityList *)gEntList,pCVar4,"env_screenoverlay");
      if (pCVar4 == (CBaseEntity *)0x0) break;
      if ((pCVar4 != (CBaseEntity *)param_1) && (pCVar4[0x498] != (CBaseEntity)0x0)) {
        if (pCVar4[0x6c] == (CBaseEntity)0x0) {
          pCVar2 = *(CBaseEdict **)(pCVar4 + 0x30);
          if (pCVar2 != (CBaseEdict *)0x0) {
            *(uint *)pCVar2 = *(uint *)pCVar2 | 0x101;
            iVar3 = CBaseEdict::GetChangeAccessor(pCVar2);
            *(undefined2 *)(iVar3 + 2) = 0;
          }
        }
        else {
          pCVar4[0x70] = (CBaseEntity)((byte)pCVar4[0x70] | 1);
        }
        pCVar4[0x498] = (CBaseEntity)0x0;
      }
    }
    return;
  }
  puStack00000008 = &DAT_00d539c2;
  if (*(undefined1 **)(param_1 + 0x154) != (undefined1 *)0x0) {
    puStack00000008 = *(undefined1 **)(param_1 + 0x154);
  }
  Warning();
  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)