CResponseSystem::DumpDictionary
0x005b7970 · 622 bytes · __thiscall
_ZN15CResponseSystem14DumpDictionaryEPKc
Decompiled
undefined (2 params)
/* CResponseSystem::DumpDictionary(char const*) */
void __thiscall CResponseSystem::DumpDictionary(CResponseSystem *this,char *param_1)
{
undefined4 *puVar1;
int *piVar2;
ushort uVar3;
int iVar4;
undefined4 uVar5;
undefined1 *puVar6;
undefined1 *puVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
uint local_4c;
uint local_48;
uint local_44;
int local_34;
undefined4 local_24 [5];
Msg("\nDictionary: %s\n",param_1);
local_44 = 0;
local_4c = 0;
local_48 = 0;
do {
if (*(ushort *)(this + local_4c * 0x38 + 0x8e) <= local_44) {
return;
}
iVar11 = local_4c * 0x38;
local_24[0] = *(undefined4 *)(*(int *)(this + iVar11 + 0x80) + 8 + local_44 * 0x10);
uVar3 = CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Find((CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + iVar11 + 0x98),(Node_t *)local_24);
if (uVar3 == 0xffff) {
puVar7 = &DAT_00d539c2;
}
else {
puVar7 = *(undefined1 **)((uint)uVar3 * 0x10 + *(int *)(this + iVar11 + 0x9c) + 0xc);
}
Msg("\tRule %d/%d: %s\n",local_4c,local_44,puVar7);
piVar2 = *(int **)(*(int *)(this + iVar11 + 0x80) + 0xc + local_44 * 0x10);
iVar11 = piVar2[2];
if (0 < iVar11) {
iVar10 = 0;
do {
iVar4 = (uint)*(ushort *)(*piVar2 + iVar10 * 2) * 0x34 + *(int *)(this + 0x48);
puVar7 = *(undefined1 **)(iVar4 + 0xe);
local_24[0] = CONCAT22(local_24[0]._2_2_,*(undefined2 *)(iVar4 + 0xc));
uVar5 = CUtlSymbolTable::String
((CUtlSymbolTable *)AI_CriteriaSet::sm_CriteriaSymbols,local_24);
iVar4 = iVar10 + 1;
Msg("\t\tCriteria %d: %s %s\n",iVar10,uVar5,puVar7);
iVar10 = iVar4;
} while (iVar4 != iVar11);
}
local_34 = 0;
iVar11 = piVar2[6];
if (0 < iVar11) {
do {
iVar10 = (uint)*(ushort *)(piVar2[4] + local_34 * 2) * 0x20 + *(int *)(this + 0x10);
local_24[0] = *(undefined4 *)(iVar10 + 8);
uVar3 = CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Find((CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + 0x28),(Node_t *)local_24);
if (uVar3 == 0xffff) {
puVar6 = &DAT_00d539c2;
}
else {
puVar6 = *(undefined1 **)((uint)uVar3 * 0x10 + *(int *)(this + 0x2c) + 0xc);
}
iVar12 = 0;
iVar8 = 0;
Msg("\t\tResponseGroup %d: %s\n",local_34,puVar6,puVar7);
iVar4 = *(int *)(iVar10 + 0x14);
if (0 < iVar4) {
do {
puVar1 = (undefined4 *)(*(int *)(iVar10 + 0xc) + 0x28 + iVar12);
iVar9 = iVar8 + 1;
iVar12 = iVar12 + 0x50;
Msg("\t\t\tResponse %d: %s\n",iVar8,*puVar1);
iVar8 = iVar9;
} while (iVar9 != iVar4);
}
local_34 = local_34 + 1;
} while (local_34 != iVar11);
}
if (local_44 + 1 < (uint)*(ushort *)(this + local_4c * 0x38 + 0x8e)) {
local_48 = local_48 + 1;
if (local_48 == 0xffffffff) {
return;
}
}
else {
if (0xff < local_4c + 1) {
return;
}
local_48 = (local_4c + 1) * 0x10000;
}
local_44 = local_48 & 0xffff;
local_4c = local_48 >> 0x10;
} while (local_4c < 0x100);
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.