L L4D2node

UTIL_MessageTextAll

0x00b2c480 · 148 bytes · __cdecl

_Z19UTIL_MessageTextAllPKc5Color

Decompiled

undefined (2 params)

/* UTIL_MessageTextAll(char const*, Color) */

void UTIL_MessageTextAll(char *param_1,uint param_2)

{
  undefined **local_2c [8];
  
  CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_2c);
  local_2c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
                    /* try { // try from 00b2c4a0 to 00b2c4a4 has its CatchHandler @ 00b2c514 */
  CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_2c);
  local_2c[0] = &PTR__CReliableBroadcastRecipientFilter_00c157a8;
                    /* try { // try from 00b2c4af to 00b2c4b3 has its CatchHandler @ 00b2c53f */
  CRecipientFilter::MakeReliable((CRecipientFilter *)local_2c);
                    /* try { // try from 00b2c4bf to 00b2c4fd has its CatchHandler @ 00b2c526 */
  UserMessageBegin((IRecipientFilter *)local_2c,"MessageText");
  MessageWriteByte(param_2 & 0xff);
  MessageWriteByte(param_2 >> 8 & 0xff);
  MessageWriteByte(param_2 >> 0x10 & 0xff);
  MessageWriteString(param_1);
  MessageEnd();
  local_2c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
  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)