SendCvarValueQueryToClient
0x00208a30 · 267 bytes · __cdecl
_Z26SendCvarValueQueryToClientP7IClientPKcb
Decompiled
undefined (3 params)
/* SendCvarValueQueryToClient(IClient*, char const*, bool) */
int SendCvarValueQueryToClient(IClient *param_1,char *param_2,bool param_3)
{
int in_GS_OFFSET;
undefined **local_164;
undefined1 local_160;
undefined4 local_15c;
undefined4 local_158;
undefined4 local_154;
undefined8 local_150;
undefined4 local_148;
undefined4 local_144;
undefined8 local_140;
undefined4 local_138;
undefined4 local_134;
undefined1 local_130;
undefined8 local_12c;
undefined4 local_124;
undefined4 local_120;
int local_118;
char *local_114;
int local_10;
local_10 = *(int *)(in_GS_OFFSET + 0x14);
local_150 = 0;
local_158 = 0;
local_154 = 0;
local_148 = 0;
local_140 = 0;
local_144 = 0;
local_138 = 0;
local_134 = 0;
local_130 = 0;
local_12c = 0;
local_124 = 0;
local_120 = 0;
local_160 = 1;
local_15c = 0;
local_164 = &PTR__SVC_GetCvarValue_002a21e8;
local_118 = g_iQueryCvarCookie;
local_114 = param_2;
if (!param_3) {
local_118 = -g_iQueryCvarCookie;
}
g_iQueryCvarCookie = g_iQueryCvarCookie + 1;
(**(code **)(*(int *)param_1 + 0x78))(param_1,&local_164,0,0);
if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
return local_118;
}
/* 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.