TE_Explosion
0x00affd30 · 459 bytes · __cdecl
_Z12TE_ExplosionR16IRecipientFilterfPK6VectorifiiiiS3_h
Decompiled
undefined (11 params)
/* TE_Explosion(IRecipientFilter&, float, Vector const*, int, float, int, int, int, int, Vector
const*, unsigned char) */
void TE_Explosion(IRecipientFilter *param_1,float param_2,Vector *param_3,int param_4,float param_5,
int param_6,int param_7,int param_8,int param_9,Vector *param_10,uchar param_11)
{
if (((*(float *)param_3 != (float)g_TEExplosion._12_4_) ||
(*(float *)(param_3 + 4) != (float)g_TEExplosion._16_4_)) ||
(*(float *)(param_3 + 8) != (float)g_TEExplosion._20_4_)) {
g_TEExplosion._16_4_ = *(undefined4 *)(param_3 + 4);
g_TEExplosion._20_4_ = *(undefined4 *)(param_3 + 8);
g_TEExplosion._12_4_ = *(float *)param_3;
}
if (g_TEExplosion._24_4_ != param_4) {
g_TEExplosion._24_4_ = param_4;
}
if (param_5 != (float)g_TEExplosion._28_4_) {
g_TEExplosion._28_4_ = param_5;
}
if (g_TEExplosion._32_4_ != param_6) {
g_TEExplosion._32_4_ = param_6;
}
if (g_TEExplosion._36_4_ != param_7) {
g_TEExplosion._36_4_ = param_7;
}
if (g_TEExplosion._56_4_ != param_8) {
g_TEExplosion._56_4_ = param_8;
}
if (g_TEExplosion._60_4_ != param_9) {
g_TEExplosion._60_4_ = param_9;
}
if (param_10 == (Vector *)0x0) {
if ((((float)g_TEExplosion._40_4_ != 0.0) || ((float)g_TEExplosion._44_4_ != 0.0)) ||
((float)g_TEExplosion._48_4_ != 1.0)) {
g_TEExplosion._40_4_ = 0;
g_TEExplosion._44_4_ = 0;
g_TEExplosion._48_4_ = 0x3f800000;
}
}
else if (((*(float *)param_10 != (float)g_TEExplosion._40_4_) ||
(*(float *)(param_10 + 4) != (float)g_TEExplosion._44_4_)) ||
(*(float *)(param_10 + 8) != (float)g_TEExplosion._48_4_)) {
g_TEExplosion._44_4_ = *(undefined4 *)(param_10 + 4);
g_TEExplosion._48_4_ = *(undefined4 *)(param_10 + 8);
g_TEExplosion._40_4_ = *(float *)param_10;
}
if (g_TEExplosion[0x34] != param_11) {
g_TEExplosion[0x34] = param_11;
}
CBaseTempEntity::Create((CBaseTempEntity *)g_TEExplosion,param_1,param_2);
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.