CUtlLinkedList<Vector,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<Vector,unsigned_short>,unsigned_short>>::Unlink
0x00a042a0 · 129 bytes · __thiscall
_ZN14CUtlLinkedListI6VectortLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS0_tEtEE6UnlinkEt
Decompiled
undefined (2 params)
/* CUtlLinkedList<Vector, unsigned short, false, unsigned short,
CUtlMemory<UtlLinkedListElem_t<Vector, unsigned short>, unsigned short> >::Unlink(unsigned short)
*/
void __thiscall
CUtlLinkedList<Vector,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<Vector,unsigned_short>,unsigned_short>>
::Unlink(CUtlLinkedList<Vector,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<Vector,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
int iVar2;
if (*(int *)(this + 4) <= (int)(uint)param_1) {
return;
}
if (param_1 <= *(ushort *)(this + 0x16)) {
iVar2 = (uint)param_1 * 0x10 + *(int *)this;
uVar1 = *(ushort *)(iVar2 + 0xc);
if (param_1 != uVar1) {
if (uVar1 == 0xffff) {
*(undefined2 *)(this + 0xc) = *(undefined2 *)(iVar2 + 0xe);
uVar1 = *(ushort *)(iVar2 + 0xe);
}
else {
*(undefined2 *)(*(int *)this + 0xe + (uint)uVar1 * 0x10) = *(undefined2 *)(iVar2 + 0xe);
uVar1 = *(ushort *)(iVar2 + 0xe);
}
if (uVar1 == 0xffff) {
*(undefined2 *)(this + 0xe) = *(undefined2 *)(iVar2 + 0xc);
}
else {
*(undefined2 *)((uint)uVar1 * 0x10 + *(int *)this + 0xc) = *(undefined2 *)(iVar2 + 0xc);
}
*(ushort *)(iVar2 + 0xe) = param_1;
*(ushort *)(iVar2 + 0xc) = param_1;
*(short *)(this + 0x12) = *(short *)(this + 0x12) + -1;
return;
}
return;
}
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.