CDispCollTree::AABBTree_Ray
0x000cbd10 · 215 bytes · __regparm2
_ZN13CDispCollTree12AABBTree_RayERK5Ray_tR15RayDispOutput_t
Decompiled
undefined (2 params)
/* CDispCollTree::AABBTree_Ray(Ray_t const&, RayDispOutput_t&) */
void __regparm2 CDispCollTree::AABBTree_Ray(Ray_t *param_1,RayDispOutput_t *param_2)
{
char cVar1;
CDispCollTree *in_stack_00000004;
Ray_t *in_stack_00000008;
RayDispOutput_t *in_stack_0000000c;
float local_18;
float local_14;
float local_10;
cVar1 = IsBoxIntersectingRay
((Vector *)(in_stack_00000004 + 4),(Vector *)param_2,
(Vector *)(in_stack_00000004 + 4),(Vector *)(in_stack_00000004 + 0x14),
(float)in_stack_00000008);
if (cVar1 != '\0') {
if (*(float *)(in_stack_00000008 + 0x10) == 0.0) {
local_14 = *(float *)(in_stack_00000008 + 0x14);
local_18 = 3.4028235e+38;
}
else {
local_18 = 1.0 / *(float *)(in_stack_00000008 + 0x10);
local_14 = *(float *)(in_stack_00000008 + 0x14);
}
if (local_14 == 0.0) {
local_10 = *(float *)(in_stack_00000008 + 0x18);
local_14 = 3.4028235e+38;
}
else {
local_14 = 1.0 / local_14;
local_10 = *(float *)(in_stack_00000008 + 0x18);
}
if (local_10 == 0.0) {
local_10 = 3.4028235e+38;
}
else {
local_10 = 1.0 / local_10;
}
AABBTree_Ray(in_stack_00000004,in_stack_00000008,(Vector *)&local_18,in_stack_0000000c);
return;
}
return;
}
SourceMod gamedata
paste intoaddons/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.
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.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.