DispatchEffect
0x00afeb70 · 406 bytes · __cdecl
_Z14DispatchEffectPKcRK11CEffectData
Decompiled
undefined (2 params)
/* DispatchEffect(char const*, CEffectData const&) */
void DispatchEffect(char *param_1,CEffectData *param_2)
{
char cVar1;
undefined **local_2c [8];
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_2c);
local_2c[0] = &PTR__CPASFilter_00bfaf28;
/* try { // try from 00afeb94 to 00afeb98 has its CatchHandler @ 00afed06 */
CRecipientFilter::AddRecipientsByPAS((CRecipientFilter *)local_2c,(Vector *)param_2);
/* try { // try from 00afeba7 to 00afecef has its CatchHandler @ 00afed18 */
cVar1 = (**(code **)(*(int *)te + 8))(te,(CRecipientFilter *)local_2c);
if (cVar1 == '\0') {
g_TEEffectDispatch._12_4_ = *(undefined4 *)param_2;
g_TEEffectDispatch._16_4_ = *(undefined4 *)(param_2 + 4);
g_TEEffectDispatch._20_4_ = *(undefined4 *)(param_2 + 8);
g_TEEffectDispatch._24_4_ = *(undefined4 *)(param_2 + 0xc);
g_TEEffectDispatch._28_4_ = *(undefined4 *)(param_2 + 0x10);
g_TEEffectDispatch._32_4_ = *(undefined4 *)(param_2 + 0x14);
g_TEEffectDispatch._36_4_ = *(undefined4 *)(param_2 + 0x18);
g_TEEffectDispatch._40_4_ = *(undefined4 *)(param_2 + 0x1c);
g_TEEffectDispatch._44_4_ = *(undefined4 *)(param_2 + 0x20);
g_TEEffectDispatch._48_4_ = *(undefined4 *)(param_2 + 0x24);
g_TEEffectDispatch._52_4_ = *(undefined4 *)(param_2 + 0x28);
g_TEEffectDispatch._56_4_ = *(undefined4 *)(param_2 + 0x2c);
g_TEEffectDispatch._60_4_ = *(undefined4 *)(param_2 + 0x30);
g_TEEffectDispatch._64_4_ = *(undefined4 *)(param_2 + 0x34);
g_TEEffectDispatch._68_4_ = *(undefined4 *)(param_2 + 0x38);
g_TEEffectDispatch._72_4_ = *(undefined4 *)(param_2 + 0x3c);
g_TEEffectDispatch._76_4_ = *(undefined4 *)(param_2 + 0x40);
g_TEEffectDispatch._80_4_ = *(undefined4 *)(param_2 + 0x44);
g_TEEffectDispatch._84_2_ = *(undefined2 *)(param_2 + 0x48);
g_TEEffectDispatch._88_4_ = *(undefined4 *)(param_2 + 0x4c);
g_TEEffectDispatch._92_4_ = *(undefined4 *)(param_2 + 0x50);
g_TEEffectDispatch._96_4_ = *(undefined4 *)(param_2 + 0x54);
g_TEEffectDispatch[100] = param_2[0x58];
g_TEEffectDispatch[0x65] = param_2[0x59];
g_TEEffectDispatch._104_4_ = *(undefined4 *)(param_2 + 0x5c);
g_TEEffectDispatch._104_4_ = GetEffectIndex(param_1);
CBaseTempEntity::Create((CBaseTempEntity *)g_TEEffectDispatch,(IRecipientFilter *)local_2c,0.0);
}
local_2c[0] = &PTR__CPASFilter_00bfaf28;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_2c);
return;
}
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.