Raised This Month: $94 Target: $400
 23% 

Light SmokeGrenade


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Emp` (115)
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-02-2009 , 08:29   Light SmokeGrenade
Reply With Quote #1

Light SmokeGrenade
version 2.0.0



Description:

- The smokegrenade will made a cool light. Usefull on dark sides.
- Smoke puff removed.
- Light style is like in ZombiePlague. xD
- This plugin works on CS 1.6 && CZ.

Cvars:

- lightsmoke_enabled - 1 - plugin enabled / 0 - plugin disabled
- lightsmoke_light_duration - 20.0 ( set here the light duration )
- lightsmoke_deploytime - 3.0 ( set here the seconds until smoke deploy )
- lightsmoke_trail - 1 - enable / 0 - disable the smoke trail
- lightsmoke_cylinder - 1 - enable / 0 - disable the cylinder when light start's
- lightsmoke_smoke - 1 - enable / 0 - disable the smoke effect when light is turned off
- lightsmoke_glow_color - "255 255 255" - set the smoke glow color. RGB Format(use spaces)
- lightsmoke_bonus - 1 - give a free smokegrenade on player spawn / 0 - disable free smokegrenade on spawn


Modules:

- fakemeta
- hamsandwich


Credits:

- Cheap_Suit


Images:

[IMG]http://img183.**************/img183/5223/smokethrow.th.png[/IMG] [IMG]http://img21.**************/img21/7160/smokeoff.th.png[/IMG] [IMG]http://img12.**************/img12/4042/lighth.th.png[/IMG] [IMG]http://img14.**************/img14/6564/deployn.th.png[/IMG]



Attached Files
File Type: sma Get Plugin or Get Source (LightSmokeGrenade.sma - 3738 views - 5.3 KB)
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 03-05-2012 at 12:03. Reason: =.=
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-02-2009 , 08:31   Re: Light SmokeGrenade
Reply With Quote #2

<3

Another plugin from tuty who rocks!

But i thought you quitted?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-02-2009 , 08:38   Re: Light SmokeGrenade
Reply With Quote #3

Boom boom Powwwwwwwwwwwww


+k
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2009 , 08:47   Re: Light SmokeGrenade
Reply With Quote #4

- I would use set_user_rendering from fun, more efficient.
- Instead of FM_Think, I would use register_think with a custom classname, more efficient.
- Use MSG_PVS for TE_BEAMCYLINDER / TE_SMOKE
- Use get_user_origin instead of pev + FVecIVec
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-02-2009 , 10:36   Re: Light SmokeGrenade
Reply With Quote #5

EDIT:

get_user_origin - invalid id etc.. cant for ent's
set_user_rendering - invalid id... cant for ent's

MSG_PVS - doesnt work in this case.
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 05-02-2009 at 10:50.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2009 , 13:13   Re: Light SmokeGrenade
Reply With Quote #6

Ah~~ you're right. I forget each the time.

Quote:
MSG_PVS - doesnt work in this case
What's the problem ?
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-02-2009 , 13:56   Re: Light SmokeGrenade
Reply With Quote #7

doesn't show the message... i mean no error but cylinder doesnt appear
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2009 , 14:06   Re: Light SmokeGrenade
Reply With Quote #8

MSG_PVS works perfectly fine. No need to show something to players who don't look the origin. Anyway it's up to you, I don't care, it was just some suggestions.
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-02-2009 , 14:07   Re: Light SmokeGrenade
Reply With Quote #9

lol? i will try again

Code:
No need to show something to players who don't look the origin
i knew that

EDIT: doesnt work man if you don't belive me, try by yourself xD
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 05-02-2009 at 14:11.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-02-2009 , 14:33   Re: Light SmokeGrenade
Reply With Quote #10

nice, little tuty
__________________
joaquimandrade 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 00:01.


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