UTIL_HudMessage
0x00b2fdb0 · 323 bytes · __cdecl
_Z15UTIL_HudMessageP11CBasePlayerRK14hudtextparms_sPKc
Decompiled
undefined (3 params)
/* UTIL_HudMessage(CBasePlayer*, hudtextparms_s const&, char const*) */
void UTIL_HudMessage(CBasePlayer *param_1,hudtextparms_s *param_2,char *param_3)
{
CRecipientFilter local_3c [44];
CRecipientFilter::CRecipientFilter(local_3c);
if (param_1 == (CBasePlayer *)0x0) {
CRecipientFilter::AddAllPlayers(local_3c);
}
else {
/* try { // try from 00b2fdd9 to 00b2fef7 has its CatchHandler @ 00b2fefd */
CRecipientFilter::AddRecipient(local_3c,param_1);
}
CRecipientFilter::MakeReliable(local_3c);
UserMessageBegin((IRecipientFilter *)local_3c,"HudMsg");
MessageWriteByte((uint)(byte)param_2[0x24]);
MessageWriteFloat(*(float *)param_2);
MessageWriteFloat(*(float *)(param_2 + 4));
MessageWriteByte((uint)(byte)param_2[0xc]);
MessageWriteByte((uint)(byte)param_2[0xd]);
MessageWriteByte((uint)(byte)param_2[0xe]);
MessageWriteByte((uint)(byte)param_2[0xf]);
MessageWriteByte((uint)(byte)param_2[0x10]);
MessageWriteByte((uint)(byte)param_2[0x11]);
MessageWriteByte((uint)(byte)param_2[0x12]);
MessageWriteByte((uint)(byte)param_2[0x13]);
MessageWriteByte(*(int *)(param_2 + 8));
MessageWriteFloat(*(float *)(param_2 + 0x14));
MessageWriteFloat(*(float *)(param_2 + 0x18));
MessageWriteFloat(*(float *)(param_2 + 0x1c));
MessageWriteFloat(*(float *)(param_2 + 0x20));
MessageWriteString(param_3);
MessageEnd();
CRecipientFilter::~CRecipientFilter(local_3c);
return;
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.