L L4D2node

CChoreoScene::EventLess

0x00baf040 · 398 bytes · __cdecl

_ZN12CChoreoScene9EventLessERKNS_10ActiveListES2_

Decompiled

undefined (2 params)

/* CChoreoScene::EventLess(CChoreoScene::ActiveList const&, CChoreoScene::ActiveList const&) */

bool CChoreoScene::EventLess(ActiveList *param_1,ActiveList *param_2)

{
  CChoreoEvent *this;
  CChoreoEvent *this_00;
  char cVar1;
  CChoreoActor *this_01;
  CChoreoActor *pCVar2;
  char *__s2;
  char *__s1;
  int iVar3;
  CChoreoChannel *pCVar4;
  CChoreoChannel *pCVar5;
  int iVar6;
  bool bVar7;
  longdouble lVar8;
  longdouble lVar9;
  
  this = *(CChoreoEvent **)(param_1 + 4);
  this_00 = *(CChoreoEvent **)(param_2 + 4);
  lVar8 = (longdouble)CChoreoEvent::GetStartTime(this);
  lVar9 = (longdouble)CChoreoEvent::GetStartTime(this_00);
  if ((float)lVar9 <= (float)lVar8) {
    lVar8 = (longdouble)CChoreoEvent::GetStartTime(this);
    lVar9 = (longdouble)CChoreoEvent::GetStartTime(this_00);
    if ((float)lVar9 < (float)lVar8) {
      return false;
    }
    cVar1 = CChoreoEvent::HasEndTime(this);
    if ((cVar1 != '\0') && (cVar1 = CChoreoEvent::HasEndTime(this_00), cVar1 != '\0')) {
      lVar8 = (longdouble)CChoreoEvent::GetEndTime(this);
      lVar9 = (longdouble)CChoreoEvent::GetEndTime(this_00);
      if ((float)lVar9 < (float)lVar8) goto LAB_00baf076;
      lVar8 = (longdouble)CChoreoEvent::GetEndTime(this);
      lVar9 = (longdouble)CChoreoEvent::GetEndTime(this_00);
      if ((float)lVar8 < (float)lVar9) {
        return false;
      }
    }
    this_01 = (CChoreoActor *)CChoreoEvent::GetActor(this);
    pCVar2 = (CChoreoActor *)CChoreoEvent::GetActor(this_00);
    if (((this_01 != (CChoreoActor *)0x0) && (pCVar2 != (CChoreoActor *)0x0)) && (this_01 == pCVar2)
       ) {
      pCVar4 = (CChoreoChannel *)CChoreoEvent::GetChannel(this);
      pCVar5 = (CChoreoChannel *)CChoreoEvent::GetChannel(this_00);
      if (((pCVar4 != (CChoreoChannel *)0x0) && (pCVar5 != (CChoreoChannel *)0x0)) &&
         (pCVar4 == pCVar5)) {
        iVar3 = CChoreoActor::FindChannelIndex(this_01,pCVar4);
        iVar6 = CChoreoActor::FindChannelIndex(this_01,pCVar4);
        return iVar3 < iVar6;
      }
    }
    __s2 = (char *)CChoreoEvent::GetName(this_00);
    __s1 = (char *)CChoreoEvent::GetName(this);
    iVar3 = strcmp(__s1,__s2);
    bVar7 = iVar3 == -1;
  }
  else {
LAB_00baf076:
    bVar7 = true;
  }
  return bVar7;
}

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)