L L4D2node

PathFollower::AdjustSpeed

0x00762be0 · 309 bytes · __thiscall

_ZN12PathFollower11AdjustSpeedEP8INextBot

Decompiled

undefined (2 params)

/* PathFollower::AdjustSpeed(INextBot*) */

void __thiscall PathFollower::AdjustSpeed(PathFollower *this,INextBot *param_1)

{
  code *UNRECOVERED_JUMPTABLE_00;
  char cVar1;
  int *piVar2;
  undefined4 uVar3;
  
  piVar2 = (int *)(**(code **)(*(int *)param_1 + 0xc0))(param_1);
  if ((*(int *)(this + 0x4758) == 0) || (*(int *)(*(int *)(this + 0x4758) + 0x18) != 3)) {
    cVar1 = (**(code **)(*piVar2 + 0xf8))(piVar2);
    if (cVar1 != '\0') {
      UNRECOVERED_JUMPTABLE_00 = *(code **)(*(int *)this + 0x2c);
      uVar3 = (**(code **)(*(int *)param_1 + 0xd4))(param_1);
      (*UNRECOVERED_JUMPTABLE_00)(this,uVar3,0,0);
      (**(code **)(*(int *)this + 0x40))(this);
      UNRECOVERED_JUMPTABLE_00 = *(code **)(*piVar2 + 0xe8);
      (**(code **)(*piVar2 + 0x13c))(piVar2);
      (**(code **)(*piVar2 + 0x140))(piVar2);
      (**(code **)(*piVar2 + 0x13c))(piVar2);
                    /* WARNING: Could not recover jumptable at 0x00762d1c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*UNRECOVERED_JUMPTABLE_00)();
      return;
    }
  }
  UNRECOVERED_JUMPTABLE_00 = *(code **)(*piVar2 + 0xe8);
  (**(code **)(*piVar2 + 0x13c))(piVar2);
                    /* WARNING: Could not recover jumptable at 0x00762c45. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*UNRECOVERED_JUMPTABLE_00)();
  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)