L L4D2node

CEffectsServer::MuzzleFlash

0x00676ce0 · 195 bytes · __thiscall

_ZN14CEffectsServer11MuzzleFlashERK6VectorRK6QAnglefi

Decompiled

undefined (5 params)

/* CEffectsServer::MuzzleFlash(Vector const&, QAngle const&, float, int) */

void __thiscall
CEffectsServer::MuzzleFlash
          (CEffectsServer *this,Vector *param_1,QAngle *param_2,float param_3,int param_4)

{
  char cVar1;
  CBasePlayer *pCVar2;
  int iVar3;
  undefined **local_3c [11];
  
  CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
  local_3c[0] = &PTR__CPVSFilter_00c09bc8;
                    /* try { // try from 00676d08 to 00676d0c has its CatchHandler @ 00676dc6 */
  CRecipientFilter::AddRecipientsByPVS((CRecipientFilter *)local_3c,param_1);
  if ((*(int *)(this + 0x10) < 1) && (*(int *)(this + 0xc) != 0)) {
    cVar1 = CRecipientFilter::IgnorePredictionCull((CRecipientFilter *)local_3c);
    if (cVar1 == '\0') {
      pCVar2 = (CBasePlayer *)0x0;
      if (*(int *)(this + 0x10) < 1) {
        pCVar2 = *(CBasePlayer **)(this + 0xc);
      }
      CRecipientFilter::RemoveRecipient((CRecipientFilter *)local_3c,pCVar2);
    }
    iVar3 = CRecipientFilter::GetRecipientCount((CRecipientFilter *)local_3c);
    if (iVar3 == 0) goto LAB_00676d4d;
  }
                    /* try { // try from 00676d47 to 00676d97 has its CatchHandler @ 00676dad */
  (**(code **)(*(int *)te + 0x94))
            (te,(CRecipientFilter *)local_3c,0,param_1,param_2,param_3,param_4);
LAB_00676d4d:
  local_3c[0] = &PTR__CPVSFilter_00c09bc8;
  CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
  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)