CChoreoEvent::AddTimingTag
0x00baa290 · 412 bytes · __thiscall
_ZN12CChoreoEvent12AddTimingTagEPKcfb
Decompiled
undefined (4 params)
/* CChoreoEvent::AddTimingTag(char const*, float, bool) */
void __thiscall
CChoreoEvent::AddTimingTag(CChoreoEvent *this,char *param_1,float param_2,bool param_3)
{
CUtlString *this_00;
int iVar1;
CUtlString *this_01;
int local_70;
int local_6c;
int local_64;
int local_60;
CEventRelativeTag local_54 [24];
undefined1 local_3c;
CEventRelativeTag local_38 [16];
undefined4 local_28;
undefined4 local_24;
CUtlString local_20;
CEventRelativeTag::CEventRelativeTag(local_54,this,param_1,param_2);
local_3c = param_3;
/* try { // try from 00baa2dd to 00baa304 has its CatchHandler @ 00baa42c */
CUtlVector<CFlexTimingTag,CUtlMemory<CFlexTimingTag,int>>::InsertBefore
((CUtlVector<CFlexTimingTag,CUtlMemory<CFlexTimingTag,int>> *)(this + 0xd0),
*(int *)(this + 0xdc),(CFlexTimingTag *)local_54);
CEventRelativeTag::CEventRelativeTag(local_38,(CChoreoEvent *)0x1,"",0.0);
iVar1 = *(int *)(this + 0xdc);
local_6c = 0;
local_20 = (CUtlString)0x0;
local_70 = 0x1c;
if (0 < iVar1) {
do {
local_6c = local_6c + 1;
if (local_6c < iVar1) {
local_60 = local_70;
local_64 = local_6c;
do {
while( true ) {
this_00 = (CUtlString *)(*(int *)(this + 0xd0) + local_70 + -0x1c);
this_01 = (CUtlString *)(*(int *)(this + 0xd0) + local_60);
if (*(float *)(this_00 + 0x10) < *(float *)(this_01 + 0x10) ||
*(float *)(this_00 + 0x10) == *(float *)(this_01 + 0x10)) break;
/* try { // try from 00baa385 to 00baa3d2 has its CatchHandler @ 00baa441 */
CUtlString::operator=((CUtlString *)local_38,this_00);
local_24 = *(undefined4 *)(this_00 + 0x14);
local_28 = *(undefined4 *)(this_00 + 0x10);
local_20 = this_00[0x18];
CUtlString::operator=(this_00,this_01);
*(undefined4 *)(this_00 + 0x10) = *(undefined4 *)(this_01 + 0x10);
*(undefined4 *)(this_00 + 0x14) = *(undefined4 *)(this_01 + 0x14);
this_00[0x18] = this_01[0x18];
CUtlString::operator=(this_01,(CUtlString *)local_38);
local_64 = local_64 + 1;
local_60 = local_60 + 0x1c;
*(undefined4 *)(this_01 + 0x10) = local_28;
*(undefined4 *)(this_01 + 0x14) = local_24;
this_01[0x18] = local_20;
iVar1 = *(int *)(this + 0xdc);
if (iVar1 <= local_64) goto LAB_00baa401;
}
local_64 = local_64 + 1;
local_60 = local_60 + 0x1c;
} while (local_64 < iVar1);
}
LAB_00baa401:
local_70 = local_70 + 0x1c;
} while (local_6c < iVar1);
}
CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)local_38);
CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)local_54);
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.