Random Weather

Post Reply
User avatar
Country Joe-PG-
Squad Member
Squad Member
Posts: 2119
Joined: Sun May 30, 2010 12:29 pm
Location: USA

Random Weather

Post by Country Joe-PG- »

You may want to tweak the numbers if you use this script in your WAC files.
I've adjusted the weather to change fairly quickly. (10 seconds for each)
The fog gets thick as well during the heavy rain period.

Enjoy,
CJ
If elapse(90) and random(5) then
dornd
rain(10,10) //light rain
wind(20,10)
overcast(50,10)
skyspeed(30)
fogdist(500)
fogcolor(100,100,100)
set(v1,1)
farflash()
next
rain(60,10) //rain
wind(33,10)
overcast(100,10)
skyspeed(30)
movefog(300,15)
set(v1,2)
farflash()
next
rain(100,10) //heavy rain
wind(26,10)
overcast(70,10)
skyspeed(30)
set(v1,3)
flash()
next
rain(50,10) //rain
wind(7,10)
overcast(30,10)
skyspeed(30)
movefog(700,15)
set(v1,4)
farflash()
enddo
endif
Image
Image
Post Reply