fourplanes_t::SetPlane
0x00bc43c0 · 148 bytes · __thiscall
_ZN12fourplanes_t8SetPlaneEiRK6Vectorf
Decompiled
undefined (4 params)
/* fourplanes_t::SetPlane(int, Vector const&, float) */
void __thiscall fourplanes_t::SetPlane(fourplanes_t *this,int param_1,Vector *param_2,float param_3)
{
int iVar1;
*(undefined4 *)(this + param_1 * 4) = *(undefined4 *)param_2;
iVar1 = param_1 * 4;
*(undefined4 *)(this + iVar1 + 0x10) = *(undefined4 *)(param_2 + 4);
*(undefined4 *)(this + iVar1 + 0x20) = *(undefined4 *)(param_2 + 8);
*(float *)(this + iVar1 + 0x30) = param_3;
*(uint *)(this + 0x40) = -(uint)(*(float *)this < (float)0);
*(uint *)(this + 0x44) = -(uint)(*(float *)(this + 4) < (float)0);
*(uint *)(this + 0x48) = -(uint)(*(float *)(this + 8) < (float)0);
*(uint *)(this + 0x4c) = -(uint)(*(float *)(this + 0xc) < (float)0);
*(uint *)(this + 0x60) = -(uint)(*(float *)(this + 0x20) < (float)0);
*(uint *)(this + 100) = -(uint)(*(float *)(this + 0x24) < (float)0);
*(uint *)(this + 0x68) = -(uint)(*(float *)(this + 0x28) < (float)0);
*(uint *)(this + 0x6c) = -(uint)(*(float *)(this + 0x2c) < (float)0);
*(uint *)(this + 0x50) = -(uint)(*(float *)(this + 0x10) < (float)0);
*(uint *)(this + 0x54) = -(uint)(*(float *)(this + 0x14) < (float)0);
*(uint *)(this + 0x58) = -(uint)(*(float *)(this + 0x18) < (float)0);
*(uint *)(this + 0x5c) = -(uint)(*(float *)(this + 0x1c) < (float)0);
*(float *)(this + 0x70) = ABS(*(float *)this);
*(float *)(this + 0x74) = ABS(*(float *)(this + 4));
*(float *)(this + 0x78) = ABS(*(float *)(this + 8));
*(float *)(this + 0x7c) = ABS(*(float *)(this + 0xc));
*(float *)(this + 0x80) = ABS(*(float *)(this + 0x10));
*(float *)(this + 0x84) = ABS(*(float *)(this + 0x14));
*(float *)(this + 0x88) = ABS(*(float *)(this + 0x18));
*(float *)(this + 0x8c) = ABS(*(float *)(this + 0x1c));
*(uint *)(this + 0x90) = *(uint *)(this + 0x20) & 0x7fffffff;
*(uint *)(this + 0x94) = *(uint *)(this + 0x24) & 0x7fffffff;
*(uint *)(this + 0x98) = *(uint *)(this + 0x28) & 0x7fffffff;
*(uint *)(this + 0x9c) = *(uint *)(this + 0x2c) & 0x7fffffff;
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.