L L4D2node

CSingleUserPlusObserversFilter::CSingleUserPlusObserversFilter

0x008060f0 · 194 bytes · __thiscall

_ZN30CSingleUserPlusObserversFilterC2EP11CBasePlayerb

Decompiled

undefined (3 params)

/* CSingleUserPlusObserversFilter::CSingleUserPlusObserversFilter(CBasePlayer*, bool) */

void __thiscall
CSingleUserPlusObserversFilter::CSingleUserPlusObserversFilter
          (CSingleUserPlusObserversFilter *this,CBasePlayer *param_1,bool param_2)

{
  CBasePlayer *pCVar1;
  CBasePlayer *pCVar2;
  int iVar3;
  int iVar4;
  
  CRecipientFilter::CRecipientFilter((CRecipientFilter *)this);
  *(undefined ***)this = &PTR__CSingleUserPlusObserversFilter_00c2f5a8;
                    /* try { // try from 0080611e to 008061a2 has its CatchHandler @ 008061b8 */
  CRecipientFilter::AddRecipient((CRecipientFilter *)this,param_1);
  if (0 < *(int *)(gpGlobals + 0x14)) {
    iVar4 = 1;
    do {
      while ((((pCVar1 = (CBasePlayer *)UTIL_PlayerByIndex(iVar4), param_1 != pCVar1 &&
               (pCVar1 != (CBasePlayer *)0x0)) &&
              (pCVar2 = (CBasePlayer *)(**(code **)(*(int *)pCVar1 + 0x654))(pCVar1),
              param_1 == pCVar2)) &&
             ((iVar3 = (**(code **)(*(int *)pCVar1 + 0x648))(pCVar1), iVar3 == 4 ||
              ((!param_2 && (iVar3 = (**(code **)(*(int *)pCVar1 + 0x648))(pCVar1), iVar3 == 5))))))
            ) {
        CRecipientFilter::AddRecipient((CRecipientFilter *)this,pCVar1);
        iVar4 = iVar4 + 1;
        if (*(int *)(gpGlobals + 0x14) < iVar4) {
          return;
        }
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 <= *(int *)(gpGlobals + 0x14));
  }
  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)