CAchievementMgr::LevelShutdownPreEntity
0x003e95e0 · 142 bytes · __thiscall
_ZN15CAchievementMgr22LevelShutdownPreEntityEv
Decompiled
undefined (1 param)
/* CAchievementMgr::LevelShutdownPreEntity() */
void __thiscall CAchievementMgr::LevelShutdownPreEntity(CAchievementMgr *this)
{
int iVar1;
ushort uVar2;
CUtlRBTree<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,CBaseAchievement*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this_00;
int local_20;
local_20 = 2;
this_00 = (CUtlRBTree<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,CBaseAchievement*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + 0x38);
do {
for (uVar2 = CUtlRBTree<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,CBaseAchievement*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::FirstInorder(this_00); uVar2 != 0xffff;
uVar2 = CUtlRBTree<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,CBaseAchievement*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,CBaseAchievement*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NextInorder(this_00,uVar2)) {
iVar1 = *(int *)((uint)uVar2 * 0x10 + *(int *)(this_00 + 4) + 0xc);
if (*(char *)(iVar1 + 8) != '\0') {
if (gameeventmanager != (int *)0x0) {
(**(code **)(*gameeventmanager + 0x18))(gameeventmanager,iVar1);
}
*(undefined1 *)(iVar1 + 8) = 0;
}
}
this_00 = this_00 + 0x1c;
local_20 = local_20 + -1;
} while (local_20 != 0);
/* WARNING: Could not recover jumptable at 0x003e9673. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(int *)this + 100))();
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.