CDispCollTree::Cache_EdgeCrossAxisZ
0x000ce650 · 259 bytes · __thiscall
_ZN13CDispCollTree20Cache_EdgeCrossAxisZERK6VectorS2_S2_P12CDispCollTriRt
Decompiled
undefined (6 params)
/* CDispCollTree::Cache_EdgeCrossAxisZ(Vector const&, Vector const&, Vector const&, CDispCollTri*,
unsigned short&) */
undefined4 __thiscall
CDispCollTree::Cache_EdgeCrossAxisZ
(CDispCollTree *this,Vector *param_1,Vector *param_2,Vector *param_3,CDispCollTri *param_4
,ushort *param_5)
{
ushort uVar1;
float fVar2;
float local_18;
float local_14;
float local_10;
local_10 = 0.0;
local_18 = *(float *)(param_1 + 4);
local_14 = -*(float *)param_1;
VectorNormalize((Vector *)&local_18);
if ((local_18 != 0.0) && (local_14 != 0.0)) {
local_10 = *(float *)(param_2 + 4) * local_14 + *(float *)param_2 * local_18;
fVar2 = *(float *)(param_3 + 4) * local_14 + *(float *)param_3 * local_18;
if ((0.03125 <= ABS(fVar2 - local_10)) && (local_10 < fVar2)) {
local_18 = -local_18;
local_14 = -local_14;
local_10 = -local_10;
}
uVar1 = AddPlane(this,(Vector *)&local_18);
*param_5 = uVar1;
return 1;
}
*param_5 = 0xffff;
return 0;
}
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.