DispatchParticleEffect
0x00472080 · 260 bytes · __cdecl
_Z22DispatchParticleEffectiRK6VectorRK6QAngle20ParticleAttachment_tP11CBaseEntityi
Decompiled
undefined (6 params)
/* DispatchParticleEffect(int, Vector const&, QAngle const&, ParticleAttachment_t, CBaseEntity*,
int) */
void DispatchParticleEffect
(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 param_4,
int param_5)
{
undefined4 local_6c;
undefined4 local_68;
undefined4 local_64;
undefined4 local_60;
undefined4 local_5c;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_40;
undefined4 local_3c;
int local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined2 local_24;
undefined4 local_20;
undefined4 local_1c;
undefined4 local_18;
undefined1 local_14;
undefined1 local_13;
local_24 = 0;
local_60 = 0;
local_5c = 0;
local_58 = 0;
local_54 = 0;
local_6c = *param_2;
local_50 = 0;
local_4c = 0;
local_68 = param_2[1];
local_3c = 0;
local_64 = param_2[2];
local_38 = 0;
local_48 = *param_3;
local_34 = 0x3f800000;
local_44 = param_3[1];
local_28 = 0;
local_30 = 0;
local_2c = 0;
local_20 = 0;
local_1c = 0;
local_14 = 0;
local_13 = 0;
local_18 = param_1;
local_40 = param_3[2];
if (param_5 != 0) {
if (*(int *)(param_5 + 0x30) == 0) {
local_38 = 0;
}
else {
local_38 = *(int *)(param_5 + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
}
local_3c = 1;
local_1c = param_4;
}
DispatchEffect("ParticleEffect",(CEffectData *)&local_6c);
return;
}
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.