CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>::RemoveAll
0x005db360 · 395 bytes · __thiscall
_ZN14CUtlLinkedListIN18CScriptSpeechQueue18CQueuedScriptEventEiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS1_iEEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent, int, true, int,
CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent, int> > >::RemoveAll()
*/
void __thiscall
CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>
::RemoveAll(CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>
*this)
{
CQueuedScriptEvent *pCVar1;
CQueuedScriptEvent *this_00;
undefined4 *puVar2;
int iVar3;
undefined4 *puVar4;
undefined4 *puVar5;
int iVar6;
if ((*(int *)(this + 0x20) == 0) && (*(int *)(this + 0x24) == -1)) {
return;
}
puVar5 = *(undefined4 **)this;
do {
iVar6 = -(uint)(puVar5 == (undefined4 *)0x0);
do {
if (puVar5 == (undefined4 *)0x0) {
if (iVar6 == -1) goto LAB_005db44c;
LAB_005db478:
puVar2 = *(undefined4 **)(this + 0x20);
iVar3 = *(int *)(this + 0x24);
}
else {
if (((iVar6 == -1) || ((int)puVar5[1] <= iVar6)) ||
(this_00 = (CQueuedScriptEvent *)(puVar5 + iVar6 * 0xe + 2),
this_00 == (CQueuedScriptEvent *)0x0)) goto LAB_005db478;
puVar2 = *(undefined4 **)(this + 0x20);
if (((puVar2 == (undefined4 *)0x0) || (iVar3 = *(int *)(this + 0x24), iVar3 < 0)) ||
((int)puVar2[1] <= iVar3)) {
LAB_005db4b0:
if ((this_00 == *(CQueuedScriptEvent **)(this_00 + 0x30)) &&
(this_00 != *(CQueuedScriptEvent **)(this_00 + 0x34))) {
iVar3 = *(int *)(this + 0x24);
}
else {
CScriptSpeechQueue::CQueuedScriptEvent::~CQueuedScriptEvent(this_00);
*(CQueuedScriptEvent **)(this_00 + 0x30) = this_00;
*(undefined4 *)(this_00 + 0x34) = *(undefined4 *)(this + 0x14);
*(CQueuedScriptEvent **)(this + 0x14) = this_00;
puVar2 = *(undefined4 **)(this + 0x20);
iVar3 = *(int *)(this + 0x24);
}
}
else {
pCVar1 = (CQueuedScriptEvent *)(puVar2 + 2);
if ((this_00 < pCVar1) || (pCVar1 + puVar2[1] * 0x38 <= this_00)) {
for (puVar4 = (undefined4 *)*puVar2; puVar4 != (undefined4 *)0x0;
puVar4 = (undefined4 *)*puVar4) {
if (((CQueuedScriptEvent *)(puVar4 + 2) <= this_00) &&
(this_00 < (CQueuedScriptEvent *)(puVar4 + 2) + puVar4[1] * 0x38))
goto joined_r0x005db486;
}
goto LAB_005db4b0;
}
if ((int)this_00 <= (int)(pCVar1 + iVar3 * 0x38)) goto LAB_005db4b0;
}
}
joined_r0x005db486:
if ((((puVar2 == puVar5) && (iVar3 == iVar6)) || (puVar5 == (undefined4 *)0x0)) ||
((iVar6 == -1 || ((int)puVar5[1] <= iVar6)))) {
LAB_005db44c:
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x18) = 0;
return;
}
iVar6 = iVar6 + 1;
} while (iVar6 < (int)puVar5[1]);
puVar5 = (undefined4 *)*puVar5;
} while( true );
}
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.