CBaseClientState::RunFrame
0x00100890 · 997 bytes · __thiscall
_ZN16CBaseClientState8RunFrameEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseClientState::RunFrame() */
void __thiscall CBaseClientState::RunFrame(CBaseClientState *this)
{
char cVar1;
int iVar2;
int iVar3;
undefined4 *puVar4;
byte bVar5;
undefined4 local_d4;
undefined4 local_d0;
undefined4 local_cc;
undefined4 local_c8;
undefined4 local_c0;
undefined4 local_bc;
int local_b8;
undefined4 local_b4;
undefined4 local_b0;
int local_ac;
undefined **local_a8;
undefined1 local_a4;
undefined4 local_a0;
undefined4 local_9c;
undefined4 local_98;
undefined8 local_94;
undefined4 local_8c;
undefined4 local_88;
undefined8 local_84;
undefined4 local_7c;
undefined4 local_78;
undefined1 local_74;
undefined8 local_70;
undefined4 local_68;
undefined4 local_64;
undefined4 local_5c [19];
bVar5 = 0;
local_d4 = 0;
local_d0 = 0;
if (_exit == 0) {
local_b8 = 0;
}
else {
(**(code **)(_exit + 0x50))
(_exit,&local_d4,0,0,0,0,"/data/src/engine/./baseclientstate.cpp",0x307,
&RunFrame()::tm_fmt,"(%s)%s","Unaccounted","CBaseClientState::RunFrame");
local_b8 = _exit;
}
iVar3 = _DAT_0040b9d4;
local_c0 = local_d4;
local_bc = local_d0;
if ((_DAT_0040b028 != 0) || (DAT_0040b02c == '\0')) {
/* try { // try from 00100bae to 00100bfc has its CatchHandler @ 00100cc2 */
iVar2 = ThreadGetCurrentId();
if (iVar3 == iVar2) {
if ((char *)*_DAT_0040b030 != "CBaseClientState::RunFrame") {
_DAT_0040b030 =
(int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2a6df1,&DAT_00000001,0x2a054b);
}
CVProfNode::EnterScope();
DAT_0040b02c = '\0';
}
}
local_cc = 0;
local_c8 = 0;
if (_g_Telemetry == 0) {
local_ac = 0;
}
else {
/* try { // try from 001009d5 to 001009d7 has its CatchHandler @ 00100cc6 */
(**(code **)(_g_Telemetry + 0x50))
(_g_Telemetry,&local_cc,0,0,0,0,"/data/src/engine/./baseclientstate.cpp",0x308,
&RunFrame()::tm_fmt,&DAT_002c48a3,"RunFrame");
local_ac = _g_Telemetry;
}
iVar3 = *(int *)(this + 0x60);
local_b4 = local_cc;
local_b0 = local_c8;
if ((3 < iVar3) && (*(int *)(this + 0x10) != 0)) {
/* try { // try from 00100a23 to 00100b06 has its CatchHandler @ 00100c90 */
cVar1 = CGameEventManager::HasClientListenersChanged
((CGameEventManager *)&s_GameEventManager,true);
if (cVar1 != '\0') {
puVar4 = local_5c;
for (iVar3 = 0x10; iVar3 != 0; iVar3 = iVar3 + -1) {
*puVar4 = 0;
puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
}
local_9c = 0;
local_98 = 0;
local_94 = 0;
local_8c = 0;
local_88 = 0;
local_84 = 0;
local_7c = 0;
local_78 = 0;
local_74 = 0;
local_70 = 0;
local_68 = 0;
local_64 = 0;
local_a4 = 1;
local_a0 = 0;
local_a8 = &PTR__CLC_ListenEvents_002a14c8;
CGameEventManager::WriteListenEventList
((CGameEventManager *)&s_GameEventManager,(CLC_ListenEvents *)&local_a8);
(**(code **)(**(int **)(this + 0x10) + 0xa8))
(*(int **)(this + 0x10),(CLC_ListenEvents *)&local_a8,0,0);
}
iVar3 = *(int *)(this + 0x60);
}
if (iVar3 == 1) {
/* try { // try from 00100c85 to 00100c8a has its CatchHandler @ 00100c90 */
(**(code **)(*(int *)this + 0xa4))(this,0);
}
(**(code **)(*(int *)this + 0xa8))(this);
if (local_ac != 0) {
(**(code **)(local_ac + 0x54))(local_ac,local_b4,local_b0,0,0,0);
}
iVar3 = _DAT_0040b9d4;
if ((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) {
iVar2 = ThreadGetCurrentId();
if (iVar3 == iVar2) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0040b030 = (int *)_DAT_0040b030[0x19];
}
DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
}
}
if (local_b8 != 0) {
(**(code **)(local_b8 + 0x54))(local_b8,local_c0,local_bc,0,0,0);
}
return;
}
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.