L L4D2node

ZombieBotVision::GetTimeSinceVisible

0x0053e6b0 · 94 bytes · __thiscall

_ZNK15ZombieBotVision19GetTimeSinceVisibleEi

Decompiled

undefined (2 params)

/* ZombieBotVision::GetTimeSinceVisible(int) const */

longdouble __thiscall ZombieBotVision::GetTimeSinceVisible(ZombieBotVision *this,int param_1)

{
  longdouble lVar1;
  float fVar2;
  
  fVar2 = 0.0;
  if (param_1 != 3) {
    if (*(float *)(this + 0x160) <= 0.0) {
      return (longdouble)3.4028235e+38;
    }
    lVar1 = (longdouble)IntervalTimer::Now();
    fVar2 = (float)lVar1 - *(float *)(this + 0x160);
  }
  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)