L L4D2node

CHLTVClientState::ProcessSounds

0x00169c80 · 183 bytes · __thiscall

_ZN16CHLTVClientState13ProcessSoundsEP10SVC_Sounds

Decompiled

undefined (2 params)

/* CHLTVClientState::ProcessSounds(SVC_Sounds*) */

void __thiscall CHLTVClientState::ProcessSounds(CHLTVClientState *this,SVC_Sounds *param_1)

{
  undefined4 uVar1;
  CHLTVClientState *pCVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  int in_GS_OFFSET;
  int aiStack_50 [2];
  int iStack_48;
  uint auStack_44 [5];
  CHLTVClientState *local_30 [4];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30[0] = this;
  iVar3 = *(int *)(param_1 + 0x54) + 7 >> 3;
  uVar4 = iVar3 + 3;
  uVar5 = iVar3 + 6;
  if (-1 < (int)uVar4) {
    uVar5 = uVar4;
  }
  iVar3 = -(((uVar5 & 0xfffffffc) + 0xf & 0xfffffff0) + 0x10);
  *(int *)((int)auStack_44 + iVar3) = *(int *)(param_1 + 0x54);
  *(SVC_Sounds **)((int)aiStack_50 + iVar3 + 4) = param_1 + 0x58;
  *(int *)((int)&iStack_48 + iVar3) = (int)local_30 + iVar3;
  *(undefined4 *)((int)aiStack_50 + iVar3) = 0x169cd7;
  CBitRead::ReadBits(*(CBitRead **)((int)aiStack_50 + iVar3 + 4),*(void **)((int)&iStack_48 + iVar3)
                     ,*(int *)((int)auStack_44 + iVar3));
  *(undefined4 *)((int)auStack_44 + iVar3 + 8) = 0xffffffff;
  uVar1 = *(undefined4 *)(param_1 + 0x54);
  *(uint *)((int)auStack_44 + iVar3) = uVar5 & 0xfffffffc;
  *(int *)((int)&iStack_48 + iVar3) = (int)local_30 + iVar3;
  *(undefined4 *)((int)auStack_44 + iVar3 + 4) = uVar1;
  *(SVC_Sounds **)((int)aiStack_50 + iVar3 + 4) = param_1 + 0x7c;
  *(undefined4 *)((int)aiStack_50 + iVar3) = 0x169cf9;
  bf_write::StartWriting
            (*(bf_write **)((int)aiStack_50 + iVar3 + 4),*(void **)((int)&iStack_48 + iVar3),
             *(int *)((int)auStack_44 + iVar3),*(int *)((int)auStack_44 + iVar3 + 4),
             *(int *)((int)auStack_44 + iVar3 + 8));
  pCVar2 = local_30[0];
  *(undefined4 *)((int)auStack_44 + iVar3 + 4) = 0;
  *(undefined4 *)((int)auStack_44 + iVar3) = 0;
  *(SVC_Sounds **)((int)&iStack_48 + iVar3) = param_1;
  *(undefined4 *)((int)aiStack_50 + iVar3 + 4) = *(undefined4 *)(pCVar2 + 0x49ec);
  *(undefined4 *)((int)aiStack_50 + iVar3) = 0x169d1e;
  CHLTVServer::SendNetMsg
            (*(INetMessage **)((int)aiStack_50 + iVar3 + 4),*(bool *)((int)&iStack_48 + iVar3),
             *(bool *)((int)auStack_44 + iVar3));
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)((int)aiStack_50 + iVar3) = &UNK_00169d37;
  __stack_chk_fail();
}

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)