L L4D2node

CPlayerLocalData::CPlayerLocalData

0x007c4f00 · 304 bytes · __thiscall

_ZN16CPlayerLocalDataC1Ev

Decompiled

undefined (1 param)

/* CPlayerLocalData::CPlayerLocalData() */

void __thiscall CPlayerLocalData::CPlayerLocalData(CPlayerLocalData *this)

{
  int iVar1;
  
  *(undefined ***)this = &PTR_NetworkStateChanged_00cbc448;
  *(undefined ***)(this + 0x94) = &PTR_NetworkStateChanged_00cbc408;
  fogparams_t::fogparams_t((fogparams_t *)(this + 0xb4));
  *(undefined ***)(this + 0xb4) = &PTR_NetworkStateChanged_00cbc3f8;
  *(undefined ***)(this + 0x94) = &PTR_NetworkStateChanged_00cbc428;
  fogparams_t::fogparams_t((fogparams_t *)(this + 0x108));
  *(undefined ***)(this + 0x15c) = &PTR_NetworkStateChanged_00cbc438;
  if (*(int *)(this + 0x1c0) == 0) {
    iVar1 = *(int *)(this + 0x1c4);
  }
  else {
    NetworkVar_m_audio::NetworkStateChanged(this + 0x15c);
    iVar1 = *(int *)(this + 0x1c4);
    *(undefined4 *)(this + 0x1c0) = 0;
  }
  if (iVar1 == 0) {
    iVar1 = *(int *)(this + 0x1c8);
  }
  else {
    (**(code **)(*(int *)(this + 0x15c) + 4))(this + 0x15c,this + 0x1c4);
    iVar1 = *(int *)(this + 0x1c8);
    *(undefined4 *)(this + 0x1c4) = 0;
  }
  if (iVar1 != 0) {
    (**(code **)(*(int *)(this + 0x15c) + 4))(this + 0x15c,this + 0x1c8);
    *(undefined4 *)(this + 0x1c8) = 0;
  }
  *(undefined4 *)(this + 0x6c) = 0;
  if (this[0x88] != (CPlayerLocalData)0x1) {
    (**(code **)(*(int *)this + 4))(this,this + 0x88);
    this[0x88] = (CPlayerLocalData)0x1;
  }
  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)