Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
List of all members
dp88_randomWeather Class Reference

Weather Randomizer. More...

#include <dp88_misc.h>

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

This script can be used to create randomised weather conditions on a map which change periodically during the game. The range of weather conditions that are applied can be controlled via the script parameters to ensure inappropriate types of weather are not used (such as snow in the desert).

You should only have one instance of this script active at any given time, generally it should be attached to a map controller object such as a Daves Arrow preset.

Parameters
update_interval_minThe minimum time, in seconds, between weather update checks. Note that unless probability_change is set to 100 an update check does not necessarily cause new weather conditions to occur
update_interval_maxThe maximum time, in seconds, between weather update checks. Note that unless probability_change is set to 100 an update check does not necessarily cause new weather conditions to occur
probability_changeThe percentage probability that new weather conditions will be generated when an update check occurs
fog_start_distance_minThe minimum starting fog distance that can be applied
fog_start_distance_maxThe maximum starting fog distance that can be applied
fog_end_distance_minThe minimum end of fog distance that can be applied
fog_end_distance_maxThe maximum end of fog distance that can be applied
precipitation_probability_snowThe percentage probability of snow occuring
precipitation_probability_rainThe percentage probability of rain occuring
precipitation_probability_volcanic_ashThe percentage probability of volcanic ash occuring
precipitation_density_minThe minimum precipitation density that can be applied
precipitation_density_maxThe maximum precipitation density that can be applied
lighting_probability_normalThe percentage probability of normal lightning occuring
lighting_probability_war_blitzThe percentage probability of a war blitz occuring
lighting_intensity_minThe minimum intensity of lightning that can be applied
lighting_intensity_maxThe maximum intensity of lightning that can be applied
lighting_start_distance_minThe minimum starting distance for lightning that can be applied
lighting_start_distance_maxThe maximum starting distance for lightning that can be applied
lighting_end_distance_minThe minimum end distance for lightning that can be applied
lighting_end_distance_maxThe maximum end distance for lightning that can be applied
lighting_heading_minThe minimum lightning heading that can be applied
lighting_heading_maxThe maximum lightning heading that can be applied
lighting_distribution_minThe minimum lightning distribution that can be applied
lighting_distribution_maxThe maximum lightning distribution that can be applied
wind_heading_minThe minimum wind heading that can be applied
wind_heading_maxThe maximum wind heading that can be applied
wind_speed_minThe minimum wind speed that can be applied
wind_speed_maxThe maximum wind speed that can be applied
wind_variability_minThe minimum wind speed variability that can be applied
wind_variability_maxThe maximum wind speed variability that can be applied
Note
The probability of clear conditions (no rain, snow or volcanic ash) is the 100% minus the combined probabilities of rain, snow and volcanic ash that are configured in the script. For example, if precipitation_probability_snow is 5, precipitation_probability_rain is 15 and precipitation_probability_volcanic_ash is 1 the probability of clear conditions will be 100 - 5 - 15 - 1 = 79%