L L4D2node

CMoveHelperServer::StartSound

0x006f7060 · 456 bytes · __thiscall

_ZN17CMoveHelperServer10StartSoundERK6VectoriPKcf12soundlevel_tii

Decompiled

undefined (8 params)

/* CMoveHelperServer::StartSound(Vector const&, int, char const*, float, soundlevel_t, int, int) */

void __thiscall
CMoveHelperServer::StartSound
          (CMoveHelperServer *this,Vector *param_1,undefined4 param_2,undefined4 param_3,
          undefined4 param_4,undefined4 param_6,undefined4 param_7,undefined4 param_8)

{
  int iVar1;
  CRecipientFilter local_80 [32];
  undefined4 local_60;
  undefined4 local_5c;
  undefined4 local_58;
  undefined4 local_54;
  undefined4 local_50;
  undefined4 local_4c;
  Vector *local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined1 local_3c;
  undefined1 local_3b;
  undefined1 local_3a;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined2 local_20;
  
  CRecipientFilter::CRecipientFilter(local_80);
                    /* try { // try from 006f7081 to 006f709c has its CatchHandler @ 006f7234 */
  CRecipientFilter::AddRecipientsByPAS(local_80,param_1);
  if (*(int *)(gpGlobals + 0x14) == 1) {
    local_44 = 0;
    local_20 = 0xffff;
    local_40 = 0;
    local_3c = 1;
    local_5c = param_3;
    local_60 = param_2;
    local_3b = 0;
    local_3a = 0;
    local_50 = param_7;
    local_54 = param_6;
    local_38 = 0xffffffff;
    local_34 = 0;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    local_24 = 0;
    local_58 = param_4;
    local_4c = param_8;
    local_48 = param_1;
    if (*(int *)(*(int *)(this + 4) + 0x30) == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = *(int *)(*(int *)(this + 4) + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
    }
                    /* try { // try from 006f721b to 006f721f has its CatchHandler @ 006f726c */
    CBaseEntity::EmitSound((IRecipientFilter *)local_80,iVar1,(EmitSound_t *)&local_60);
  }
  else {
    CRecipientFilter::UsePredictionRules(local_80);
    local_3c = 1;
    local_20 = 0xffff;
    local_44 = 0;
    local_40 = 0;
    local_3b = 0;
    local_60 = param_2;
    local_3a = 0;
    local_38 = 0xffffffff;
    local_34 = 0;
    local_5c = param_3;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    local_54 = param_6;
    local_24 = 0;
    local_58 = param_4;
    local_48 = param_1;
    local_50 = param_7;
    local_4c = param_8;
    if (*(int *)(*(int *)(this + 4) + 0x30) == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = *(int *)(*(int *)(this + 4) + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
    }
                    /* try { // try from 006f7140 to 006f7144 has its CatchHandler @ 006f7246 */
    CBaseEntity::EmitSound((IRecipientFilter *)local_80,iVar1,(EmitSound_t *)&local_60);
  }
  local_28 = 0;
  CUtlMemory<Vector,int>::Purge((CUtlMemory<Vector,int> *)&local_34);
  local_24 = local_34;
  CUtlMemory<Vector,int>::Purge((CUtlMemory<Vector,int> *)&local_34);
  CRecipientFilter::~CRecipientFilter(local_80);
  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)