CSpatialPartition::EnumerateElementsInBox
0x001dcc90 · 182 bytes · __thiscall
_ZN17CSpatialPartition22EnumerateElementsInBoxEiRK6VectorS2_bP20IPartitionEnumerator
Decompiled
undefined (6 params)
/* CSpatialPartition::EnumerateElementsInBox(int, Vector const&, Vector const&, bool,
IPartitionEnumerator*) */
void __thiscall
CSpatialPartition::EnumerateElementsInBox
(CSpatialPartition *this,int param_1,Vector *param_2,Vector *param_3,bool param_4,
IPartitionEnumerator *param_5)
{
int *piVar1;
piVar1 = g_pMDLCache;
(**(code **)(*g_pMDLCache + 0x68))(g_pMDLCache);
/* try { // try from 001dccf0 to 001dcd34 has its CatchHandler @ 001dcd46 */
InvokeQueryCallbacks(this,param_1,false);
(**(code **)(*(int *)(this + (uint)((param_1 & 0x1acU) == 0) * 0xf0 + 0x40) + 0x10))
(this + (uint)((param_1 & 0x1acU) == 0) * 0xf0 + 0x40,param_1,param_2,param_3,param_4,
param_5);
InvokeQueryCallbacks(this,param_1,true);
/* WARNING: Could not recover jumptable at 0x001dcd44. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*piVar1 + 0x6c))();
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.