CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveAll
0x007cde30 · 217 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapI7CHandleI11CBaseEntityEPN23CLagCompensationManager13EntityLagDataEtE6Node_tEtNS7_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS8_tEtEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*, unsigned
short>::Node_t, unsigned short, CUtlMap<CHandle<CBaseEntity>,
CLagCompensationManager::EntityLagData*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*,
unsigned short>::Node_t, unsigned short>, unsigned short> >::RemoveAll() */
void __thiscall
CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this)
{
int iVar1;
ushort *puVar2;
ushort uVar3;
int iVar4;
ushort uVar5;
uVar3 = *(ushort *)(this + 0x16);
if (uVar3 != 0xffff) {
iVar1 = *(int *)(this + 8);
iVar4 = 0;
if (0 < iVar1) {
do {
uVar5 = (ushort)iVar4;
if ((iVar4 < iVar1) && (uVar5 <= uVar3)) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar1 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f4ee72 = 0xffff;
DAT_00f4ee74 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
puVar2 = (ushort *)(*(int *)(this + 4) + iVar4 * 0x10);
if (*puVar2 != uVar5) {
puVar2[1] = *(ushort *)(this + 0x14);
*(ushort *)(*(int *)(this + 4) + iVar4 * 0x10) = uVar5;
*(ushort *)(this + 0x14) = uVar5;
}
uVar3 = *(ushort *)(this + 0x16);
}
} while (((uVar3 != uVar5) && (iVar1 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar1)
) && (iVar4 = iVar4 + 1, iVar4 != 0xffff));
}
*(undefined2 *)(this + 0x10) = 0xffff;
*(undefined2 *)(this + 0x12) = 0;
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.