L L4D2node

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 into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)