L L4D2node

CChoreoScene::FindPauseBetweenTimes

0x00bb1b90 · 93 bytes · __thiscall

_ZN12CChoreoScene21FindPauseBetweenTimesEff

Decompiled

undefined (3 params)

/* CChoreoScene::FindPauseBetweenTimes(float, float) */

CChoreoEvent * __thiscall
CChoreoScene::FindPauseBetweenTimes(CChoreoScene *this,float param_1,float param_2)

{
  CChoreoEvent *this_00;
  int iVar1;
  longdouble lVar2;
  
  iVar1 = 0;
  if (0 < *(int *)(this + 0x74)) {
    do {
      this_00 = *(CChoreoEvent **)(*(int *)(this + 0x68) + iVar1 * 4);
      if (this_00 != (CChoreoEvent *)0x0) {
        lVar2 = (longdouble)CChoreoEvent::GetStartTime(this_00);
        if (((float)lVar2 <= param_2) && (param_1 <= (float)lVar2)) {
          return this_00;
        }
      }
      iVar1 = iVar1 + 1;
    } while (iVar1 < *(int *)(this + 0x74));
  }
  return (CChoreoEvent *)0x0;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)