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

Solar Flash


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-30-2008 , 14:03   Solar Flash
Reply With Quote #1

Solar Flash
v 1.0

Description
Ok. Cuz tuty has left his thread in the hand of faith, i've made a new version of Solar Flash.

- you can set the seconds for the flash duration
- you can set the color of the flash
- you have a cvar for colors: 1 = defined; 2 = random colors
- you can set a trail
- the flash can be set to make a light when touching the ground with a specific color
- you can set the flash to go in different ways - changing velocity

Cvars:
solarflash
1/0 - enable/disable plugin (default 1)
solarflash_colortype 1/2 - specific/random colors (default 1)
solarflash_rgb - color for flash in rgb format (default 255 170 45 ) -- use SPACES!
solarflash_duration - duration in seconds for flash effect (default 7)
solarflash_trail 1/0 - enable/disable trail (default 1)
solarflash_light 1/0 - enable/disable lightning at touching the ground/walls/etc.. (default 1)
solarflash_velocity 1/0 - enable/disable changing velocity (default 0)

Modules: Fakemeta

PS: I know ark will say something about that 'conditional operator' functions -- realy poor i know
Attached Files
File Type: sma Get Plugin or Get Source (solar_flash.sma - 3966 views - 4.9 KB)
__________________


Last edited by anakin_cstrike; 10-30-2008 at 14:09.
anakin_cstrike is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-30-2008 , 15:18   Re: Solar Flash
Reply With Quote #2

You shouldn't change duration this way, you should make a "factor" cvar, then increase or decrease original duration.

Also, your duration conversion should be :
PHP Code:
// convert seconds to units
convert(num) return clamp((num * (1<<12)), 00xFFFF
__________________
- tired and retired -
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-30-2008 , 15:32   Re: Solar Flash
Reply With Quote #3

1. I don't understand
2. I understand, thanks.
__________________

anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-30-2008 , 16:45   Re: Solar Flash
Reply With Quote #4

Didn't you already release a plugin like this?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-30-2008 , 17:15   Re: Solar Flash
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
Didn't you already release a plugin like this?
No...lol ? tuty released it..
__________________

anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-30-2008 , 17:59   Re: Solar Flash
Reply With Quote #6

So, would you like to explain the difference between the 2, and why yours should be approved?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-30-2008 , 19:23   Re: Solar Flash
Reply With Quote #7

Quote:
- you can set the seconds for the flash duration
oh my suggest in tuty plugin... good job..

thx (:

edit: oh, anakin... this plugin work good with http://forums.alliedmods.net/showthread.php?p=393894?
Alucard^ is offline
Send a message via Skype™ to Alucard^
Old 10-31-2008, 07:11
anakin_cstrike
This message has been deleted by anakin_cstrike. Reason: opss
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-31-2008 , 07:13   Re: Solar Flash
Reply With Quote #8

Quote:
Originally Posted by Alucard^ View Post
oh my suggest in tuty plugin... good job..

thx (:

edit: oh, anakin... this plugin work good with http://forums.alliedmods.net/showthread.php?p=393894?
er
I think it won't....because in ava's plugin he overwrites the values to 0 n
and mine the same just in other method....you can try both plugins at the what same time and see what will happend...i don't think will work.

@ Exolent: tuty will not suport his plugin...he is not enteresting with amxx stuff anymore (he said this to me) and this has more features and cvars.
__________________

anakin_cstrike is offline
shadowski
Senior Member
Join Date: Feb 2007
Old 11-16-2008 , 12:52   Re: Solar Flash
Reply With Quote #9

could you also add when player gets hit by the flashlight a custom sound would be played?
shadowski is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-16-2008 , 13:20   Re: Solar Flash
Reply With Quote #10

Quote:
Originally Posted by shadowski View Post
could you also add when player gets hit by the flashlight a custom sound would be played?
At touching or blinding ?
__________________

anakin_cstrike 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 02:06.


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