L L4D2node

PlayerBody::GetHullMins

0x00769f10 · 110 bytes · __thiscall

_ZNK10PlayerBody11GetHullMinsEv

Decompiled

undefined (1 param)

/* PlayerBody::GetHullMins() const */

PlayerBody * __thiscall PlayerBody::GetHullMins(PlayerBody *this)

{
  int iVar1;
  
  if (*(int *)(this + 0x18) != 1) {
    iVar1 = (**(code **)(*g_pGameRules + 0x7c))();
    *(undefined4 *)(this + 0x38) = *(undefined4 *)(iVar1 + 0xc);
    *(undefined4 *)(this + 0x3c) = *(undefined4 *)(iVar1 + 0x10);
    *(undefined4 *)(this + 0x40) = *(undefined4 *)(iVar1 + 0x14);
    return this + 0x38;
  }
  iVar1 = (**(code **)(*g_pGameRules + 0x7c))(g_pGameRules);
  *(undefined4 *)(this + 0x38) = *(undefined4 *)(iVar1 + 0x24);
  *(undefined4 *)(this + 0x3c) = *(undefined4 *)(iVar1 + 0x28);
  *(undefined4 *)(this + 0x40) = *(undefined4 *)(iVar1 + 0x2c);
  return this + 0x38;
}

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)