L L4D2node

CEntitySphereQuery::GetCurrentEntity

0x00b291d0 · 23 bytes · __thiscall

_ZN18CEntitySphereQuery16GetCurrentEntityEv

Decompiled

undefined (1 param)

/* CEntitySphereQuery::GetCurrentEntity() */

undefined4 __thiscall CEntitySphereQuery::GetCurrentEntity(CEntitySphereQuery *this)

{
  if (*(int *)this < *(int *)(this + 4)) {
    return *(undefined4 *)(this + *(int *)this * 4 + 8);
  }
  return 0;
}

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)