This lua script implements dynamic weather in BeamNG!
It's not the most beautiful, but considering the capabilities of the game engine (rain, fog, clouds), I think it's still pretty good. It is still in beta testing and not fully completed, although the main elements are already working.
Current functions:
- Weather phenomena: sunny, cloudy, light rain, rainy, stormy, foggy, misty rain dynamic wind affecting vehicles and ground cover/forest facilities (if supported by the facility)
- Wind gusts that occur randomly from time to time, the frequency and strength depend on weather events
- Tornadoes that slowly chase the player and interact with physical objects (vehicles, concrete retaining wall, mattress, ...), only one can be active at a time
- Slippery roads during rain/snow (if the roads are made of terrain, it does not work for grids such as bridges)
- Dynamic rain, clouds, fog, temperature and brightness
- User interface for optional control of weather, wind, tornado and road conditions
- Compatible with career mode and missions/scenarios
Since version 1.0, the user interface has been linked to Ctrl+Alt+W!
How to use it?
To activate dynamic weather on the map, press Alt + W. If you want to hide wind gust messages and event announcements, press Ctrl+Alt+W. These keyboard shortcuts can be changed in the settings. After activation, a message should appear in the upper-right corner of the screen. When you change the card, the script will download itself to prevent problems. You need to turn it back on manually.
Tornadoes are not part of the weather yet, you need to enable or create them manually. You can create a tornado next to your current vehicle using Alt+T. The random creation of tornadoes can be enabled in the user interface, but at the moment it does not depend on weather conditions. This will be improved in a future update. Only one tornado can be active at a time.
If you want a specific weather event to happen, you can use the user interface that is displayed when the main menu (Esc) is active. You can also use it to control road conditions, wind speed, tornadoes, time between random weather events, and switching between snow and rain. Alternatively, you can also use the console commands that are documented in the discussion thread.
In version 1.0:
- The user interface is now linked to Ctrl+Alt+W, it is no longer displayed automatically when the menu is active
- Redesigned tornado model, @vouthin
- Added a tornado weather event (switchable, disabled by default in career mode)
- Improved tornado particles
- Added more tornado control options to the user interface, some combinations may cause instability
tornado visualization in large map mode
- New user interface. |