Raised This Month: $32 Target: $400
 8% 

Smoke remover


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-15-2018 , 02:08   Smoke remover
Reply With Quote #1

I've searched a little for find something that remove the SG's sprite after it exploded, is possible? If so, tell me how to do this.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 01-15-2018 , 03:07   Re: Smoke remover
Reply With Quote #2

Yes its possible. I found connors code but it crashed my server.
But this should work.
Attached Files
File Type: sma Get Plugin or Get Source (smoke.sma - 766 views - 698 Bytes)
__________________
Rohanlogs is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-15-2018 , 06:02   Re: Smoke remover
Reply With Quote #3

you need to check if entity exists, in this:

Code:
public fwRemoveEntity( params[] )
Since smoke can not appear in some situations.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-15-2018 , 08:10   Re: Smoke remover
Reply With Quote #4

Nah, I didn't meant that, even if I was, I could do this. I meant like a /remove for remove the smoke sprite. I don't know, maybe I can use the Colored Smoke's code to remove the old one, create a new, set it a classname/model name and then remove with a command, sounds great.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-15-2018 at 08:12.
EFFx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-15-2018 , 08:36   Re: Smoke remover
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
Nah, I didn't meant that, even if I was, I could do this. I meant like a /remove for remove the smoke sprite. I don't know, maybe I can use the Colored Smoke's code to remove the old one, create a new, set it a classname/model name and then remove with a command, sounds great.
Hack comands xD, anyway check some xPaw code for colored smoke nades.
Also you will need still to remove entity. You can loop on then
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 01-15-2018 , 08:43   Re: Smoke remover
Reply With Quote #6

You mean the actual smoke, not the grenade that flies after it explodes?
__________________
Rohanlogs is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-15-2018 , 12:39   Re: Smoke remover
Reply With Quote #7

You want to remove the smoke from the smokegrenade?

PHP Code:
#include <amxmodx>
#include <fakemeta>

new m_usEventSmokeGrenade

public plugin_init()
{
    
m_usEventSmokeGrenade engfunc(EngFunc_PrecacheEvent1"events/createsmoke.sc")
    
register_forward(FM_PlaybackEvent"pfnPlaybackEvent"false)
}

public 
pfnPlaybackEvent(Flagsidm_usFireEventFloat:DelayFloat:Origin[3], Float:Angles[3], Float:DirectionXFloat:DirectionYPunchAngleXPunchAngleYbool:Dummy1bool:Dummy2)
{
    if(
m_usEventSmokeGrenade == m_usFireEvent)
    {
        return 
FMRES_SUPERCEDE
    
}
    
    return 
FMRES_IGNORED

Note that this will only block the smoke from appearing, but all the internal code that's responsible with generating the smoke is still going to run. A more efficient method is to use orpheu. Are you okay with orpheu or I'm wasting my time if I post a version using it?
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-15-2018 , 17:55   Re: Smoke remover
Reply With Quote #8

I'm actually using your plugin Objectives Reset which uses orpheu, so, there's nothing wrong.

Quote:
Originally Posted by Rohanlogs View Post
You mean the actual smoke, not the grenade that flies after it explodes?
Again, I do not wanna remove the explosion, I wanna let it explode, and with a command, I want remove the sprite, or make it end faster like csgo.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-15-2018 at 17:56.
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-15-2018 , 18:31   Re: Smoke remover
Reply With Quote #9

Did you test the above plugin? Is it what you want? If not, give more details please.
__________________
HamletEagle is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 01-15-2018 , 20:39   Re: Smoke remover
Reply With Quote #10

Quote:
Originally Posted by EFFx View Post
Again, I do not wanna remove the explosion, I wanna let it explode, and with a command, I want remove the sprite, or make it end faster like csgo.
I was asking if you wanted to remove the actual smoke or just the grenade.

Quote:
Originally Posted by HamletEagle View Post
Did you test the above plugin? Is it what you want? If not, give more details please.
He wants a command that removes the smoke after it has exploded.
__________________
Rohanlogs is offline
Reply


Thread Tools
Display Modes

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:31.


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