ELEMENT|Live Weather with windage cvar. (Updated AUG 14TH 2022.)
3 Attachment(s)
Click below for Snow demo.
https://i.imgur.com/2wpV1d0.gif Modern Amxx weather feed and generation for all mods. This is a fork of Autoweather by TeddyDesTodes. Some things that makes this weather plugin unique.
Rain, snow, skies, dusk, dawn, and wind are all brought into your server. Commands, Cvars, FAQ, and known limits.
Spoiler
QUICK INSTALL INSTRUCTIONS AND OVERVIEW Download Script Get this from Github. Compile script locally and install the skies as well as plugin. Once running plugin checks if there is an openweathermap.org key added as CVAR. Server will then produce weather automatically based on locale from CVAR, sv_region. Incompatible with Amxx 1.82. |
Re: Element
Thank you so much for updating that plugin. I couldn't answer your PM, but you know, If you want to add ML support, I'll be glad to help with Spanish ^^
I'm going to test it! |
Re: Element
You are most welcome internal.
|
Re: Element
This is AWESOME!! I just tested it, and it works perfectly!! :D, you sir did a great job here ! :crab:
thank ye! |
Re: Element
Sounds great :D
|
Re: Element
Ironically I almost forgot the earthquake condition. I have seen maps with such an effect that will be perfect here. Those are rare. Therefore this is placed at an extremely low priority.
A proposed windy condition will make us have to check the wind direction and compensate at range. Already existing plugin Shot Administration (by Nomexous) or similar will be used to handle the trigger of high wind. Accuracy fix could be used then disabled when it gets windy. I also noticed ever since CS 1.6 got to Steam it wasn't accurate. The sky is off at noon and shows a night sky still. This will be corrected too. Let me know what else. I appreciate the salutations. |
Re: Element
Quote:
I will wait for this update. Just let we all know, when it is ready. |
Re: Element
I made an update to the source. Debugging was enabled. Now it is disabled. Majority of the log is currently too cryptic. I had an update earlier this week. I promptly took it down. Sky tuning is still underway. IE | Night sky showing at noon.
|
Re: Element
I like how OpenWeatherMap.org has current wind condition.
$~telnet api.openweathermap.org 80 Trying 162.243.53.59... Connected to api.openweathermap.org. Escape character is '^]'. [ Code:
GET /data/2.5/weather?id=4887398&units=imperial&APPID=register-for-a-openweathermap&u=c HTTP/1.0HTTP/1.1 200 OK Server: openresty Date: Sun, 02 Apr 2017 00:57:51 GMT Content-Type: application/json; charset=utf-8 Content-Length: 438 Connection: close X-Cache-Key: /data/2.5/weather?APPID=register-for-a-openweathermap=4887398&u=c&units=imperial Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: GET, POST {"coord":{"lon":-87.65,"lat":41.85},"weather":[{"id":800,"main":"Clear","description":"cl ear sky","icon":"01n"}],"base":"stations","main":{"temp":50,"pressur e":1022,"humidity":46,"temp_min":46.4,"temp_m ax":53.6},"visibility":16093,"wind":{"speed":6.93,"deg" :110},"clouds":{"all":1},"dt":1491093300,"sys":{" type":1,"id":1007,"message":0.1218,"country": "US","sunrise":1491132670,"sunset":1491178654 },"id":4887398,"name":"Chicago","cod":200} Connection closed by foreign host. This is a good start. If anybody else wanted to collaborate or spin-off with the sniping section! Hint hint wink wink nudge n u d g e. |
Re: Element
where exactly in yahoo can I find the region code??..
you said in first post e.g chicago 2379574 .. how do I get this serial code?? thanks in advance |
Re: Element
Go to Yahoo, click weather, or weather.yahoo.com, enter city. Number appears at end of address.
|
Re: Element
Quote:
|
Re: Element
Players, weapons and some objects are very dark how do i fix this? the cvars minlight and maxlight only makes the game bright.
Edit: okay, when i step into a shadow or when im inside a building i can see my weapon and other players perfectly but as soon as i step outside into the light my gun model becomes very dark and when players move into the light they also become very dark, again the cvars don't help. |
Re: Element
If night vision or flashlight isn't available use weather_minlight 20.
|
Re: Element
Hi this can be used directly with CS 1.6 or is it only for half-life?
|
Re: Element
It works best with 1.6 and similar.
|
Re: Element
This is my weather info https://weather.yahoo.com/argentina/...-aires-468739/ So should i put those 6 digits in this line?
Code:
g_cvar_region = register_cvar("region","2379574"); |
Re: Element
Code:
GET http://api.hackertarget.com/whois/?q=8.8.8.8 | grep -w "Country" |
Re: Element
Since Yahoo got exploited they treat petty weather feeds like something they are not it disabled the plug-in!
SAN FRANCISCO — For sale: one billion accounts, $200,000 or best offer. The passwords don’t work, but the dates of birth, telephone numbers and security questions could still be useful to an adept cyberthief. |
Re: Element
I haven't tested but this sounds cool :)
|
Re: Element
Eclipse is fixed. A run-time error and segment fault are both now eliminated.
Weather is in real time for the Spring of 2017. Last release was hourly in 2014. Original was 3 day a decade ago. Openweathermap has an ID to register for and use like Yahoo but easier to code. Epoch.inc that might be augmented into this in near future. Chicago tested. PHP Code:
Code:
region "616411&units=metric&APPID=getyourown32-bitregistration" |
Re: Element
map name from first post please?
|
Re: Element
afaik that bug got fixed long time ago what hlds version you use ?
|
Re: Element
The idea is good but the code is messy, you need to clean it first.
|
Re: Element
Will do.
|
Re: Element
I thought Okapi was never working correctly?
and what kind of file is this? extract in cstrike_folder.tar.lzma |
Re: Element
Since major upgrade of server I had to use amxmodx-1.8.3-dev-git5151-base instead of amxmodx-1.8.2-base-linux. First time using Apple Hardware for server. I like grepping with amx_search so much I prefer it over the non-developer version. If you are using PC this might not ever happen. Apple's chips are 'unique'.
|
Re: Element
#DJEarthQuake ,have you found a fix for the silent footsteps while outside bug??,i experienced it and thought my pl_steps where corrupted or that they were of a very high bitrate annd frequency and did a fresh vanilla cs reinstall and after that i read that know bug.... hehehe
Cheers Eduardo |
Re: Element
There's more inherited stuff that's wrong. When it is raining I hear snow steps instead of puddle splashes. I really hadn't been bothered by it enough to resolve it yet.
|
Re: Element
No problem at all,i understand it.
Getting my cs back to normal mod madness wasnt that hard at all. Also tested again both auto weather and auto weather yahoo and they both have the same issue with the outside muted footsteps. I will post a request to see if someone wants to dig into the code (doubt it) to see where the problem is. It was a joy to see the different light settings, skies and such , a really great idea for such a limited game engine :(. |
Re: Element
There aren't any Yahoo versions out there with working weather feeds which is what the mod is about not footsteps. I was the one looking for a stats plugin, found this and changed it from BBC to Yahoo, then to openweathermap. If the feed does not work then the weather is static and never changes. The footsteps work great outside only when it's snowing. I wasn't joking about it being an inherited bug within plugin. I gave my shot out to Autoweather on front page here.
|
Re: Element
I can review it, but please intend it properly first. It's a total mess.
Also use spaces in functions. A function should not be just one huge block of code. It's completely unreadable(example daylight). |
Re: Element
I find it hard to believe you were a developer for so many years and think this is fine:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
You asked for a review. The first thing that should be fixed is the indentation, make it consistent. |
Re: Element
Quote:
|
Re: Element
Quote:
|
Re: Element
Quote:
Improvements: 1. Give your variables better naming, for ex: g_cvar_uplink should be g_szCvar_Uplink as it holds a string meanwhile g_cvar_maxlight should be g_iCvar_Maxlight because it holds an integer. 2. The same goes to your functions, you should give some special attention to naming your functions, as it's going to help the readers a lot if the functions are named accordingly. 3. PHP Code:
4. PHP Code:
5. PHP Code:
b. Use charsmax() instead of directly putting the size. |
Re: Element
Quote:
|
Re: Element
Quote:
https://github.com/alliedmodders/amx...ment-420452301 |
Re: Element
Quote:
|
Re: Element
Quote:
|
| All times are GMT -4. The time now is 23:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.