CChoreoEvent::RemoveTrack
0x00ba51d0 · 139 bytes · __thiscall
_ZN12CChoreoEvent11RemoveTrackEi
Decompiled
undefined (2 params)
/* CChoreoEvent::RemoveTrack(int) */
void __thiscall CChoreoEvent::RemoveTrack(CChoreoEvent *this,int param_1)
{
int *piVar1;
int *piVar2;
int iVar3;
int iVar4;
if ((-1 < param_1) && (iVar4 = *(int *)(this + 0x118), param_1 < iVar4)) {
piVar1 = (int *)(*(int *)(this + 0x10c) + param_1 * 4);
piVar2 = (int *)*piVar1;
if (piVar2 != (int *)0x0) {
iVar3 = (iVar4 - param_1) + -1;
if (0 < iVar3) {
_V_memmove(piVar1,(void *)(*(int *)(this + 0x10c) + 4 + param_1 * 4),iVar3 * 4);
iVar4 = *(int *)(this + 0x118);
}
*(int *)(this + 0x118) = iVar4 + -1;
/* WARNING: Could not recover jumptable at 0x00ba5251. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*piVar2 + 4))();
return;
}
}
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.