L L4D2node

UpdateAllClientData

0x007c5500 · 492 bytes · unknown

_Z19UpdateAllClientDatav

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* UpdateAllClientData() */

void UpdateAllClientData(void)

{
  undefined4 uVar1;
  undefined4 uVar2;
  char cVar3;
  CBasePlayer *pCVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  undefined4 local_24;
  undefined4 local_20;
  
  local_24 = 0;
  local_20 = 0;
  if (___atan2f_finite == 0) {
    iVar7 = 0;
  }
  else {
    (**(code **)(___atan2f_finite + 0x50))
              (___atan2f_finite,&local_24,0,0,0,0,"/data/src/game/server/playerlocaldata.cpp",0x132,
               &UpdateAllClientData()::tm_fmt,"(%s)%s","Unaccounted","UpdateAllClientData");
    iVar7 = ___atan2f_finite;
  }
  uVar2 = local_20;
  uVar1 = local_24;
  iVar6 = _DAT_0105db00;
  if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
                    /* try { // try from 007c563e to 007c568c has its CatchHandler @ 007c577e */
    iVar5 = ThreadGetCurrentId();
    if (iVar6 == iVar5) {
      if ((char *)*_DAT_0105d15c != "UpdateAllClientData") {
        _DAT_0105d15c =
             (int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xcbbe93,(char *)0x1,0xbfafa1);
      }
      CVProfNode::EnterScope();
      DAT_0105d158 = '\0';
    }
  }
  iVar6 = 1;
  if (0 < *(int *)(gpGlobals + 0x14)) {
    do {
                    /* try { // try from 007c55c3 to 007c55d3 has its CatchHandler @ 007c56f7 */
      pCVar4 = (CBasePlayer *)UTIL_PlayerByIndex(iVar6);
      if (pCVar4 != (CBasePlayer *)0x0) {
        ClientData_Update(pCVar4);
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 <= *(int *)(gpGlobals + 0x14));
  }
  iVar6 = _DAT_0105db00;
  if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
    iVar5 = ThreadGetCurrentId();
    if (iVar6 == iVar5) {
      cVar3 = CVProfNode::ExitScope();
      if (cVar3 != '\0') {
        _DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
      }
      DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
    }
  }
  if (iVar7 != 0) {
    (**(code **)(iVar7 + 0x54))(iVar7,uVar1,uVar2,0,0,0);
  }
  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)