L L4D2node

CBaseClient::ProcessSignonStateMsg

0x000fa1a0 · 201 bytes · __cdecl

_ZN11CBaseClient21ProcessSignonStateMsgEii

Decompiled

undefined (2 params)

/* CBaseClient::ProcessSignonStateMsg(int, int) */

undefined4 CBaseClient::ProcessSignonStateMsg(int param_1,int param_2)

{
  CBaseClient *this;
  int *piVar1;
  int *piVar2;
  undefined4 uVar3;
  int iVar4;
  
  uVar3 = (**(code **)(*(int *)param_1 + 0x94))(param_1);
  piVar2 = g_pMDLCache;
  if ((char)uVar3 != '\0') {
    return uVar3;
  }
  (**(code **)(*g_pMDLCache + 0xb8))(g_pMDLCache);
  switch(*(undefined4 *)(param_1 + 0xec)) {
  case 2:
    *(undefined1 *)(param_1 + 0xb5) = 1;
    uVar3 = 1;
    goto LAB_000fa200;
  case 3:
    uVar3 = (**(code **)(*(int *)param_1 + 0xec))(param_1);
    goto LAB_000fa200;
  case 4:
                    /* try { // try from 000fa1f5 to 000fa1fa has its CatchHandler @ 000fa27e */
    (**(code **)(*(int *)param_1 + 0xf0))(param_1);
    break;
  case 5:
    iVar4 = 0;
    do {
      piVar1 = *(int **)(param_1 + 0x18 + iVar4 * 4);
      if (piVar1 != (int *)0x0) {
        (**(code **)(*piVar1 + 0xf4))(piVar1);
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 != 4);
    break;
  case 6:
    iVar4 = 0;
    do {
      this = *(CBaseClient **)(param_1 + 0x18 + iVar4 * 4);
      if (this != (CBaseClient *)0x0) {
                    /* try { // try from 000fa22d to 000fa26a has its CatchHandler @ 000fa27e */
        SendFullConnectEvent(this);
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 != 4);
  }
  uVar3 = 1;
LAB_000fa200:
  (**(code **)(*piVar2 + 0xbc))(piVar2);
  return uVar3;
}

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)