CBaseClientState::SendStringCmd
0x00101770 · 293 bytes · __thiscall
_ZN16CBaseClientState13SendStringCmdEPKc
Decompiled
undefined (2 params)
/* CBaseClientState::SendStringCmd(char const*) */
void __thiscall CBaseClientState::SendStringCmd(CBaseClientState *this,char *param_1)
{
int *piVar1;
char *pcVar2;
int in_GS_OFFSET;
undefined **local_460;
undefined1 local_45c;
undefined4 local_458;
undefined4 local_454;
undefined4 local_450;
undefined8 local_44c;
undefined4 local_444;
undefined4 local_440;
undefined8 local_43c;
undefined4 local_434;
undefined4 local_430;
undefined1 local_42c;
undefined8 local_428;
undefined4 local_420;
undefined4 local_41c;
char *local_414;
int local_10;
local_10 = *(int *)(in_GS_OFFSET + 0x14);
piVar1 = *(int **)(this + 0x10);
if (piVar1 != (int *)0x0) {
local_414 = param_1;
local_44c = 0;
local_43c = 0;
local_428 = 0;
local_454 = 0;
local_450 = 0;
local_444 = 0;
local_440 = 0;
local_434 = 0;
local_430 = 0;
local_42c = 0;
local_420 = 0;
local_41c = 0;
local_45c = 1;
local_458 = 0;
local_460 = &PTR__NET_StringCmd_002a17c8;
(**(code **)(*piVar1 + 0xa8))(piVar1,&local_460,0,0);
pcVar2 = strstr(param_1,"disconnect");
if (pcVar2 != (char *)0x0) {
(**(code **)(**(int **)(this + 0x10) + 0xc4))(*(int **)(this + 0x10),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.