CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>::Insert
0x0067f630 · 216 bytes · __thiscall
_ZN14CUtlSortVectorIP11CBaseEntityN17CSortedEntityList17CEntityReportLessEE6InsertERKS1_
Decompiled
undefined (2 params)
/* CUtlSortVector<CBaseEntity*, CSortedEntityList::CEntityReportLess>::Insert(CBaseEntity* const&)
*/
int __thiscall
CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>::Insert
(CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess> *this,
CBaseEntity **param_1)
{
undefined4 *puVar1;
char cVar2;
int iVar3;
if ((this[0x18] != (CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>)0x0) &&
(iVar3 = LoggingSystem_LogAssert
("%s (%d) : %s\n","/data/src/public/tier1/utlsortvector.h",0x94,
"Assertion Failed: !m_bNeedsSort"), iVar3 == 1)) {
cVar2 = ShouldUseNewAssertDialog();
if ((cVar2 == '\0') ||
(cVar2 = DoNewAssertDialog("/data/src/public/tier1/utlsortvector.h",0x94,
"Assertion Failed: !m_bNeedsSort"), cVar2 != '\0')) {
raise(5);
}
_ExitOnFatalAssert("/data/src/public/tier1/utlsortvector.h",0x94);
}
iVar3 = FindLessOrEqual(this,param_1);
iVar3 = iVar3 + 1;
CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>>::GrowVector
((CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>> *)this,1);
CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>>::ShiftElementsRight
((CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>> *)this,iVar3,1);
puVar1 = (undefined4 *)(*(int *)this + iVar3 * 4);
if (puVar1 != (undefined4 *)0x0) {
*puVar1 = *param_1;
}
return iVar3;
}
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.