AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Auto Weather [UPDATED 11/29/2014] (https://forums.alliedmods.net/showthread.php?t=80143)

TeddyDesTodes 11-05-2008 12:29

Auto Weather [UPDATED 11/29/2014]
 
9 Attachment(s)
Auto Weather
TeddyDesTodes 2008-2014

.: Description / Features :.
This is a weather plugin, actually therer are many out there, but this one is different.
It' grabs data from feeds.bbc.co.uk and sets your servers weather to the forecast from bbc


- automatic sky changer if it is cloudy sunny foggy or partially cloudy
- automatic fog if humidity is over 90%
- automatic fog color to fit daytime
- automatic weather rain/snow
- automatic lights depending on sunrise/sunset time
- automatic temperature depending on min/max temp values
- maybe later
- you have to buy a jacket or at least have to change to an arctic model (for cstrike) or u will freeze


.: Screenshots :.

Berlin today:
https://i.imgur.com/00bP3JT.jpg

Frankfurt today:
https://i.imgur.com/RhgXT5nl.jpg

.: Cvars :.
Minimal light
weather_minlight <0-25> 24 Darkest, 0 Brightest <default: 24>

Maximum light
weather_maxlight <0-25> 24 Darkest, 0 Brightest <default: 10>

Set hours ingame
weather_currhour <0-23> Manually sets hour of day (0 = Off) <default: 0>

Set your region
weather_region <regioncode> For example: 0050 for Berlin <must be 4 digits>

.: Client Commands :.
  • say /weatherinfo - shows current weather condition.
.: Credits :.
  • xPaw - Cleanupping, debugmod, fm convert
.: Changelog :.

version 0.85 yahoo (weather_yahoo.sma):

version 0.85 maybe fixed version(weather.sma):
  • removed ugly (and useless) precache that keeps plugin from running
  • added footstep sounds for snow (if i have good sounds for rainy i'll add them)
  • added sv_skycolor for more realistic model illumination
version 0.8 test:
  • switched to nvault should be faster (weathertest.sma)
  • changed ThreadDesign by xPaw =)
version 0.7:
  • Changed to fakemeta (big thanks to xPaw)
  • Included debug mode (thanks to xPaw)
  • Region is now showed - Bugfix 11/06/08
  • Fixed some troubles with containi where -1 not false and therefore weather conditions not detected correctly
.: Known Bugs :.
  • (only for none cs mod) plugin returns runtime error when fog is on ( i need an is_valid_ent equivalent for fakemeta)
  • for some odd reason when its noon sky changes to night but everythign else works ok(someone should take a look at set_sky() im blind for some reason)
.: How to install :. We need the last 4 digits
In this example 4581

Set the cvar weather_region to your region code
In this example weather_region 4581

Finally
  • extract drizzle.zip to "sound/ambience"
  • extract vault.zip in ur amxmodx directory (only on fresh install) it will provide some data for first run(i dont think it's needed(if u can life with a warning on first run) so only a cosmetic fix)
.: Note :.

after you have set the cvar weather_region u have to wait 2 mapchanges/restarts to make the data become available
because this plugin is using the vault system because the sockets are to slow for plugin precache

i've only tested it in cstrike but it contains no mod specific code so it should work on any hl mod

* In DOD the fog not works


.: ToDo :.
  • Making the weather more accurate with live data (for now it uses the first day of the 3 day forecast)
  • adding some ambient sound for rain (if anyone could explain how to do that)
  • i need skies for foggy
See servers running Auto Weather

Spunky 11-05-2008 12:30

Re: Auto Weather
 
Holy shit. That's actually really cool.

TeddyDesTodes 11-05-2008 12:34

Re: Auto Weather
 
i'd never expected the first reaction of someone would be "holy shit" after my last submission failed so hard

Spunky 11-05-2008 12:37

Re: Auto Weather
 
Well, I've never seen this done before. I hadn't even thought of it. Very creative and definitely unique.

TeddyDesTodes 11-05-2008 12:43

Re: Auto Weather
 
could anyone try it please?
because i can only test it on my server and here it runs very good =)

Alka 11-05-2008 12:43

Re: Auto Weather
 
Nice plugin. I'd never think that someone will make this kind of plugin o.O. Gj man.
About that data thing, "after 2 map changes", hmm that's not really a good thing.

Fry! 11-05-2008 12:50

Re: Auto Weather
 
I will try this plugin for sure. :)

TeddyDesTodes 11-05-2008 12:55

Re: Auto Weather
 
@ Alka
its only the first restart where u will have the old data or no data
because if i try to get the data at precache (fog/sky/rain/snow need to be set at precache or they wont show up) the socket is to slow took me some hours to figure that out. so i put the data in the vault and at precache i get the data from the vault(but this is 1 mapchange behind)
@Spunky
thx for karma =)

tmen_13 11-05-2008 12:56

Re: Auto Weather
 
taking amx to the next level!

have to try someday

FuZ!on 11-05-2008 13:01

Re: Auto Weather
 
Does this do snow as well?


All times are GMT -4. The time now is 08:40.

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