L L4D2node

CParticleOperatorInstance::InitNewParticles

0x00bca7d0 · 256 bytes · __thiscall

_ZNK25CParticleOperatorInstance16InitNewParticlesEP19CParticleCollectioniiiPv

Decompiled

undefined (6 params)

/* CParticleOperatorInstance::InitNewParticles(CParticleCollection*, int, int, int, void*) const */

void __thiscall
CParticleOperatorInstance::InitNewParticles
          (CParticleOperatorInstance *this,CParticleCollection *param_1,int param_2,int param_3,
          int param_4,void *param_5)

{
  int iVar1;
  
  if (param_3 != 0) {
    if (param_3 < 0x10) {
                    /* WARNING: Could not recover jumptable at 0x00bca86c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (**(code **)(*(int *)this + 100))();
      return;
    }
    if ((param_2 & 3U) != 0) {
      iVar1 = 4 - (param_2 & 3U);
      if (param_3 <= iVar1) {
        iVar1 = param_3;
      }
      (**(code **)(*(int *)this + 100))(this,param_1,param_2,iVar1,param_4,param_5);
      param_3 = param_3 - iVar1;
      param_2 = param_2 + iVar1;
    }
    iVar1 = param_2 + 3;
    if (-1 < param_2) {
      iVar1 = param_2;
    }
    (**(code **)(*(int *)this + 0x68))(this,param_1,iVar1 >> 2,param_3 >> 2,param_4,param_5);
    if (param_3 + (param_3 >> 2) * -4 != 0) {
                    /* WARNING: Could not recover jumptable at 0x00bca895. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (**(code **)(*(int *)this + 100))();
      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)