Raised This Month: $ Target: $400
 0% 

Smoke plugin problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode