COuttroStats::SendPZEndGameMessage
0x00686f70 · 153 bytes · __thiscall
_ZN12COuttroStats20SendPZEndGameMessageERK17SEndGameVoteStats
Decompiled
undefined (2 params)
/* COuttroStats::SendPZEndGameMessage(SEndGameVoteStats const&) */
void __thiscall COuttroStats::SendPZEndGameMessage(COuttroStats *this,SEndGameVoteStats *param_1)
{
int iVar1;
undefined **local_3c [11];
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
/* try { // try from 00686f8e to 00686f92 has its CatchHandler @ 00687009 */
CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CReliableBroadcastRecipientFilter_00c157a8;
/* try { // try from 00686f9d to 00686fa1 has its CatchHandler @ 00687034 */
CRecipientFilter::MakeReliable((CRecipientFilter *)local_3c);
/* try { // try from 00686fad to 00686ff1 has its CatchHandler @ 0068701b */
UserMessageBegin((IRecipientFilter *)local_3c,"PZEndGameVoteStatsMsg");
iVar1 = 0;
do {
MessageWriteByte(*(int *)param_1);
MessageWriteByte(*(int *)(param_1 + 8));
MessageWriteByte(*(int *)(param_1 + 0x10));
MessageWriteByte(*(int *)(param_1 + 0x18));
iVar1 = iVar1 + 1;
param_1 = param_1 + 4;
} while (iVar1 != 2);
MessageEnd();
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
CRecipientFilter::~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.