L L4D2node

CMatchFramework::OnEvent

0x000585c0 · 210 bytes · __thiscall

_ZN15CMatchFramework7OnEventEP9KeyValues

Decompiled

undefined (2 params)

/* CMatchFramework::OnEvent(KeyValues*) */

void __thiscall CMatchFramework::OnEvent(CMatchFramework *this,KeyValues *param_1)

{
  char *pcVar1;
  int iVar2;
  
  pcVar1 = (char *)KeyValues::GetName(param_1);
  iVar2 = _V_stricmp("mmF->CloseSession",pcVar1);
  if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0005869f. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(*(int *)this + 0x3c))();
    return;
  }
  iVar2 = _V_stricmp("OnInvite",pcVar1);
  if (iVar2 != 0) {
    if (g_pPlayerManager != 0) {
      (*(code *)**(undefined4 **)(g_pPlayerManager + 4))(g_pPlayerManager + 4,param_1);
    }
    if (g_pServerManager != (undefined *)0x0) {
      (**(code **)(*(int *)g_pServerManager + 0x18))(g_pServerManager,param_1);
    }
    if (g_pDatacenter != (undefined *)0x0) {
      (**(code **)(*(int *)g_pDatacenter + 0x18))(g_pDatacenter,param_1);
    }
    if (g_pIMatchTitleEventsSink != (undefined4 *)0x0) {
      (**(code **)*g_pIMatchTitleEventsSink)(g_pIMatchTitleEventsSink,param_1);
    }
    if (*(int *)(this + 8) != 0) {
                    /* WARNING: Could not recover jumptable at 0x00058677. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)**(undefined4 **)(*(int *)(this + 8) + 4))();
      return;
    }
  }
  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)