L L4D2node

CChoreoScene::FindLastSpeakTime

0x00baff90 · 119 bytes · __thiscall

_ZNK12CChoreoScene17FindLastSpeakTimeEv

Decompiled

undefined (1 param)

/* CChoreoScene::FindLastSpeakTime() const */

longdouble __thiscall CChoreoScene::FindLastSpeakTime(CChoreoScene *this)

{
  CChoreoEvent *this_00;
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  longdouble lVar5;
  
  iVar3 = *(int *)(this + 0x10) + -1;
  iVar4 = iVar3 * 4;
  if (-1 < iVar3) {
    do {
      iVar2 = CChoreoEvent::GetType(*(CChoreoEvent **)(*(int *)(this + 4) + iVar4));
      if (iVar2 == 5) {
        this_00 = *(CChoreoEvent **)(*(int *)(this + 4) + iVar4);
        cVar1 = CChoreoEvent::HasEndTime(this_00);
        if (cVar1 == '\0') {
          lVar5 = (longdouble)CChoreoEvent::GetStartTime(this_00);
          return lVar5;
        }
        lVar5 = (longdouble)CChoreoEvent::GetEndTime(this_00);
        return lVar5;
      }
      iVar3 = iVar3 + -1;
      iVar4 = iVar4 + -4;
    } while (iVar3 != -1);
  }
  return (longdouble)0;
}

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)