L L4D2node

CSlideshowDisplay::InputAddSlides

0x00823100 · 201 bytes · __thiscall

_ZN17CSlideshowDisplay14InputAddSlidesER11inputdata_t

Decompiled

undefined (2 params)

/* CSlideshowDisplay::InputAddSlides(inputdata_t&) */

void __thiscall CSlideshowDisplay::InputAddSlides(CSlideshowDisplay *this,inputdata_t *param_1)

{
  CBaseEdict *this_00;
  int iVar1;
  char *pcVar2;
  int iVar3;
  int iVar4;
  
  if (0 < *(int *)(this + 0x554)) {
    iVar4 = 0;
    do {
      if (*(int *)(param_1 + 0x18) == 2) {
        pcVar2 = *(char **)(param_1 + 8);
        if (pcVar2 == (char *)0x0) {
          pcVar2 = "";
        }
      }
      else {
        pcVar2 = (char *)variant_t::ToString((variant_t *)(param_1 + 8));
      }
      iVar1 = _V_strcmp(*(char **)(*(int *)(this + 0x548) + iVar4 * 4),pcVar2);
      if (iVar1 == 0) {
        if (*(int *)(this + 0x554) <= iVar4) {
          return;
        }
        iVar1 = 0;
        do {
          if (this[iVar1 + 0x55c] == (CSlideshowDisplay)0xff) {
            if (this[0x6c] == (CSlideshowDisplay)0x0) {
              this_00 = *(CBaseEdict **)(this + 0x30);
              if (this_00 != (CBaseEdict *)0x0) {
                *(uint *)this_00 = *(uint *)this_00 | 0x101;
                iVar3 = CBaseEdict::GetChangeAccessor(this_00);
                *(undefined2 *)(iVar3 + 2) = 0;
              }
            }
            else {
              this[0x70] = (CSlideshowDisplay)((byte)this[0x70] | 1);
            }
            this[iVar1 + 0x55c] = SUB41(iVar4,0);
            return;
          }
          iVar1 = iVar1 + 1;
        } while (iVar1 != 0x10);
        return;
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 < *(int *)(this + 0x554));
  }
  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)