L L4D2node

CCSGameMovement::LadderDistance

0x00432600 · 57 bytes · __thiscall

_ZNK15CCSGameMovement14LadderDistanceEv

Decompiled

undefined (1 param)

/* CCSGameMovement::LadderDistance() const */

longdouble __thiscall CCSGameMovement::LadderDistance(CCSGameMovement *this)

{
  if (*(char *)(*(int *)(this + 4) + 0x186) != '\t') {
    return (longdouble)2.0;
  }
  return (longdouble)10.0;
}

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)