ShowViewPortPanelToAll
0x0072da80 · 231 bytes · __cdecl
_Z22ShowViewPortPanelToAllPKcbP9KeyValues
Decompiled
undefined (3 params)
/* ShowViewPortPanelToAll(char const*, bool, KeyValues*) */
void ShowViewPortPanelToAll(char *param_1,bool param_2,KeyValues *param_3)
{
KeyValues *pKVar1;
char *pcVar2;
int iVar3;
CRecipientFilter local_3c [44];
CRecipientFilter::CRecipientFilter(local_3c);
/* try { // try from 0072daa0 to 0072db5a has its CatchHandler @ 0072db74 */
CRecipientFilter::AddAllPlayers(local_3c);
CRecipientFilter::MakeReliable(local_3c);
if (param_3 == (KeyValues *)0x0) {
pKVar1 = (KeyValues *)0x0;
iVar3 = 0;
}
else {
pKVar1 = (KeyValues *)KeyValues::GetFirstSubKey(param_3);
iVar3 = 0;
for (; pKVar1 != (KeyValues *)0x0; pKVar1 = (KeyValues *)KeyValues::GetNextKey(pKVar1)) {
iVar3 = iVar3 + 1;
}
pKVar1 = (KeyValues *)KeyValues::GetFirstSubKey(param_3);
}
UserMessageBegin((IRecipientFilter *)local_3c,"VGUIMenu");
MessageWriteString(param_1);
MessageWriteByte((uint)param_2);
MessageWriteByte(iVar3);
for (; pKVar1 != (KeyValues *)0x0; pKVar1 = (KeyValues *)KeyValues::GetNextKey(pKVar1)) {
pcVar2 = (char *)KeyValues::GetName(pKVar1);
MessageWriteString(pcVar2);
pcVar2 = (char *)KeyValues::GetString(pKVar1,(char *)0x0,"");
MessageWriteString(pcVar2);
}
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.