L L4D2node

CBaseClientState::HandleReservationResponse

0x00101420 · 195 bytes · __thiscall

_ZN16CBaseClientState25HandleReservationResponseER8netadr_sb

Decompiled

undefined (3 params)

/* CBaseClientState::HandleReservationResponse(netadr_s&, bool) */

void __thiscall
CBaseClientState::HandleReservationResponse(CBaseClientState *this,netadr_s *param_1,bool param_2)

{
  undefined4 *puVar1;
  int iVar2;
  char cVar3;
  
  cVar3 = netadr_s::IsLoopback(param_1);
  if ((cVar3 == '\0') &&
     (cVar3 = CAddressList::IsAddressInList((CAddressList *)(this + 0x174),param_1), cVar3 == '\0'))
  {
    return;
  }
  puVar1 = *(undefined4 **)(this + 0x158);
  *(undefined4 *)(this + 0x158) = 0;
  if (*(int *)(this + 0x164) != 0) {
    KeyValues::deleteThis();
    *(undefined4 *)(this + 0x164) = 0;
  }
  if (puVar1 == (undefined4 *)0x0) {
    return;
  }
  if (*(int *)(this + 0x154) != 0) {
    *(uint *)(*(int *)(this + 0x154) + 4) = 4 - (uint)!param_2;
    iVar2 = *(int *)(this + 0x154);
    *(undefined4 *)(iVar2 + 8) = *(undefined4 *)param_1;
    *(undefined4 *)(iVar2 + 0xc) = *(undefined4 *)(param_1 + 4);
    *(undefined2 *)(iVar2 + 0x10) = *(undefined2 *)(param_1 + 8);
  }
                    /* WARNING: Could not recover jumptable at 0x001014bf. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)*puVar1)();
  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)