L L4D2node

WriteSong

0x008e8ee0 · 128 bytes · __regparm3

_ZL9WriteSongPKc

Decompiled

undefined (1 param)

/* WriteSong(char const*) */

void __regparm3 WriteSong(char *param_1)

{
  char cVar1;
  uint uVar2;
  
  uVar2 = (**(code **)(*soundemitterbase + 0xb0))(soundemitterbase,param_1);
  cVar1 = (**(code **)(*soundemitterbase + 0xb4))(soundemitterbase,uVar2);
  if (cVar1 == '\0') {
    MessageWriteUBitLong(0,1);
    MessageWriteString(param_1);
    return;
  }
  MessageWriteUBitLong(1,1);
  MessageWriteUBitLong(uVar2,0x20);
  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)