L L4D2node

CParticleCollection::StopEmission

0x00bcdb20 · 260 bytes · __thiscall

_ZN19CParticleCollection12StopEmissionEbbb

Decompiled

undefined (4 params)

/* CParticleCollection::StopEmission(bool, bool, bool) */

void __thiscall
CParticleCollection::StopEmission(CParticleCollection *this,bool param_1,bool param_2,bool param_3)

{
  int iVar1;
  int *piVar2;
  CParticleCollection *this_00;
  int iVar3;
  int iVar4;
  float fVar5;
  
  iVar3 = *(int *)(this + 0x48);
  if (iVar3 != 0) {
    this[0x54] = (CParticleCollection)0x0;
    if (param_3) {
      fVar5 = *(float *)(g_pParticleSystemMgr + 0x10c) + 10.0;
      if (*(float *)(g_pParticleSystemMgr + 0x10c) + 10.0 <= *(float *)(this + 0x3c)) {
        fVar5 = *(float *)(this + 0x3c);
      }
      *(float *)(this + 0x3c) = fVar5;
    }
    this[0x55] = (CParticleCollection)0x1;
    iVar4 = 0;
    if (0 < *(int *)(iVar3 + 0x350)) {
      do {
        piVar2 = *(int **)(*(int *)(iVar3 + 0x344) + iVar4 * 4);
        iVar1 = iVar4 * 4;
        iVar4 = iVar4 + 1;
        (**(code **)(*piVar2 + 0x3c))
                  (piVar2,this,*(int *)(this + 0x6c) + *(int *)(*(int *)(iVar3 + 0x3d0) + iVar1),
                   param_1);
        iVar3 = *(int *)(this + 0x48);
      } while (iVar4 < *(int *)(iVar3 + 0x350));
    }
    if (param_2) {
      *(undefined4 *)(this + 0x30) = 0;
      *(undefined4 *)(this + 0x20) = 0;
    }
    for (this_00 = *(CParticleCollection **)(this + 0x90); this_00 != (CParticleCollection *)0x0;
        this_00 = *(CParticleCollection **)(this_00 + 0x70)) {
      StopEmission(this_00,param_1,param_2,false);
    }
  }
  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)