CParticleCollection::RunRestartedEmitters
0x00bcc590 · 297 bytes · __thiscall
_ZN19CParticleCollection20RunRestartedEmittersEv
Decompiled
undefined (1 param)
/* CParticleCollection::RunRestartedEmitters() */
void __thiscall CParticleCollection::RunRestartedEmitters(CParticleCollection *this)
{
int iVar1;
char cVar2;
uint uVar3;
int iVar4;
int *piVar5;
int iVar6;
CParticleCollection *pCVar7;
CParticleOperatorInstance *in_stack_ffffffb8;
CParticleCollection *pCVar8;
CParticleCollection *in_stack_ffffffbc;
CParticleCollection *local_20;
pCVar7 = this;
if (((byte)this[0x328] & 1) == 0) {
in_stack_ffffffb8 = *(CParticleOperatorInstance **)(this + 0x38);
UpdatePrevControlPoints(this,(float)in_stack_ffffffb8);
}
else {
SimulateFirstFrame(this);
*(uint *)(this + 0x328) = *(uint *)(this + 0x328) & 0xfffffffe;
}
iVar4 = *(int *)(this + 0x48);
iVar1 = *(int *)(iVar4 + 0x350);
iVar6 = 0;
if (iVar1 < 1) {
LAB_00bcc688:
for (pCVar7 = *(CParticleCollection **)(this + 0x90); pCVar7 != (CParticleCollection *)0x0;
pCVar7 = *(CParticleCollection **)(pCVar7 + 0x70)) {
RunRestartedEmitters(pCVar7);
}
return;
}
do {
pCVar8 = *(CParticleCollection **)(this + 0x30);
piVar5 = (int *)(*(int *)(iVar4 + 0x344) + iVar6 * 4);
if (*(char *)(*piVar5 + 0x3c) == '\0') {
cVar2 = CheckIfOperatorShouldRun(pCVar7,in_stack_ffffffb8,(float *)in_stack_ffffffbc);
if (cVar2 != '\0') {
piVar5 = (int *)(*(int *)(*(int *)(this + 0x48) + 0x344) + iVar6 * 4);
goto LAB_00bcc5e8;
}
}
else {
local_20 = (CParticleCollection *)0x3f800000;
LAB_00bcc5e8:
pCVar7 = (CParticleCollection *)*piVar5;
in_stack_ffffffb8 = (CParticleOperatorInstance *)this;
in_stack_ffffffbc = local_20;
uVar3 = (**(code **)(*(int *)pCVar7 + 0x38))();
if (*(CParticleCollection **)(this + 0x30) != pCVar8) {
in_stack_ffffffbc = *(CParticleCollection **)(this + 0x30) + -(int)pCVar8;
pCVar7 = this;
InitializeNewParticles(this,(int)pCVar8,(int)in_stack_ffffffbc,uVar3);
in_stack_ffffffb8 = (CParticleOperatorInstance *)pCVar8;
}
}
iVar6 = iVar6 + 1;
if (iVar6 == iVar1) goto LAB_00bcc688;
iVar4 = *(int *)(this + 0x48);
} while( true );
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.