SetupMatrixReflection
0x00bc63c0 · 593 bytes · __cdecl
_Z21SetupMatrixReflectionRK6VPlane
Decompiled
undefined (1 param)
/* SetupMatrixReflection(VPlane const&) */
VPlane * SetupMatrixReflection(VPlane *param_1)
{
float fVar1;
float fVar2;
float *in_stack_00000008;
float local_10c;
float local_108;
float local_104;
undefined4 local_100;
float local_fc;
float local_f8;
float local_f4;
undefined4 local_f0;
float local_ec;
float local_e8;
float local_e4;
undefined4 local_e0;
undefined4 local_dc;
undefined4 local_d8;
undefined4 local_d4;
undefined4 local_d0;
undefined4 local_cc;
undefined4 local_c8;
undefined4 local_c4;
float local_c0;
undefined4 local_bc;
undefined4 local_b8;
undefined4 local_b4;
float local_b0;
undefined4 local_ac;
undefined4 local_a8;
undefined4 local_a4;
float local_a0;
undefined4 local_9c;
undefined4 local_98;
undefined4 local_94;
undefined4 local_90;
undefined4 local_8c;
undefined4 local_88;
undefined4 local_84;
float local_80;
undefined4 local_7c;
undefined4 local_78;
undefined4 local_74;
float local_70;
undefined4 local_6c;
undefined4 local_68;
undefined4 local_64;
float local_60;
undefined4 local_5c;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
VMatrix local_4c [64];
local_d0 = 0x3f800000;
local_80 = *in_stack_00000008;
fVar1 = in_stack_00000008[1];
fVar2 = in_stack_00000008[2];
local_108 = local_80 * fVar1 * -2.0;
local_104 = local_80 * fVar2 * -2.0;
local_f4 = fVar1 * fVar2 * -2.0;
local_10c = local_80 * local_80 * -2.0 + 1.0;
local_60 = in_stack_00000008[3];
local_80 = local_80 * local_60;
local_70 = fVar1 * local_60;
local_100 = 0;
local_f0 = 0;
local_e0 = 0;
local_f8 = fVar1 * fVar1 * -2.0 + 1.0;
local_dc = 0;
local_d8 = 0;
local_d4 = 0;
local_60 = fVar2 * local_60;
local_e4 = fVar2 * fVar2 * -2.0 + 1.0;
local_cc = 0x3f800000;
local_c0 = -local_80;
local_c8 = 0;
local_b0 = -local_70;
local_a0 = -local_60;
local_c4 = 0;
local_bc = 0;
local_b8 = 0x3f800000;
local_b4 = 0;
local_ac = 0;
local_a8 = 0;
local_a4 = 0x3f800000;
local_9c = 0;
local_98 = 0;
local_94 = 0;
local_90 = 0x3f800000;
local_8c = 0x3f800000;
local_88 = 0;
local_84 = 0;
local_7c = 0;
local_78 = 0x3f800000;
local_74 = 0;
local_6c = 0;
local_68 = 0;
local_64 = 0x3f800000;
local_5c = 0;
local_58 = 0;
local_54 = 0;
local_50 = 0x3f800000;
local_fc = local_108;
local_ec = local_104;
local_e8 = local_f4;
VMatrix::MatrixMul((VMatrix *)&local_8c,(VMatrix *)&local_10c,local_4c);
VMatrix::MatrixMul(local_4c,(VMatrix *)&local_cc,(VMatrix *)param_1);
return param_1;
}
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.