NET_OutOfBandPrintf
0x001c8f20 · 172 bytes · __cdecl
_Z19NET_OutOfBandPrintfiRK8netadr_sPKcz
Decompiled
undefined (3 params)
/* NET_OutOfBandPrintf(int, netadr_s const&, char const*, ...) */
void NET_OutOfBandPrintf(int param_1,netadr_s *param_2,char *param_3,...)
{
int iVar1;
int in_GS_OFFSET;
uchar local_4d0 [1200];
int local_20;
local_4d0[0] = 0xff;
local_4d0[1] = 0xff;
local_4d0[2] = 0xff;
local_4d0[3] = 0xff;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
V_vsnprintf((char *)(local_4d0 + 4),0x4ac,param_3,&stack0x00000010);
iVar1 = _V_strlen((char *)(local_4d0 + 4));
NET_SendPacket((INetChannel *)0x0,param_1,param_2,local_4d0,iVar1 + 5,(bf_write *)0x0,false,0);
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
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.