CSpatialPartition::EnumerateElementsAlongRay
0x001dce30 · 169 bytes · __thiscall
_ZN17CSpatialPartition25EnumerateElementsAlongRayEiRK5Ray_tbP20IPartitionEnumerator
Decompiled
undefined (5 params)
/* CSpatialPartition::EnumerateElementsAlongRay(int, Ray_t const&, bool, IPartitionEnumerator*) */
void __thiscall
CSpatialPartition::EnumerateElementsAlongRay
(CSpatialPartition *this,int param_1,Ray_t *param_2,bool param_3,
IPartitionEnumerator *param_4)
{
int *piVar1;
piVar1 = g_pMDLCache;
(**(code **)(*g_pMDLCache + 0x68))(g_pMDLCache);
/* try { // try from 001dce8a to 001dcec7 has its CatchHandler @ 001dced9 */
InvokeQueryCallbacks(this,param_1,false);
(**(code **)(*(int *)(this + (uint)((param_1 & 0x1acU) == 0) * 0xf0 + 0x40) + 0x18))
(this + (uint)((param_1 & 0x1acU) == 0) * 0xf0 + 0x40,param_1,param_2,param_3,param_4);
InvokeQueryCallbacks(this,param_1,true);
/* WARNING: Could not recover jumptable at 0x001dced7. 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.