AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Advanced Fog 0.7 (https://forums.alliedmods.net/showthread.php?t=75478)

shine771 08-06-2008 10:08

Advanced Fog 0.7
 
1 Attachment(s)
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]



Stixsmaster 08-06-2008 10:18

Re: Advanced Fog 0.7
 
any screeny examples?

---Stixsmaster

Fry! 08-06-2008 10:32

Re: Advanced Fog 0.7
 
Quote:

Originally Posted by Stixsmaster (Post 665446)
any screeny examples?

Yes, that would be nice. :wink:

Arkshine 08-06-2008 10:45

Re: Advanced Fog 0.7
 
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.

shine771 08-06-2008 11:08

Re: Advanced Fog 0.7
 
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.

necox 08-06-2008 11:46

Re: Advanced Fog 0.7
 
thanx thanxxx

Fry! 08-06-2008 11:52

Re: Advanced Fog 0.7
 
So is it possible to create that very heavy fog that You can't even see opponent? :D

shine771 08-06-2008 12:02

Re: Advanced Fog 0.7
 
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.

Fry! 08-06-2008 12:08

Re: Advanced Fog 0.7
 
Well I have dark map but also I want fog.

shine771 08-06-2008 13:50

Re: Advanced Fog 0.7
 
Then change amx_fog_amount to 9. Of course you can adjust the color to fit your needs :).


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

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