L L4D2node

Music::OnAdrenalineStart

0x008e9240 · 192 bytes · __thiscall

_ZN5Music17OnAdrenalineStartEv

Decompiled

undefined (1 param)

/* Music::OnAdrenalineStart() */

void __thiscall Music::OnAdrenalineStart(Music *this)

{
  CBasePlayer *pCVar1;
  char cVar2;
  undefined **local_2c [8];
  
  if (*(float *)(this + 0x174) != 1.0) {
    (**(code **)(*(int *)this + 0xc))(this,this + 0x174);
    *(undefined4 *)(this + 0x174) = 0x3f800000;
  }
  cVar2 = (**(code **)(**(int **)(this + 0x378) + 0x170))(*(int **)(this + 0x378));
  if (cVar2 == '\0') {
    return;
  }
  pCVar1 = *(CBasePlayer **)(this + 0x378);
  CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_2c);
  local_2c[0] = &PTR__CSingleUserRecipientFilter_00c08ea8;
                    /* try { // try from 008e929f to 008e92a3 has its CatchHandler @ 008e9309 */
  CRecipientFilter::AddRecipient((CRecipientFilter *)local_2c,pCVar1);
                    /* try { // try from 008e92c2 to 008e92c4 has its CatchHandler @ 008e931b */
  (**(code **)(*enginesound + 0x2c))(enginesound,(CRecipientFilter *)local_2c,0x8f,0);
  local_2c[0] = &PTR__CSingleUserRecipientFilter_00c08ea8;
  CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_2c);
  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)