CClientState::CClientState
0x00116400 · 399 bytes · __thiscall
_ZN12CClientStateC2Ev
Decompiled
undefined (1 param)
/* CClientState::CClientState() */
void __thiscall CClientState::CClientState(CClientState *this)
{
CPrecacheItem *this_00;
CBaseClientState::CBaseClientState((CBaseClientState *)this);
*(undefined ***)(this + 0x49dc) = &PTR__CClientFrameManager_002aa3a8;
/* try { // try from 0011644f to 00116453 has its CatchHandler @ 0011658f */
CUtlMemoryPool::CUtlMemoryPool((CUtlMemoryPool *)(this + 0x49e4),0x11c,0x80,2,(char *)0x0,0);
*(undefined4 *)(this + 0x49e0) = 0;
this_00 = (CPrecacheItem *)(this + 0x4f4c);
*(undefined ***)this = &PTR__CClientState_002aa3c8;
*(undefined ***)(this + 4) = &PTR__CClientState_002aa4d4;
*(undefined ***)(this + 8) = &PTR__CClientState_002aa4e8;
*(undefined **)(this + 0x49dc) = &DAT_002aa570;
*(undefined4 *)(this + 0x4a94) = 0;
*(undefined4 *)(this + 0x4a98) = 0;
*(undefined4 *)(this + 0x4a9c) = 0;
*(undefined4 *)(this + 0x4aa0) = 0;
*(undefined4 *)(this + 0x4aa4) = 0;
*(undefined4 *)(this + 0x4af8) = 0;
*(undefined4 *)(this + 0x4afc) = 0;
*(undefined4 *)(this + 0x4b00) = 0;
*(undefined4 *)(this + 0x4b18) = 0;
*(undefined4 *)(this + 0x4b1c) = 0xffffffff;
*(undefined4 *)(this + 0x4b04) = 0;
*(undefined4 *)(this + 0x4b08) = 0;
*(undefined4 *)(this + 0x4b0c) = 0;
*(undefined4 *)(this + 0x4b10) = 0;
*(undefined4 *)(this + 0x4b14) = 0;
*(undefined4 *)(this + 0x4b20) = 0;
do {
/* try { // try from 00116533 to 0011657f has its CatchHandler @ 001165a1 */
CPrecacheItem::CPrecacheItem(this_00);
this_00 = this_00 + 8;
} while (this_00 != (CPrecacheItem *)(this + 0x8f4c));
do {
CPrecacheItem::CPrecacheItem(this_00);
this_00 = this_00 + 8;
} while (this_00 != (CPrecacheItem *)(this + 0x9f4c));
do {
CPrecacheItem::CPrecacheItem(this_00);
this_00 = this_00 + 8;
} while (this_00 != (CPrecacheItem *)(this + 0x3104c));
do {
CPrecacheItem::CPrecacheItem(this_00);
this_00 = this_00 + 8;
} while (this_00 != (CPrecacheItem *)(this + 0x3204c));
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.