L L4D2node

DmxElementUnpackInit<CParticleSystemDefinition>

0x00bca150 · 400 bytes · __cdecl

_Z20DmxElementUnpackInitI25CParticleSystemDefinitionEP27DmxElementUnpackStructure_tPT_

Decompiled

DmxElementUnpackStructure_t * (1 param)

/* DmxElementUnpackStructure_t*
   DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*) */

DmxElementUnpackStructure_t *
DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition *param_1)

{
  int iVar1;
  
  if (DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack != '\0') {
    return (DmxElementUnpackStructure_t *)
           DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack;
  }
  iVar1 = __cxa_guard_acquire(&DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)
                               ::unpack);
  if (iVar1 != 0) {
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._8_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._48_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._128_4_ = 10
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._168_4_ = 10
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._208_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._248_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._288_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._408_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._448_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._488_4_ = 8;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._528_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._568_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._608_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._648_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._688_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._728_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._768_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._808_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._848_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._888_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._928_4_ = 2;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._968_4_ = 3;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1008_4_ = 3
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1048_4_ = 4
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1088_4_ = 4
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1128_4_ = 4
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1168_4_ = 4
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1208_4_ = 4
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1248_4_ = 3
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1288_4_ = 2
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1328_4_ = 3
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1368_4_ = 2
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1408_4_ = 2
    ;
    DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack._1448_4_ = 3
    ;
    __cxa_guard_release(&DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)
                         ::unpack);
  }
  return (DmxElementUnpackStructure_t *)
         DmxElementUnpackInit<CParticleSystemDefinition>(CParticleSystemDefinition*)::unpack;
}

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)