L L4D2node

Music::PlayMomentOfSilence

0x008ef330 · 84 bytes · __thiscall

_ZN5Music19PlayMomentOfSilenceEv

Decompiled

undefined (1 param)

/* Music::PlayMomentOfSilence() */

void __thiscall Music::PlayMomentOfSilence(Music *this)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = (char *)0x0;
  iVar1 = *(int *)(TheDirector + 0x630);
  if (*(int *)(iVar1 + 0x28) != 0) {
    pcVar2 = *(char **)(*(int *)(iVar1 + 0x1c) + *(int *)(iVar1 + 0x30) * 4);
  }
  Play(this,pcVar2,0,-1.0,false,false);
  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)