BeamNG – MK’s Dynamic Weather

  • Posted by:
  • Posted on:
  • Category:
    BeamNG.driveBeamNG.drive
  • System:
    Windows
  • License:
    Freeware
  • Developer:
    MegaKnight
  • Price:
    USD 0

This lua script implements dynamic weather in BeamNG!

It’s not the prettiest, but given what’s possible on Game Engine side (rain, fog, clouds), I think it’s still quite good. I will be working on this in the future by improving it’s features and fixing possible bugs.

Activate with Alt + W
Open UI with Ctrl + Alt + W
Spawn tornado with Alt + T

Current Features:

  • weather events: sunny, cloudy, light rain, rainy, stormy, foggy, foggy rain, tornado storm
  • random start event upon activating
  • dynamic wind affecting vehicles and groundcover/forest objects (if supported by the object)
  • windbursts randomly happening from time to time, frequency and strength affected by weather event
  • tornadoes that slowly chase the player or follow a random path or a specified vehicle (toggle/select with UI), only one can be active at a time
  • wind fields of tornadoes are displayed on the map
  • option to spawn tornadoes with customized parameters (such as wind speed, size etc.) via the UI, preset system to save and load your custom settings
  • slippery roads during rain/snow (if roads are made out of terrain, does not work for meshes like bridges)
  • dynamic rain, clouds, fog, temperature and brightness
  • traffic vehicles turn on their lights during rain or fog
  • UI for optional weather, wind, tornado, shadow quality and road condition control
  • compatible with career mode and missions/scenarios (weather is activated automatically upon entering career mode, saved on exit/save and re-applied on re-entering the same career save)
  • ~ 3000 lines of code

How to use?

To activate dynamic weather on a map, press Alt + W. After activating, a message should display in the top right corner of the screen. To toggle the UI, press Ctrl + Alt + W. These keybinds can be changed in the settings.
Upon changing the map, the script will unload itself to prevent issues. You need to enable it again manually.

The mod is activated automatically upon entering career mode. The current weather is saved upon saving or exiting and is loaded back in when re-entering the same career save. This also applies to currently active tornadoes; their strength, position and remaining duration is saved as well. You can deactivate the automatic activation within the UI.

There is a chance for a tornado weather event to occur randomly. This can be toggled in the UI and is off per default during career. You can spawn a tornado close to the player vehicle independently from weather events using Alt + T. Only one tornado can be active at a time.

If you want a specific weather event to happen, you can use the UI, which can be toggled using Ctrl + Alt + W. You can also use it to control road condition, wind speed, tornadoes, time between random weather events, shadow quality and toggle between snow and rain.

Tornadoes can be customized within the UI, so you can fully control their strength and size if you want to. Some of these settings may cause instabilities if you choose extreme values or certain combinations. You can also control their movement speed, making them stay at a position or chase you rather quickly (especially great when driving a Pigeon :p).

Known Issues:

  • Rain and snow cause glass glitches with Vulkan Renderer. Please use DirectX instead. I can’t fix this, as it is a problem with the game engine.
  • Instant event switching can cause game crashes when a windburst is happening at the same time, which is why I’ve implemented a prevention mechanism. Simply wait until the windburst is over and perform the action action.

Credits:

  • @Komodor for his code to make changing road conditions possible (during Beta versions)
  • @vouthin for his rankine vortex tornado code
  • @MegaKnight (me) for everything else
âś… Thank you! Your request has been sent.
×

Request an Update

Rating

4.8

( 89447 Votes )
Please Rate!
BeamNG – MK’s Dynamic Weather

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *