L L4D2node

CDirectorScavengeMode::OnEndOvertime

0x008b3250 · 258 bytes · __thiscall

_ZN21CDirectorScavengeMode13OnEndOvertimeEb

Decompiled

undefined (2 params)

/* CDirectorScavengeMode::OnEndOvertime(bool) */

void __thiscall CDirectorScavengeMode::OnEndOvertime(CDirectorScavengeMode *this,bool param_1)

{
  int iVar1;
  CInfoDirector *pCVar2;
  ScavengeOvertimeTimeAdded local_d;
  
  this[0xb] = (CDirectorScavengeMode)0x0;
  if (*(float *)(this + 0x24) != -1.0) {
    (**(code **)(*(int *)(this + 0x1c) + 4))(this + 0x1c,this + 0x24);
    *(undefined4 *)(this + 0x24) = 0xbf800000;
  }
  if (param_1) {
    ForEachTerrorPlayer<ScavengeOvertimeTimeAdded>(&local_d);
    iVar1 = CGlobalEntityList::FindEntityByClassname
                      ((CGlobalEntityList *)gEntList,(CBaseEntity *)0x0,"info_director");
    if (iVar1 != 0) {
      pCVar2 = (CInfoDirector *)
               __dynamic_cast(iVar1,&CBaseEntity::typeinfo,&CInfoDirector::typeinfo,0);
      if (pCVar2 != (CInfoDirector *)0x0) {
        CInfoDirector::OnScavengeOvertimeCancel(pCVar2);
      }
    }
  }
  else {
    iVar1 = CGlobalEntityList::FindEntityByClassname
                      ((CGlobalEntityList *)gEntList,(CBaseEntity *)0x0,"info_director");
    if (iVar1 != 0) {
      pCVar2 = (CInfoDirector *)
               __dynamic_cast(iVar1,&CBaseEntity::typeinfo,&CInfoDirector::typeinfo,0);
      if (pCVar2 != (CInfoDirector *)0x0) {
        CInfoDirector::OnScavengeTimerExpired(pCVar2);
        return;
      }
    }
  }
  return;
}

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)