L L4D2node

CPropVehicleDriveable::NPC_RemovePassenger

0x00b334d0 · 89 bytes · __thiscall

_ZN21CPropVehicleDriveable19NPC_RemovePassengerEP11CAI_BaseNPC

Decompiled

undefined (2 params)

/* CPropVehicleDriveable::NPC_RemovePassenger(CAI_BaseNPC*) */

undefined4 __thiscall
CPropVehicleDriveable::NPC_RemovePassenger(CPropVehicleDriveable *this,CAI_BaseNPC *param_1)

{
  undefined4 uVar1;
  int *piVar2;
  
  uVar1 = (**(code **)(*(int *)this + 0x418))(this,param_1,1);
  if ((char)uVar1 != '\0') {
    piVar2 = (int *)(**(code **)(*(int *)this + 0x18c))(this);
    if (piVar2 != (int *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00b33531. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar1 = (**(code **)(*piVar2 + 0x74))();
      return uVar1;
    }
  }
  return uVar1;
}

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)