Studio_SolveIK
0x00b85f60 · 262 bytes · __cdecl
_Z14Studio_SolveIKP16mstudioikchain_tR6VectorP11matrix3x4_t
Decompiled
undefined (3 params)
/* Studio_SolveIK(mstudioikchain_t*, Vector&, matrix3x4_t*) */
void Studio_SolveIK(mstudioikchain_t *param_1,Vector *param_2,matrix3x4_t *param_3)
{
mstudioikchain_t *pmVar1;
int iVar2;
int iVar3;
Vector local_40 [12];
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
float local_28;
int local_24;
int local_20;
iVar2 = *(int *)(param_1 + 0xc);
pmVar1 = param_1 + iVar2;
if (0.0 < *(float *)(pmVar1 + 4) * *(float *)(pmVar1 + 4) +
*(float *)(pmVar1 + 0xc) * *(float *)(pmVar1 + 0xc) +
*(float *)(pmVar1 + 8) * *(float *)(pmVar1 + 8)) {
local_28 = *(float *)(pmVar1 + 4);
local_24 = *(int *)(pmVar1 + 8);
local_20 = *(int *)(pmVar1 + 0xc);
VectorRotate(&local_28,param_3 + *(int *)pmVar1 * 0x30,(float *)local_40);
iVar2 = *(int *)(param_1 + 0xc);
iVar3 = *(int *)(param_1 + iVar2 + 0x1c);
local_34 = *(undefined4 *)(param_3 + iVar3 * 0x30 + 0xc);
local_30 = *(undefined4 *)(param_3 + iVar3 * 0x30 + 0x1c);
local_2c = *(undefined4 *)(param_3 + iVar3 * 0x30 + 0x2c);
Studio_SolveIK(*(int *)(param_1 + iVar2),iVar3,*(int *)(param_1 + iVar2 + 0x38),param_2,
(Vector *)&local_34,local_40,param_3);
return;
}
Studio_SolveIK(*(int *)pmVar1,*(int *)(param_1 + iVar2 + 0x1c),*(int *)(param_1 + iVar2 + 0x38),
param_2,param_3);
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.