NextBotManager::IsDebugFilterMatch
0x00759370 · 403 bytes · __thiscall
_ZNK14NextBotManager18IsDebugFilterMatchEPK8INextBot
Decompiled
undefined (2 params)
/* NextBotManager::IsDebugFilterMatch(INextBot const*) const */
undefined4 __thiscall NextBotManager::IsDebugFilterMatch(NextBotManager *this,INextBot *param_1)
{
code *pcVar1;
char cVar2;
int *piVar3;
undefined4 uVar4;
int iVar5;
int iVar6;
int iVar7;
int local_24;
if (*(int *)(this + 0x44) == 0) {
return 1;
}
if (0 < *(int *)(this + 0x44)) {
iVar7 = 0;
local_24 = 0;
do {
iVar6 = *(int *)(*(int *)(this + 0x38) + iVar7);
iVar5 = (**(code **)(*(int *)param_1 + 0xb4))(param_1);
if (*(int *)(iVar5 + 0x30) == 0) {
if (iVar6 == 0) {
return 1;
}
}
else if (iVar6 == *(int *)(iVar5 + 0x30) - *(int *)(gpGlobals + 0x58) >> 4) {
return 1;
}
iVar6 = *(int *)(this + 0x38) + iVar7;
if (*(char *)(iVar6 + 4) != '\0') {
cVar2 = (**(code **)(*(int *)param_1 + 0x140))(param_1,iVar6 + 4);
if (cVar2 != '\0') {
return 1;
}
iVar6 = *(int *)(this + 0x38) + iVar7;
}
iVar6 = _V_strlen((char *)(iVar6 + 4));
iVar6 = V_strnicmp((char *)(*(int *)(this + 0x38) + iVar7 + 4),"lookat",iVar6);
if (((iVar6 == 0) && (piVar3 = (int *)UTIL_GetListenServerHost(), piVar3 != (int *)0x0)) &&
(piVar3 = (int *)(**(code **)(*piVar3 + 0x654))(piVar3), piVar3 != (int *)0x0)) {
pcVar1 = *(code **)(*(int *)param_1 + 0xe0);
uVar4 = (**(code **)(*piVar3 + 0x144))(piVar3);
cVar2 = (*pcVar1)(param_1,uVar4);
if (cVar2 != '\0') {
return 1;
}
}
iVar6 = _V_strlen((char *)(*(int *)(this + 0x38) + iVar7 + 4));
iVar6 = V_strnicmp((char *)(*(int *)(this + 0x38) + iVar7 + 4),"selected",iVar6);
if ((iVar6 == 0) && (piVar3 = *(int **)(this + 0x4c), piVar3 != (int *)0x0)) {
pcVar1 = *(code **)(*(int *)param_1 + 0xe0);
uVar4 = (**(code **)(*piVar3 + 0xb4))(piVar3);
cVar2 = (*pcVar1)(param_1,uVar4);
if (cVar2 != '\0') {
return 1;
}
}
local_24 = local_24 + 1;
iVar7 = iVar7 + 0x84;
} while (local_24 < *(int *)(this + 0x44));
}
return 0;
}
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.