fourplanes_t::Set2Planes
0x0027aaf0 · 152 bytes · __thiscall
_ZN12fourplanes_t10Set2PlanesEPK6VPlane
Decompiled
undefined (2 params)
/* fourplanes_t::Set2Planes(VPlane const*) */
void __thiscall fourplanes_t::Set2Planes(fourplanes_t *this,VPlane *param_1)
{
float fVar1;
float fVar2;
float fVar3;
undefined4 uVar4;
float fVar5;
float fVar6;
float fVar7;
undefined4 uVar8;
fVar1 = *(float *)param_1;
fVar2 = *(float *)(param_1 + 4);
fVar3 = *(float *)(param_1 + 8);
uVar4 = *(undefined4 *)(param_1 + 0xc);
*(float *)this = fVar1;
*(float *)(this + 4) = fVar2;
*(float *)(this + 8) = fVar3;
*(undefined4 *)(this + 0xc) = uVar4;
fVar5 = *(float *)(param_1 + 0x10);
fVar6 = *(float *)(param_1 + 0x14);
fVar7 = *(float *)(param_1 + 0x18);
uVar8 = *(undefined4 *)(param_1 + 0x1c);
*(float *)this = fVar1;
*(float *)(this + 4) = fVar5;
*(undefined4 *)(this + 8) = 0;
*(undefined4 *)(this + 0xc) = 0;
*(float *)(this + 0x10) = fVar2;
*(float *)(this + 0x14) = fVar6;
*(undefined4 *)(this + 0x18) = 0;
*(undefined4 *)(this + 0x1c) = 0;
*(float *)(this + 0x20) = fVar3;
*(float *)(this + 0x24) = fVar7;
*(undefined4 *)(this + 0x28) = 0;
*(undefined4 *)(this + 0x2c) = 0;
*(uint *)(this + 0x40) = -(uint)(fVar1 < (float)0);
*(uint *)(this + 0x44) = -(uint)(fVar5 < (float)0);
*(undefined4 *)(this + 0x48) = 0;
*(undefined4 *)(this + 0x4c) = 0;
*(undefined4 *)(this + 0x30) = uVar4;
*(undefined4 *)(this + 0x34) = uVar8;
*(undefined4 *)(this + 0x38) = 0;
*(undefined4 *)(this + 0x3c) = 0;
*(uint *)(this + 0x60) = -(uint)(fVar3 < (float)0);
*(uint *)(this + 100) = -(uint)(fVar7 < (float)0);
*(undefined4 *)(this + 0x68) = 0;
*(undefined4 *)(this + 0x6c) = 0;
*(uint *)(this + 0x50) = -(uint)(fVar2 < (float)0);
*(uint *)(this + 0x54) = -(uint)(fVar6 < (float)0);
*(undefined4 *)(this + 0x58) = 0;
*(undefined4 *)(this + 0x5c) = 0;
*(float *)(this + 0x70) = ABS(fVar1);
*(float *)(this + 0x74) = ABS(fVar5);
*(undefined4 *)(this + 0x78) = 0;
*(undefined4 *)(this + 0x7c) = 0;
*(float *)(this + 0x80) = ABS(fVar2);
*(float *)(this + 0x84) = ABS(fVar6);
*(undefined4 *)(this + 0x88) = 0;
*(undefined4 *)(this + 0x8c) = 0;
*(float *)(this + 0x90) = ABS(fVar3);
*(float *)(this + 0x94) = ABS(fVar7);
*(undefined4 *)(this + 0x98) = 0;
*(undefined4 *)(this + 0x9c) = 0;
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.