Raised This Month: $37 Target: $400
 9% 

Advanced Fog 0.7


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   v3x (159)
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 08-06-2008 , 11:08   Advanced Fog 0.7
Reply With Quote #1

Advanced Fog
v0.7

This Fog plugin differs from others because you can turn fog on/off, change it's color,density without changing the map. It easy to use. Any admin with MAP access("f" flag in users.ini) can access the console command.

Cvars:
amx_fog_default
<1/0>(If 1, players will have fog when they join the game) (default: 1)
amx_fog_color
<### ### ###> (Color is in RGB format(0-255). With this cvar you control the color of the fog when users join the game(if amx_fog default is 1). This also is the color which is sat if an admin has made a mistake setting the fogs color) (default: "116 137 147")
amx_fog_amount
<1-9>(Fogs density. 1 - good visibility... 9 - you can hardly see where you're going) (default: 3)

Admin Commands:
amx_fog
<1/0 - on/off><R G B><Density/Amount>(With this command admins can turn the fog on/off set it's color and set it's density/amount. Remember: RGB must have 3 value between 0 and 255(ex. "255 0 0" - red color). If you would like to use default value for Color or Density just put 0 in the respective place.)

Examples:
Quote:
amx_fog 1 "0 0 0" 1 - Would make a black fog which you can hardly see.
amx_fog 1 0 0 - Would use the default values for the fog.
amx_fog 0 0 0 - Would turn the fog off.
amx_fog 1 "116 137 147" 9 - Would make a realistic gray fog and it would be really hard to see anything.
amx_fog 1 "0 0 200" 3 - Would make a cool blue fog.
Changes:
v0.7
*First Release

Screenie!
[IMG]http://img84.**************/img84/9963/screeeniewr4.th.jpg[/IMG]


Attached Files
File Type: sma Get Plugin or Get Source (advanced_fog.sma - 11344 views - 5.8 KB)
__________________

Last edited by shine771; 08-06-2008 at 12:53.
shine771 is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 08-06-2008 , 11:18   Re: Advanced Fog 0.7
Reply With Quote #2

any screeny examples?

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 08-06-2008 , 11:32   Re: Advanced Fog 0.7
Reply With Quote #3

Quote:
Originally Posted by Stixsmaster View Post
any screeny examples?
Yes, that would be nice.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2008 , 11:45   Re: Advanced Fog 0.7
Reply With Quote #4

Oh, you have finaly found what the last params in this event do. ^^

EDIT : Oosp It was MPNumb ( here )


By the way, get_user_msgid("Fog") should be store in a global var.

And instead of checking <0 and >255 + message, you can use directly clamp(), something like : = clamp ( str_to_num(rgb[i]), 0, 255 );. Oh well, your method is perfectly fine too.
__________________

Last edited by Arkshine; 08-06-2008 at 11:49.
Arkshine is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 08-06-2008 , 12:08   Re: Advanced Fog 0.7
Reply With Quote #5

Mm..key? Do you really need screenies? XD lol... i think everyone knows how fog looks... anyway... probably noone knows how it looks in de_dust2 ;).
Updated the first post.. btw... i couldn't figure out how the density works.. anyway... i would be happy if someone could help me figure out that mystery.. pff. I just tested it with fog entities and using shptools(thanks!) hooked the fog message with densities(0.001-0.009) and used those numbers for the fog amount.
@arkshine: i will try it in next version. Thanks ;).
In next version you'll be able to set fog only to one person/team.
__________________
shine771 is offline
necox
Member
Join Date: Feb 2008
Old 08-06-2008 , 12:46   Re: Advanced Fog 0.7
Reply With Quote #6

thanx thanxxx
__________________
necox is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 08-06-2008 , 12:52   Re: Advanced Fog 0.7
Reply With Quote #7

So is it possible to create that very heavy fog that You can't even see opponent?
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 08-06-2008 , 13:02   Re: Advanced Fog 0.7
Reply With Quote #8

You can't see your enemies well... You can see everything thats ~0.5m around you.. it fades till ~1.5m and after 1.5m you can't see a thing XD... I don't think it's necessary to make fog that you can't even see a thing.. just use a plugin where you can set maps light to "a".. total darkness.. there is no need for fog then.
__________________
shine771 is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 08-06-2008 , 13:08   Re: Advanced Fog 0.7
Reply With Quote #9

Well I have dark map but also I want fog.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.

Last edited by Fry!; 08-06-2008 at 13:32.
Fry! is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 08-06-2008 , 14:50   Re: Advanced Fog 0.7
Reply With Quote #10

Then change amx_fog_amount to 9. Of course you can adjust the color to fit your needs .
__________________
shine771 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 11:44.


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