CCollisionEvent::GetListOfPenetratingEntities
0x0077deb0 · 370 bytes · __thiscall
_ZN15CCollisionEvent28GetListOfPenetratingEntitiesEP11CBaseEntityR10CUtlVectorIS1_10CUtlMemoryIS1_iEE
Decompiled
undefined (3 params)
/* CCollisionEvent::GetListOfPenetratingEntities(CBaseEntity*, CUtlVector<CBaseEntity*,
CUtlMemory<CBaseEntity*, int> >&) */
void __thiscall
CCollisionEvent::GetListOfPenetratingEntities
(CCollisionEvent *this,CBaseEntity *param_1,CUtlVector *param_2)
{
uint uVar1;
uint uVar2;
uint *puVar3;
uint uVar4;
undefined *puVar5;
int *piVar6;
int local_34;
int local_30;
CBaseEntity *local_20 [4];
local_30 = *(int *)(this + 300) + -1;
if (-1 < local_30) {
local_34 = local_30 * 0x14;
do {
puVar3 = (uint *)(local_34 + *(int *)(this + 0x120));
uVar1 = *puVar3;
if (((uVar1 == 0xffffffff) ||
(puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar5 + 8) != uVar1 >> 0xc)) {
uVar4 = puVar3[1];
if (param_1 == (CBaseEntity *)0x0) goto LAB_0077dfc8;
LAB_0077df2b:
if ((uVar4 == 0xffffffff) ||
(piVar6 = (int *)(g_pEntityList + (uVar4 & 0xfff) * 0x10 + 4), piVar6 == (int *)0x0)) {
LAB_0077df4f:
if (param_1 == (CBaseEntity *)0x0) {
LAB_0077df80:
if (((uVar1 != 0xffffffff) &&
(puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)
) && ((*(uint *)(puVar5 + 8) == uVar1 >> 0xc &&
(local_20[0] = *(CBaseEntity **)(puVar5 + 4),
local_20[0] != (CBaseEntity *)0x0)))) goto LAB_0077e010;
}
}
else {
LAB_0077df45:
if (piVar6[1] != uVar4 >> 0xc) goto LAB_0077df4f;
if (param_1 == (CBaseEntity *)*piVar6) goto LAB_0077df80;
}
}
else {
uVar4 = puVar3[1];
if (param_1 != *(CBaseEntity **)(puVar5 + 4)) goto LAB_0077df2b;
LAB_0077dfc8:
if (uVar4 == 0xffffffff) goto LAB_0077df4f;
uVar2 = uVar4 & 0xfff;
piVar6 = (int *)(g_pEntityList + uVar2 * 0x10 + 4);
if (piVar6 == (int *)0x0) goto LAB_0077df4f;
if ((*(uint *)(g_pEntityList + uVar2 * 0x10 + 8) != uVar4 >> 0xc) ||
(local_20[0] = *(CBaseEntity **)(g_pEntityList + uVar2 * 0x10 + 4),
local_20[0] == (CBaseEntity *)0x0)) goto LAB_0077df45;
LAB_0077e010:
CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>>::InsertBefore
((CUtlVector<CBaseEntity*,CUtlMemory<CBaseEntity*,int>> *)param_2,
*(int *)(param_2 + 0xc),local_20);
}
local_30 = local_30 + -1;
local_34 = local_34 + -0x14;
} while (local_30 != -1);
}
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.