L L4D2node

ILocomotion::GetStuckDuration

0x0053e720 · 94 bytes · __thiscall

_ZNK11ILocomotion16GetStuckDurationEv

Decompiled

undefined (1 param)

/* ILocomotion::GetStuckDuration() const */

longdouble __thiscall ILocomotion::GetStuckDuration(ILocomotion *this)

{
  char cVar1;
  longdouble lVar2;
  float fVar3;
  
  cVar1 = (**(code **)(*(int *)this + 0x168))(this);
  fVar3 = 0.0;
  if (cVar1 != '\0') {
    if (*(float *)(this + 0x3c) <= 0.0) {
      return (longdouble)99999.9;
    }
    lVar2 = (longdouble)IntervalTimer::Now();
    fVar3 = (float)lVar2 - *(float *)(this + 0x3c);
  }
  return (longdouble)fVar3;
}

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)