CBaseClientState::ProcessTick
0x000ffec0 · 518 bytes · __thiscall
_ZN16CBaseClientState11ProcessTickEP8NET_Tick
Decompiled
undefined (2 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CBaseClientState::ProcessTick(NET_Tick*) */
undefined4 __thiscall CBaseClientState::ProcessTick(CBaseClientState *this,NET_Tick *param_1)
{
char cVar1;
int iVar2;
int iVar3;
int iVar4;
undefined4 local_34;
undefined4 local_30;
undefined4 local_28;
undefined4 local_24;
int local_20;
local_34 = 0;
local_30 = 0;
if (_exit == 0) {
local_20 = 0;
}
else {
(**(code **)(_exit + 0x50))
(_exit,&local_34,0,0,0,0,"/data/src/engine/./baseclientstate.cpp",0x5ac,
&ProcessTick(NET_Tick*)::tm_fmt,"(%s)%s","Unaccounted","ProcessTick");
local_20 = _exit;
}
iVar2 = _DAT_0040b9d4;
local_28 = local_34;
local_24 = local_30;
if ((_DAT_0040b028 != 0) || (DAT_0040b02c == '\0')) {
/* try { // try from 00100066 to 001000b4 has its CatchHandler @ 001000f4 */
iVar4 = ThreadGetCurrentId();
if (iVar2 == iVar4) {
if ((char *)*_DAT_0040b030 != "ProcessTick") {
_DAT_0040b030 =
(int *)CVProfNode::GetSubNode((char *)_DAT_0040b030,0x2a6daa,&DAT_00000001,0x2a054b);
}
CVProfNode::EnterScope();
DAT_0040b02c = '\0';
}
}
/* try { // try from 000fff95 to 000fffc2 has its CatchHandler @ 001000d3 */
(**(code **)(**(int **)(this + 0x10) + 0x114))
(*(int **)(this + 0x10),*(undefined4 *)(param_1 + 0x50),*(undefined4 *)(param_1 + 0x54))
;
*(undefined4 *)(this + 0xbc) = *(undefined4 *)(param_1 + 0x4c);
iVar2 = *(int *)(param_1 + 0x4c);
*(int *)(this + 0xb8) = iVar2;
if (*(CNetworkStringTableContainer **)(this + 0x49d4) != (CNetworkStringTableContainer *)0x0) {
CNetworkStringTableContainer::SetTick(*(CNetworkStringTableContainer **)(this + 0x49d4),iVar2);
iVar2 = *(int *)(this + 0xb8);
}
iVar4 = _DAT_0040b9d4;
if ((DAT_0040b02c == '\0') || (_DAT_0040b028 != 0)) {
iVar3 = ThreadGetCurrentId();
if (iVar4 == iVar3) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0040b030 = (int *)_DAT_0040b030[0x19];
}
DAT_0040b02c = _DAT_0040b030 == (int *)0x40b034;
}
}
if (local_20 != 0) {
(**(code **)(local_20 + 0x54))(local_20,local_28,local_24,0,0,0);
}
return CONCAT31((int3)((uint)iVar2 >> 8),0 < iVar2);
}
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.