CUtlRBTree<CBalanceTeamGroup,unsigned_short,bool(*)(CBalanceTeamGroup_const&,CBalanceTeamGroup_const&),CUtlMemory<UtlRBTreeNode_t<CBalanceTeamGroup,unsigned_short>,unsigned_short>>::RemoveAll
0x004cee70 · 293 bytes · __thiscall
_ZN10CUtlRBTreeI17CBalanceTeamGrouptPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CBalanceTeamGroup, unsigned short, bool (*)(CBalanceTeamGroup const&,
CBalanceTeamGroup const&), CUtlMemory<UtlRBTreeNode_t<CBalanceTeamGroup, unsigned short>,
unsigned short> >::RemoveAll() */
void __thiscall
CUtlRBTree<CBalanceTeamGroup,unsigned_short,bool(*)(CBalanceTeamGroup_const&,CBalanceTeamGroup_const&),CUtlMemory<UtlRBTreeNode_t<CBalanceTeamGroup,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlRBTree<CBalanceTeamGroup,unsigned_short,bool(*)(CBalanceTeamGroup_const&,CBalanceTeamGroup_const&),CUtlMemory<UtlRBTreeNode_t<CBalanceTeamGroup,unsigned_short>,unsigned_short>>
*this)
{
ushort *puVar1;
ushort uVar2;
int iVar3;
int iVar4;
ushort uVar5;
uVar2 = *(ushort *)(this + 0x16);
if (uVar2 != 0xffff) {
iVar3 = *(int *)(this + 8);
iVar4 = 0;
if (0 < iVar3) {
do {
uVar5 = (ushort)iVar4;
if ((iVar4 < iVar3) && (uVar5 <= uVar2)) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f1ad1a = 0xffff;
DAT_00f1ad1c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
iVar3 = iVar4 * 0x2c;
puVar1 = (ushort *)(*(int *)(this + 4) + iVar3);
if (*puVar1 != uVar5) {
*(undefined ***)(puVar1 + 4) = &PTR___cxa_pure_virtual_00c17010;
puVar1[0xc] = 0;
puVar1[0xd] = 0;
CUtlMemory<CBasePlayer*,int>::Purge((CUtlMemory<CBasePlayer*,int> *)(puVar1 + 6));
*(undefined4 *)(puVar1 + 0xe) = *(undefined4 *)(puVar1 + 6);
CUtlMemory<CBasePlayer*,int>::Purge((CUtlMemory<CBasePlayer*,int> *)(puVar1 + 6));
*(undefined2 *)(*(int *)(this + 4) + 2 + iVar3) = *(undefined2 *)(this + 0x14);
*(ushort *)(*(int *)(this + 4) + iVar3) = uVar5;
*(ushort *)(this + 0x14) = uVar5;
}
uVar2 = *(ushort *)(this + 0x16);
}
} while (((uVar2 != uVar5) && (iVar3 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar3)
) && (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.