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

Lighting Smoke Nades


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   VEN (29)
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-11-2007 , 13:22   Lighting Smoke Nades
Reply With Quote #1

Lighting Smoke Nades
* Requested by NastyZK
Version : 0.1
Author : SAMURAI


* Plugin Details:
On smoke grenade impact, nades are lighting with some colors.

* Cvars:
- lighting_skn - Enable/Disable plugin (default 1)
0 = Disabled
1 = Enabled with random colors
2 = Enabled with RGB format colors

- lighting_skn_r : Red (default 255)
- lighting_skn_g : Green (default 0)
- lighting_skn_b : Blue (default 0)

- lighting_skn_trails - Enable/Disable Smoke Grenade Trails
0 = Disabled
1 = Enable
Trails color are Green


* Required Modules
- Fakemeta
- Csx
Attached Files
File Type: sma Get Plugin or Get Source (lighting_smoke_nades.sma - 4962 views - 3.0 KB)

Last edited by SAMURAI16; 02-16-2007 at 12:05.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-11-2007 , 13:28   Re: Lighting Smoke Nades
Reply With Quote #2

screeny? ;)
__________________
i stop around here and there.
Da_sk8rboy is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-11-2007 , 14:02   Re: Lighting Smoke Nades
Reply With Quote #3

Here ya!
[img=http://img108.**************/img108/2500/nadeshe5.th.jpg] [img=http://img109.**************/img109/2189/nades2me5.th.jpg] [img=http://img109.**************/img109/9643/nades3kx2.th.jpg]
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 02-11-2007 at 14:04.
Alka is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 02-12-2007 , 01:53   Re: Lighting Smoke Nades
Reply With Quote #4

Why do I get the feeling this would go good with a disco plugin........................
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
VEN
Veteran Member
Join Date: Jan 2005
Old 02-12-2007 , 03:03   Re: Lighting Smoke Nades
Reply With Quote #5

You did copied some of the code from at least two other trail and light plugins. You did even changed some things like variable names but i still do not see any credits to the original authors. Hence this automatically goes to the unapproved section. For the future reference you should note that this is definitely not a good habit. The work should be appropriately credited.
Code:
if(!is_user_alive(id))   return PLUGIN_CONTINUE;
Why would you want to ignore grenade drop on death?
Code:
write_byte(27)
Do not hardcode existing constants.
Code:
case CSW_HEGRENADE : return PLUGIN_CONTINUE; case CSW_FLASHBANG : return PLUGIN_CONTINUE;
This is not necessary and can be safely removed.

Last edited by VEN; 02-12-2007 at 03:30.
VEN is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-12-2007 , 20:41   Re: Lighting Smoke Nades
Reply With Quote #6

I don't see any problem with using some code from other plugins, as long as it's not giant blocks simply copied and pasted. How else do you learn?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2007 , 21:43   Re: Lighting Smoke Nades
Reply With Quote #7

Well, I've tested and this plugin works great.
__________________
Arkshine is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-12-2007 , 23:02   Re: Lighting Smoke Nades
Reply With Quote #8

About trail plugins :
1) It's not the first time when i use codes for trails, and when i used for the first time, sure i mentioned from who i know condes in credts
It's normal, if i alearly used codes about trails, i learned something new, that not mean if i copied

2) I don't another plugin from where i copied codes, because it's not copied

- I fixed what you suggested me
About "write_byte(27)", if isn't good, tell me to fix and also exaplain to know in future
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-12-2007 , 23:44   Re: Lighting Smoke Nades
Reply With Quote #9

He wants you to use the TE_DLIGHT define from message_const.inc.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-13-2007 , 01:15   Re: Lighting Smoke Nades
Reply With Quote #10

mini suggestion, use "if" instead "switch" when there is only one case in your switch statement.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Reply



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 03:06.


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