E2150 - Weather: Difference between revisions

no edit summary
(Created page with "The weather in Earth 2150 is dynamic and can actively influence the gameplay. Various weather effects can happen due to being scripted by gamemode/campaign designers, console commands, or player actions (LC's Weather control Center). The weather effects available in the game are as follows: snow, rain, wind, thunderstorm and meteor rain. Thunderstorm usually happen along with rains (although it is possible to have a thunderstorm without a rain). == Snow == == Rain == ==...")
 
No edit summary
Line 54:
 
==== Effect intensity ====
Event intensity scales lineary from 0 to the target ''intensity'' (from event's parameter) during up time, and diminishes in the same way during down time. The intensity is equal to the target intensity during ``const time`` phase. The timeout between lightnings is calculated as follows:
'''TODO:''' ''the rate at which the lightnings spawn, the way the intensity parameter affects it. The progression of intensity at "up" and "down" phases.''
x = 400 / currentIntensity * range
deltaT = Max(1, Rand(0, x-1) + x / 2)
 
With default WCC settings, at full intensity, a thunderstorm spawns a lightning every 3-8 ticks (0,15s-0,4s).
 
== Meteor rain ==