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

Auto Weather [UPDATED 11/29/2014]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Exolent[jNr] (178)
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 11-05-2008 , 13:29   Auto Weather [UPDATED 11/29/2014]
Reply With Quote #1

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:


Frankfurt today:


.: 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
Attached Files
File Type: sma Get Plugin or Get Source (weather.sma - 6837 views - 14.1 KB)
File Type: sma Get Plugin or Get Source (weathertest.sma - 4417 views - 12.1 KB)
File Type: zip sky.zip (4.74 MB, 8212 views)
File Type: zip drizzle.zip (986.6 KB, 5696 views)
File Type: zip vault.zip (588 Bytes, 4233 views)
File Type: sma Get Plugin or Get Source (weather_yahoo.sma - 1221 views - 13.0 KB)
__________________

Last edited by TeddyDesTodes; 11-29-2014 at 21:47. Reason: Version update
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 11-05-2008 , 13:30   Re: Auto Weather
Reply With Quote #2

Holy shit. That's actually really cool.
Spunky is offline
Send a message via AIM to Spunky
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 11-05-2008 , 13:34   Re: Auto Weather
Reply With Quote #3

i'd never expected the first reaction of someone would be "holy shit" after my last submission failed so hard
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 11-05-2008 , 13:37   Re: Auto Weather
Reply With Quote #4

Well, I've never seen this done before. I hadn't even thought of it. Very creative and definitely unique.
Spunky is offline
Send a message via AIM to Spunky
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 11-05-2008 , 13:43   Re: Auto Weather
Reply With Quote #5

could anyone try it please?
because i can only test it on my server and here it runs very good =)
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-05-2008 , 13:43   Re: Auto Weather
Reply With Quote #6

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.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-05-2008 , 13:50   Re: Auto Weather
Reply With Quote #7

I will try this plugin for sure.
__________________
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
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 11-05-2008 , 13:55   Re: Auto Weather
Reply With Quote #8

@ 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 =)
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
tmen_13
BANNED
Join Date: Sep 2008
Old 11-05-2008 , 13:56   Re: Auto Weather
Reply With Quote #9

taking amx to the next level!

have to try someday
tmen_13 is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 11-05-2008 , 14:01   Re: Auto Weather
Reply With Quote #10

Does this do snow as well?
FuZ!on 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 23:07.


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