CommonInfectedCollector::operator()
0x0087ed60 · 250 bytes · __thiscall
_ZN23CommonInfectedCollectorclEP8INextBot
Decompiled
undefined (2 params)
/* CommonInfectedCollector::TEMPNAMEPLACEHOLDERVALUE(INextBot*) */
undefined4 __thiscall
CommonInfectedCollector::operator()(CommonInfectedCollector *this,INextBot *param_1)
{
char cVar1;
int *piVar2;
CBaseEntity *this_00;
int iVar3;
CBaseEntity *local_10 [2];
piVar2 = (int *)(**(code **)(*(int *)param_1 + 0xb4))(param_1);
if (piVar2 == (int *)0x0) {
return 1;
}
this_00 = (CBaseEntity *)(**(code **)(*piVar2 + 0x14c))(piVar2);
if (this_00 == (CBaseEntity *)0x0) {
return 1;
}
local_10[0] = this_00;
iVar3 = CBaseEntity::GetTeamNumber(this_00);
if ((iVar3 == 3) && (iVar3 = (**(code **)(*(int *)this_00 + 0x544))(this_00), iVar3 != 0)) {
return 1;
}
if (((byte)local_10[0][0x14c] & 1) != 0) {
return 1;
}
iVar3 = *(int *)this;
if (iVar3 != 0) {
if (iVar3 == 1) {
piVar2 = (int *)(**(code **)(*(int *)local_10[0] + 0x594))(local_10[0]);
cVar1 = (**(code **)(*piVar2 + 0x114))(piVar2,2);
if (cVar1 != '\0') goto LAB_0087edaf;
iVar3 = *(int *)this;
}
if (iVar3 != 2) {
return 1;
}
piVar2 = (int *)(**(code **)(*(int *)local_10[0] + 0x594))(local_10[0]);
cVar1 = (**(code **)(*piVar2 + 0x114))(piVar2,2);
if (cVar1 != '\0') {
return 1;
}
}
LAB_0087edaf:
CUtlVector<Infected*,CUtlMemory<Infected*,int>>::InsertBefore
((CUtlVector<Infected*,CUtlMemory<Infected*,int>> *)(this + 4),*(int *)(this + 0x10),
(Infected **)local_10);
return 1;
}
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.