CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>::FindLessOrEqual
0x0067f310 · 328 bytes · __thiscall
_ZNK14CUtlSortVectorIP11CBaseEntityN17CSortedEntityList17CEntityReportLessEE15FindLessOrEqualERKS1_
Decompiled
undefined (2 params)
/* CUtlSortVector<CBaseEntity*, CSortedEntityList::CEntityReportLess>::FindLessOrEqual(CBaseEntity*
const&) const */
int __thiscall
CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>::FindLessOrEqual
(CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess> *this,
CBaseEntity **param_1)
{
char cVar1;
char *pcVar2;
int iVar3;
char *pcVar4;
int iVar5;
int local_24;
int local_20;
if ((this[0x18] != (CUtlSortVector<CBaseEntity*,CSortedEntityList::CEntityReportLess>)0x0) &&
(iVar5 = LoggingSystem_LogAssert
("%s (%d) : %s\n","/data/src/public/tier1/utlsortvector.h",0xf4,
"Assertion Failed: !m_bNeedsSort"), iVar5 == 1)) {
cVar1 = ShouldUseNewAssertDialog();
if ((cVar1 == '\0') ||
(cVar1 = DoNewAssertDialog("/data/src/public/tier1/utlsortvector.h",0xf4,
"Assertion Failed: !m_bNeedsSort"), cVar1 != '\0')) {
raise(5);
}
_ExitOnFatalAssert("/data/src/public/tier1/utlsortvector.h",0xf4);
}
local_24 = *(int *)(this + 0xc) + -1;
if (-1 < local_24) {
local_20 = 0;
do {
pcVar4 = *(char **)(*param_1 + 0x7c);
iVar5 = local_20 + local_24 >> 1;
if (pcVar4 == (char *)0x0) {
pcVar4 = "";
}
pcVar2 = *(char **)(*(int *)(*(int *)this + iVar5 * 4) + 0x7c);
if (pcVar2 == (char *)0x0) {
pcVar2 = "";
}
iVar3 = _V_stricmp(pcVar2,pcVar4);
if (iVar3 < 0) {
local_20 = iVar5 + 1;
}
else {
pcVar4 = *(char **)(*param_1 + 0x7c);
pcVar2 = *(char **)(*(int *)(*(int *)this + iVar5 * 4) + 0x7c);
if (pcVar2 == (char *)0x0) {
pcVar2 = "";
}
if (pcVar4 == (char *)0x0) {
pcVar4 = "";
}
iVar3 = _V_stricmp(pcVar4,pcVar2);
if (-1 < iVar3) {
return iVar5;
}
local_24 = iVar5 + -1;
}
} while (local_20 <= local_24);
}
return local_24;
}
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.