CIKContext::SolveSequenceLocks
0x00b88740 · 311 bytes · __thiscall
_ZN10CIKContext18SolveSequenceLocksER16mstudioseqdesc_tP6VectorP10Quaternion
Decompiled
undefined (4 params)
/* CIKContext::SolveSequenceLocks(mstudioseqdesc_t&, Vector*, Quaternion*) */
void __thiscall
CIKContext::SolveSequenceLocks
(CIKContext *this,mstudioseqdesc_t *param_1,Vector *param_2,Quaternion *param_3)
{
matrix3x4_t *pmVar1;
char cVar2;
matrix3x4_t *pmVar3;
int iVar4;
int iVar5;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
do {
pmVar3 = g_MatrixPool;
if (g_MatrixPool == (matrix3x4_t *)0x0) {
pmVar3 = (matrix3x4_t *)memalign(0x10,0x1800);
if (((uint)pmVar3 & 0xf) != 0) {
raise(5);
}
break;
}
cVar2 = ThreadInterlockedAssignIf64
(&g_MatrixPool,*(undefined4 *)g_MatrixPool,DAT_01047874 + -1,g_MatrixPool,
DAT_01047874);
} while (cVar2 == '\0');
iVar4 = 0;
local_2c = 0;
local_28 = 0;
local_24 = 0;
local_20 = 0;
if (0 < *(int *)(this + 0x101c)) {
do {
iVar5 = iVar4 + 1;
SolveLock(this,(mstudioiklock_t *)(param_1 + iVar4 * 0x20 + *(int *)(param_1 + 0xa8)),iVar4,
param_2,param_3,pmVar3,(CBoneBitList *)&local_2c);
iVar4 = iVar5;
} while (iVar5 < *(int *)(this + 0x101c));
}
do {
iVar4 = DAT_01047874;
pmVar1 = g_MatrixPool;
iVar5 = DAT_01047874 + 0x10001;
*(matrix3x4_t **)pmVar3 = g_MatrixPool;
cVar2 = ThreadInterlockedAssignIf64(&g_MatrixPool,pmVar3,iVar5,pmVar1,iVar4);
} while (cVar2 == '\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.