CParticleCollection::GetCurrentParticleDefCount
0x00bd1ee0 · 64 bytes · __thiscall
_ZN19CParticleCollection26GetCurrentParticleDefCountEP25CParticleSystemDefinition
Decompiled
undefined (2 params)
/* CParticleCollection::GetCurrentParticleDefCount(CParticleSystemDefinition*) */
int __thiscall
CParticleCollection::GetCurrentParticleDefCount
(CParticleCollection *this,CParticleSystemDefinition *param_1)
{
int iVar1;
int iVar2;
iVar2 = *(int *)(param_1 + 0x274);
iVar1 = *(int *)(param_1 + 0x270);
while (0 < iVar1) {
param_1 = (CParticleSystemDefinition *)
CParticleSystemDefinition::GetFallbackReplacementDefinition(param_1);
iVar2 = iVar2 + *(int *)(param_1 + 0x274);
iVar1 = *(int *)(param_1 + 0x270);
}
return iVar2;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.