L L4D2node

TerrorNavArea::GetTimeSinceCleared

0x00986cf0 · 103 bytes · __thiscall

_ZNK13TerrorNavArea19GetTimeSinceClearedEv

Decompiled

undefined (1 param)

/* TerrorNavArea::GetTimeSinceCleared() const */

longdouble __thiscall TerrorNavArea::GetTimeSinceCleared(TerrorNavArea *this)

{
  longdouble lVar1;
  float fVar2;
  
  fVar2 = 0.0;
  if ((this[0x145] != (TerrorNavArea)0x0) && (this[0x7d] == (TerrorNavArea)0x0)) {
    if (*(float *)(this + 0x14c) <= 0.0) {
      return (longdouble)99999.9;
    }
    lVar1 = (longdouble)IntervalTimer::Now();
    fVar2 = (float)lVar1 - *(float *)(this + 0x14c);
  }
  return (longdouble)fVar2;
}

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)