View Single Post
Author Message
abecee
Junior Member
Join Date: Feb 2022
Old 05-03-2022 , 04:28   Smoke plugin problem
Reply With Quote #1

Hi. I currently use a extra smoke puff plugin, and recently discovered a BUG. When the player is at the edge of it (smoke), I get the name of the player. Is there any possibility to fix this ? From what I've heard from someone, it might be possible to fix this with a plugin that detects when it's smoke and when it's not .
I'll attach a picture of this bug.
Here is the picture - https://imgur.com/a/WCNM4hn

#include <amxmodx>
#include <fakemeta>
#include <reapi>

const SmokeCount = 3;

public plugin_init()
{
register_plugin("SmokeEX", "0.1", "d3m37r4");
RegisterHookChain(RG_CGrenade_ExplodeSmokeGre nade, "CGrenade_ExplodeSmokeGrenade_Post", true);
}

public CGrenade_ExplodeSmokeGrenade_Post(const ent)
{
new Floatrigin[3];
get_entvar(ent, var_origin, origin);

new m_usEvent = get_member(ent, m_Grenade_usEvent);

for (new i; i < SmokeCount; i++)
{
engfunc(EngFunc_PlaybackEvent, FEV_GLOBAL, 0, m_usEvent, 0.0, origin, Float:{0.0, 0.0, 0.0}, 0.0, 0.0, 0, 1, 1, 0);
}

return HC_CONTINUE;
}

Last edited by abecee; 05-03-2022 at 05:34.
abecee is offline