CFlexAnimationTrack::RemoveOutOfRangeSamples
0x00ba9de0 · 121 bytes · __thiscall
_ZN19CFlexAnimationTrack23RemoveOutOfRangeSamplesEi
Decompiled
undefined (2 params)
/* CFlexAnimationTrack::RemoveOutOfRangeSamples(int) */
void __thiscall CFlexAnimationTrack::RemoveOutOfRangeSamples(CFlexAnimationTrack *this,int param_1)
{
CUtlVector<CExpressionSample,CUtlMemory<CExpressionSample,int>> *this_00;
float fVar1;
undefined4 *puVar2;
int iVar3;
int iVar4;
longdouble lVar5;
puVar2 = *(undefined4 **)(this + 0x58);
if (puVar2 != (undefined4 *)0x0) {
lVar5 = (longdouble)(**(code **)*puVar2)(puVar2);
this_00 = (CUtlVector<CExpressionSample,CUtlMemory<CExpressionSample,int>> *)
(this + param_1 * 0x14 + 0x10);
iVar4 = *(int *)(this_00 + 0xc) + -1;
if (-1 < iVar4) {
iVar3 = iVar4 * 10;
do {
fVar1 = *(float *)(*(int *)this_00 + 4 + iVar3);
if ((fVar1 < 0.0) || ((float)lVar5 < fVar1)) {
CUtlVector<CExpressionSample,CUtlMemory<CExpressionSample,int>>::ShiftElementsLeft
(this_00,iVar4,1);
*(int *)(this_00 + 0xc) = *(int *)(this_00 + 0xc) + -1;
}
iVar3 = iVar3 + -10;
iVar4 = iVar4 + -1;
} while (iVar3 != -10);
}
}
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.