CBaseClient::TraceNetworkMsg
0x000fa510 · 166 bytes · __thiscall
_ZN11CBaseClient15TraceNetworkMsgEiPKcz
Decompiled
undefined (3 params)
/* CBaseClient::TraceNetworkMsg(int, char const*, ...) */
void __thiscall CBaseClient::TraceNetworkMsg(CBaseClient *this,int param_1,char *param_2,...)
{
int in_GS_OFFSET;
char local_94 [64];
Spike_t local_54 [64];
int local_14;
int local_10;
local_10 = *(int *)(in_GS_OFFSET + 0x14);
if (*(int *)(this + 0x1d6e4) != 0) {
V_vsnprintf(local_94,0x40,param_2,&stack0x00000010);
local_14 = 0;
local_54[0] = (Spike_t)0x0;
V_strncpy((char *)local_54,local_94,0x40);
local_14 = param_1;
CUtlVector<Spike_t,CUtlMemory<Spike_t,int>>::InsertBefore
((CUtlVector<Spike_t,CUtlMemory<Spike_t,int>> *)(this + 0x1d6f0),
*(int *)(this + 0x1d6fc),local_54);
}
if (local_10 == *(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.