CChoreoScene::FindAdjustedEndTime
0x00bb1990 · 162 bytes · __thiscall
_ZN12CChoreoScene19FindAdjustedEndTimeEv
Decompiled
undefined (1 param)
/* CChoreoScene::FindAdjustedEndTime() */
longdouble __thiscall CChoreoScene::FindAdjustedEndTime(CChoreoScene *this)
{
CChoreoEvent *this_00;
char cVar1;
int iVar2;
int iVar3;
longdouble lVar4;
float local_24;
float local_20;
if (*(int *)(this + 0x10) < 1) {
local_24 = 0.0;
}
else {
iVar3 = 0;
local_24 = 0.0;
do {
this_00 = *(CChoreoEvent **)(*(int *)(this + 4) + iVar3 * 4);
lVar4 = (longdouble)CChoreoEvent::GetStartTime(this_00);
cVar1 = CChoreoEvent::HasEndTime(this_00);
if (cVar1 == '\0') {
iVar2 = CChoreoEvent::GetType(this_00);
}
else {
lVar4 = (longdouble)CChoreoEvent::GetEndTime(this_00);
iVar2 = CChoreoEvent::GetType(this_00);
}
local_20 = (float)lVar4;
if (iVar2 == 5) {
local_20 = local_20 + *(float *)(this + 0x94);
}
iVar3 = iVar3 + 1;
if (local_24 <= local_20) {
local_24 = local_20;
}
} while (iVar3 < *(int *)(this + 0x10));
}
return (longdouble)local_24;
}
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.