Raised This Month: $12 Target: $400
 3% 

[HELP] Change Duration of Smoke


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 11-02-2020 , 00:13   [HELP] Change Duration of Smoke
Reply With Quote #1

Greetings! How's everyone doing these days?

Anyway getting right into it. Is it possible to shorten the smoke's life from a smoke grenade? I've searched high and low for this,and tried different keywords. There was one thread that asked exactly the same but it was unanswered...

EDIT:
PHP Code:
set_pev(iEntitypev_nextthinkget_gametime() + 3.0); 
I saw this code that might be able to remove the smoke faster. But I don't know how to get smoke entity itself, or if the smoke is even an entity...
__________________

Last edited by hellmonja; 11-02-2020 at 00:28.
hellmonja is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-02-2020 , 00:37   Re: [HELP] Change Duration of Smoke
Reply With Quote #2

The smoke is created using a message(TE_SMOKE or something, can't check rn). You have to block the original message and send your own. This way you can customize the duration.
__________________

Last edited by HamletEagle; 11-02-2020 at 00:37.
HamletEagle is offline
hellmonja
Senior Member
Join Date: Oct 2015
Old 11-02-2020 , 09:32   Re: [HELP] Change Duration of Smoke
Reply With Quote #3

Will try that. It just occurred to me to look into the Colored Smokes plugin. There it uses TE_FIREFIELD. I'll try that first then TE_SMOKE if it doesn't work. I also found out if I remove the grenade world model the explosion doesn't happen. That's one way to block it I guess. Thank you for replying...
__________________
hellmonja is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-02-2020 , 10:44   Re: [HELP] Change Duration of Smoke
Reply With Quote #4

Quote:
Originally Posted by hellmonja View Post
Will try that. It just occurred to me to look into the Colored Smokes plugin. There it uses TE_FIREFIELD. I'll try that first then TE_SMOKE if it doesn't work. I also found out if I remove the grenade world model the explosion doesn't happen. That's one way to block it I guess. Thank you for replying...
Just to clear things up, you are not removing the world model, you are removing the grenade entity which has the w_ model. And if the entity is gone then it can't explode.
__________________

Last edited by HamletEagle; 11-02-2020 at 10:44.
HamletEagle 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 18:19.


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