CBaseClient::ClientPrintf
0x000f75f0 · 279 bytes · __thiscall
_ZN11CBaseClient12ClientPrintfEPKcz
Decompiled
undefined (2 params)
/* CBaseClient::ClientPrintf(char const*, ...) */
void __thiscall CBaseClient::ClientPrintf(CBaseClient *this,char *param_1,...)
{
int in_GS_OFFSET;
char local_c60 [1024];
undefined **local_860;
undefined1 local_85c;
undefined4 local_858;
undefined4 local_854;
undefined4 local_850;
undefined8 local_84c;
undefined4 local_844;
undefined4 local_840;
undefined8 local_83c;
undefined4 local_834;
undefined4 local_830;
undefined1 local_82c;
undefined8 local_828;
undefined4 local_820;
undefined4 local_81c;
char *local_814;
int local_10;
local_10 = *(int *)(in_GS_OFFSET + 0x14);
V_vsnprintf(local_c60,0x400,param_1,&stack0x0000000c);
local_854 = 0;
local_850 = 0;
local_84c = 0;
local_844 = 0;
local_840 = 0;
local_83c = 0;
local_834 = 0;
local_830 = 0;
local_82c = 0;
local_828 = 0;
local_820 = 0;
local_81c = 0;
local_858 = 0;
local_860 = &PTR__SVC_Print_002a1768;
local_85c = 0;
local_814 = local_c60;
(**(code **)(**(int **)(this + 0xe8) + 0xa8))(*(int **)(this + 0xe8),&local_860,0,0);
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.