TE_FireBullets
0x003e7910 · 353 bytes · __cdecl
_Z14TE_FireBulletsiRK6VectorRK6QAngleiiif
Decompiled
undefined (7 params)
/* TE_FireBullets(int, Vector const&, QAngle const&, int, int, int, float) */
void TE_FireBullets(int param_1,Vector *param_2,QAngle *param_3,int param_4,int param_5,int param_6,
float param_7)
{
undefined **local_3c [11];
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
/* try { // try from 003e7938 to 003e793c has its CatchHandler @ 003e7a8a */
CRecipientFilter::AddRecipientsByPAS((CRecipientFilter *)local_3c,param_2);
/* try { // try from 003e7940 to 003e7a59 has its CatchHandler @ 003e7a71 */
CRecipientFilter::UsePredictionRules((CRecipientFilter *)local_3c);
if (param_1 + -1 != g_TEBullets._12_4_) {
g_TEBullets._12_4_ = param_1 + -1;
}
if (((*(float *)param_2 != (float)g_TEBullets._16_4_) ||
(*(float *)(param_2 + 4) != (float)g_TEBullets._20_4_)) ||
(*(float *)(param_2 + 8) != (float)g_TEBullets._24_4_)) {
g_TEBullets._20_4_ = *(undefined4 *)(param_2 + 4);
g_TEBullets._24_4_ = *(undefined4 *)(param_2 + 8);
g_TEBullets._16_4_ = *(float *)param_2;
}
if (((*(float *)param_3 != (float)g_TEBullets._28_4_) ||
(*(float *)(param_3 + 4) != (float)g_TEBullets._32_4_)) ||
(*(float *)(param_3 + 8) != (float)g_TEBullets._36_4_)) {
g_TEBullets._32_4_ = *(undefined4 *)(param_3 + 4);
g_TEBullets._36_4_ = *(undefined4 *)(param_3 + 8);
g_TEBullets._28_4_ = *(float *)param_3;
}
if (param_6 != g_TEBullets._48_4_) {
g_TEBullets._48_4_ = param_6;
}
if (g_TEBullets._44_4_ != param_5) {
g_TEBullets._44_4_ = param_5;
}
if (g_TEBullets._40_4_ != param_4) {
g_TEBullets._40_4_ = param_4;
}
if (param_7 != (float)g_TEBullets._52_4_) {
g_TEBullets._52_4_ = param_7;
}
CBaseTempEntity::Create((CBaseTempEntity *)g_TEBullets,(IRecipientFilter *)local_3c,0.0);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
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.