CAchievementMgr::CAchievementMgr
0x003e8150 · 1314 bytes · __thiscall
_ZN15CAchievementMgrC2Ev
Decompiled
undefined (1 param)
/* CAchievementMgr::CAchievementMgr() */
void __thiscall CAchievementMgr::CAchievementMgr(CAchievementMgr *this)
{
int iVar1;
CAchievementMgr *pCVar2;
CAchievementMgr *pCVar3;
CAchievementMgr *pCVar4;
CAchievementMgr *pCVar5;
CAchievementMgr *pCVar6;
int iVar7;
CAutoGameSystemPerFrame::CAutoGameSystemPerFrame
((CAutoGameSystemPerFrame *)this,"CAchievementMgr");
this[0x14] = (CAchievementMgr)0x0;
*(undefined4 *)(this + 0x10) = 0x2a;
*(undefined ***)this = &PTR_Name_00bfb788;
*(undefined ***)(this + 0xc) = &PTR__CAchievementMgr_00bfb810;
*(undefined **)(this + 0x18) = &DAT_00bfb828;
*(undefined ***)(this + 0x1c) = &PTR_GetAchievementByIndex_00bfb834;
this[0x24] = (CAchievementMgr)0x0;
*(undefined4 *)(this + 0x28) = 0;
*(undefined ***)(this + 0x20) = &PTR_Run_00bfb760;
*(undefined4 *)(this + 0x34) = 0;
*(CAchievementMgr **)(this + 0x2c) = this;
*(code **)(this + 0x30) = Steam_OnUserStatsStored;
/* try { // try from 003e81c3 to 003e81c7 has its CatchHandler @ 003e8676 */
SteamAPI_RegisterCallback(this + 0x20,0x44e);
*(undefined2 *)(this + 0x48) = 0xffff;
*(undefined2 *)(this + 100) = 0xffff;
*(undefined2 *)(this + 0x66) = 0;
*(undefined2 *)(this + 0x68) = 0xffff;
*(undefined2 *)(this + 0x4a) = 0;
*(undefined2 *)(this + 0x4c) = 0xffff;
*(undefined2 *)(this + 0x4e) = 0xffff;
iVar7 = 0;
*(undefined2 *)(this + 0x6a) = 0xffff;
*(undefined4 *)(this + 0x38) = 0;
*(undefined4 *)(this + 0x3c) = 0;
*(undefined4 *)(this + 0x40) = 0;
*(undefined4 *)(this + 0x44) = 0;
*(undefined4 *)(this + 0x50) = 0;
*(undefined4 *)(this + 0x54) = 0;
*(undefined4 *)(this + 0x58) = 0;
*(undefined4 *)(this + 0x5c) = 0;
*(undefined4 *)(this + 0x60) = 0;
*(undefined4 *)(this + 0x6c) = 0;
*(undefined4 *)(this + 0x70) = 0;
*(undefined4 *)(this + 0x74) = 0;
*(undefined4 *)(this + 0x78) = 0;
*(undefined4 *)(this + 0x7c) = 0;
*(undefined4 *)(this + 0x80) = 0;
*(undefined4 *)(this + 0x84) = 0;
*(undefined4 *)(this + 0x88) = 0;
*(undefined4 *)(this + 0x8c) = 0;
*(undefined4 *)(this + 0x90) = 0;
*(undefined4 *)(this + 0x94) = 0;
*(undefined4 *)(this + 0x98) = 0;
*(undefined4 *)(this + 0x9c) = 0;
*(undefined4 *)(this + 0xa0) = 0;
*(undefined4 *)(this + 0xa4) = 0;
*(undefined4 *)(this + 0xa8) = 0;
*(undefined4 *)(this + 0xac) = 0;
*(undefined4 *)(this + 0xb0) = 0;
*(undefined4 *)(this + 0xb4) = 0;
*(undefined4 *)(this + 0xb8) = 0;
*(undefined4 *)(this + 0xbc) = 0;
*(undefined4 *)(this + 0xc0) = 0;
*(undefined4 *)(this + 0xc4) = 0;
*(undefined4 *)(this + 200) = 0;
*(undefined4 *)(this + 0xcc) = 0;
*(undefined4 *)(this + 0xd0) = 0;
*(undefined4 *)(this + 0xd4) = 0;
*(undefined4 *)(this + 0xd8) = 0;
*(undefined4 *)(this + 0xdc) = 0;
*(undefined4 *)(this + 0xe0) = 0;
*(undefined4 *)(this + 0xe4) = 0;
*(undefined4 *)(this + 0xe8) = 0;
*(undefined4 *)(this + 0xec) = 0;
*(undefined4 *)(this + 0xf0) = 0;
*(undefined4 *)(this + 0xf4) = 0;
*(undefined4 *)(this + 0xf8) = 0;
*(undefined4 *)(this + 0xfc) = 0;
*(undefined4 *)(this + 0x100) = 0;
*(undefined4 *)(this + 0x104) = 0;
*(undefined4 *)(this + 0x108) = 0;
*(undefined4 *)(this + 0x10c) = 0;
*(undefined4 *)(this + 0x110) = 0;
*(undefined4 *)(this + 0x114) = 0;
*(undefined4 *)(this + 0x118) = 0;
*(undefined4 *)(this + 0x11c) = 0;
*(undefined4 *)(this + 0x120) = 0;
*(undefined4 *)(this + 0x124) = 0;
*(undefined4 *)(this + 0x128) = 0;
*(undefined4 *)(this + 300) = 0;
*(undefined4 *)(this + 0x130) = 0;
*(undefined4 *)(this + 0x134) = 0;
*(undefined4 *)(this + 0x138) = 0;
*(undefined4 *)(this + 0x13c) = 0;
*(undefined4 *)(this + 0x140) = 0;
*(undefined4 *)(this + 0x144) = 0;
*(undefined4 *)(this + 0x148) = 0;
*(undefined4 *)(this + 0x14c) = 0;
*(undefined4 *)(this + 0x150) = 0;
*(undefined4 *)(this + 0x154) = 0;
*(undefined4 *)(this + 0x158) = 0;
*(undefined4 *)(this + 0x15c) = 0;
*(undefined4 *)(this + 0x160) = 0;
*(undefined4 *)(this + 0x164) = 0;
*(undefined4 *)(this + 0x168) = 0;
*(undefined4 *)(this + 0x16c) = 0;
*(undefined4 *)(this + 0x170) = 0;
*(undefined4 *)(this + 0x174) = 0;
*(undefined4 *)(this + 0x178) = 0;
*(undefined4 *)(this + 0x17c) = 0;
*(undefined4 *)(this + 0x180) = 0;
*(undefined4 *)(this + 0x184) = 0;
*(undefined4 *)(this + 700) = 0;
*(undefined4 *)(this + 0x2c0) = 0;
*(undefined4 *)(this + 0x2c4) = 0;
*(undefined4 *)(this + 0x2c8) = 0;
*(undefined4 *)(this + 0x2cc) = 0;
*(undefined4 *)(this + 0x2d0) = 0;
*(undefined4 *)(this + 0x2d4) = 0;
*(undefined4 *)(this + 0x2d8) = 0;
*(undefined4 *)(this + 0x2dc) = 0;
*(undefined4 *)(this + 0x2e0) = 0;
*(undefined4 *)(this + 0x2e4) = 0;
*(undefined4 *)(this + 0x2e8) = 0;
*(undefined4 *)(this + 0x2ec) = 0;
*(undefined4 *)(this + 0x2f0) = 0;
*(undefined4 *)(this + 0x2f4) = 0;
*(undefined4 *)(this + 0x2f8) = 0;
*(undefined4 *)(this + 0x2fc) = 0;
*(undefined4 *)(this + 0x300) = 0;
*(undefined4 *)(this + 0x304) = 0;
*(undefined4 *)(this + 0x308) = 0;
iVar1 = *(int *)(this + 0x38);
pCVar2 = this + 0x38;
pCVar3 = this + 0xc;
pCVar4 = this + 0x54;
pCVar5 = this;
pCVar6 = this;
while( true ) {
if (iVar1 == 0) {
*(code **)pCVar2 = CDefOps<int>::LessFunc;
}
iVar7 = iVar7 + 1;
*(undefined4 *)(pCVar5 + 400) = 0;
*(undefined4 *)(pCVar5 + 0x198) = 0;
*(undefined4 *)(pCVar5 + 0x1a0) = 0;
pCVar6[0x2ac] = (CAchievementMgr)0x0;
*(undefined4 *)(pCVar3 + 700) = 0;
*(undefined4 *)(pCVar3 + 0x2e4) = 0;
pCVar6[0x2ae] = (CAchievementMgr)0x0;
if (iVar7 == 2) break;
iVar1 = *(int *)pCVar4;
pCVar2 = pCVar4;
pCVar3 = pCVar3 + 0x14;
pCVar4 = pCVar4 + 0x1c;
pCVar5 = pCVar5 + 4;
pCVar6 = pCVar6 + 1;
}
this[0x1a8] = (CAchievementMgr)0x0;
this[0x2b0] = (CAchievementMgr)0x0;
*(undefined4 *)(this + 0x2b4) = 0;
this[0x2b8] = (CAchievementMgr)0x1;
this[0x2b9] = (CAchievementMgr)0x0;
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.