L L4D2node

Music::OnAdrenalineStop

0x008e9150 · 178 bytes · __thiscall

_ZN5Music16OnAdrenalineStopEv

Decompiled

undefined (1 param)

/* Music::OnAdrenalineStop() */

void __thiscall Music::OnAdrenalineStop(Music *this)

{
  CBasePlayer *pCVar1;
  char cVar2;
  undefined **local_3c [11];
  
  cVar2 = (**(code **)(**(int **)(this + 0x378) + 0x170))(*(int **)(this + 0x378));
  if (cVar2 != '\0') {
    pCVar1 = *(CBasePlayer **)(this + 0x378);
    CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
    local_3c[0] = &PTR__CSingleUserRecipientFilter_00c08ea8;
                    /* try { // try from 008e91cf to 008e91d3 has its CatchHandler @ 008e9209 */
    CRecipientFilter::AddRecipient((CRecipientFilter *)local_3c,pCVar1);
                    /* try { // try from 008e91f2 to 008e91f4 has its CatchHandler @ 008e921b */
    (**(code **)(*enginesound + 0x2c))(enginesound,(CRecipientFilter *)local_3c,0,0);
    local_3c[0] = &PTR__CSingleUserRecipientFilter_00c08ea8;
    CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
  }
  if (*(float *)(this + 0x174) != 0.0) {
    (**(code **)(*(int *)this + 0xc))(this,this + 0x174);
    *(undefined4 *)(this + 0x174) = 0;
  }
  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)