AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Light SmokeGrenade (https://forums.alliedmods.net/showthread.php?t=91524)

tuty 05-02-2009 07:29

Light SmokeGrenade
 
1 Attachment(s)
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]




crazyeffect 05-02-2009 07:31

Re: Light SmokeGrenade
 
<3

Another plugin from tuty who rocks!

But i thought you quitted?

One 05-02-2009 07:38

Re: Light SmokeGrenade
 
Boom boom Powwwwwwwwwwwww


+k

Arkshine 05-02-2009 07:47

Re: Light SmokeGrenade
 
- 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

tuty 05-02-2009 09:36

Re: Light SmokeGrenade
 
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. :|

Arkshine 05-02-2009 12:13

Re: Light SmokeGrenade
 
Ah~~ you're right. I forget each the time.

Quote:

MSG_PVS - doesnt work in this case
What's the problem ?

tuty 05-02-2009 12:56

Re: Light SmokeGrenade
 
doesn't show the message... i mean no error but cylinder doesnt appear

Arkshine 05-02-2009 13:06

Re: Light SmokeGrenade
 
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.

tuty 05-02-2009 13:07

Re: Light SmokeGrenade
 
lol? i will try again :shock:

Code:

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

EDIT: doesnt work man :| if you don't belive me, try by yourself xD

joaquimandrade 05-02-2009 13:33

Re: Light SmokeGrenade
 
nice, little tuty :twisted:


All times are GMT -4. The time now is 04:16.

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