L L4D2node

CEnvTonemapController::InputSetBloomScaleRange

0x00697540 · 205 bytes · __thiscall

_ZN21CEnvTonemapController23InputSetBloomScaleRangeER11inputdata_t

Decompiled

undefined (2 params)

/* CEnvTonemapController::InputSetBloomScaleRange(inputdata_t&) */

void __thiscall
CEnvTonemapController::InputSetBloomScaleRange(CEnvTonemapController *this,inputdata_t *param_1)

{
  CBaseEdict *this_00;
  char *__format;
  int iVar1;
  undefined4 uVar2;
  undefined1 *puVar3;
  
  if (*(int *)(param_1 + 0x18) == 2) {
    __format = "";
    if (*(char **)(param_1 + 8) != (char *)0x0) {
      __format = *(char **)(param_1 + 8);
    }
  }
  else {
    __format = (char *)variant_t::ToString((variant_t *)(param_1 + 8));
  }
  iVar1 = sscanf("%f %f",__format,0x3ff0000000000000,0x3ff0000000000000);
  if (iVar1 == 2) {
    if (*(float *)(this + 0x45c) != 1.0) {
      if (this[0x6c] == (CEnvTonemapController)0x0) {
        this_00 = *(CBaseEdict **)(this + 0x30);
        if (this_00 != (CBaseEdict *)0x0) {
          *(uint *)this_00 = *(uint *)this_00 | 0x101;
          iVar1 = CBaseEdict::GetChangeAccessor(this_00);
          *(undefined2 *)(iVar1 + 2) = 0;
        }
      }
      else {
        this[0x70] = (CEnvTonemapController)((byte)this[0x70] | 1);
      }
      *(undefined4 *)(this + 0x45c) = 0x3f800000;
      return;
    }
  }
  else {
    uVar2 = CBaseEntity::GetDebugName((CBaseEntity *)this);
    puVar3 = &DAT_00d539c2;
    if (*(undefined1 **)(this + 0x7c) != (undefined1 *)0x0) {
      puVar3 = *(undefined1 **)(this + 0x7c);
    }
    Warning("%s (%s) received SetBloomScaleRange input without 2 arguments. Syntax: <max bloom> <min bloom>\n"
            ,puVar3,uVar2);
  }
  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)