Studio_AlignIKMatrix
0x00b853f0 · 335 bytes · __cdecl
_Z20Studio_AlignIKMatrixR11matrix3x4_tRK6Vector
Decompiled
undefined (2 params)
/* Studio_AlignIKMatrix(matrix3x4_t&, Vector const&) */
void Studio_AlignIKMatrix(matrix3x4_t *param_1,Vector *param_2)
{
float local_40;
float local_3c;
float local_38;
float local_34;
float local_30;
float local_2c;
float local_28;
float local_24;
float local_20;
local_40 = *(float *)param_2;
local_3c = *(float *)(param_2 + 4);
local_38 = *(float *)(param_2 + 8);
VectorNormalize((Vector *)&local_40);
MatrixSetColumn((Vector *)&local_40,0,param_1);
MatrixGetColumn(param_1,2,(Vector *)&local_28);
local_34 = local_38 * local_24 - local_3c * local_20;
local_30 = local_20 * local_40 - local_38 * local_28;
local_2c = local_3c * local_28 - local_24 * local_40;
VectorNormalize((Vector *)&local_34);
MatrixSetColumn((Vector *)&local_34,1,param_1);
local_28 = local_2c * local_3c - local_30 * local_38;
local_24 = local_38 * local_34 - local_2c * local_40;
local_20 = local_30 * local_40 - local_3c * local_34;
MatrixSetColumn((Vector *)&local_28,2,param_1);
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.