Last active: Never
Not logged in [Login - Register]
Portal Portal   Search the forums Search   Frequently Asked Questions FAQ   View member list Member List   Staff Staff List   View Topic Activity Topic Activity   Forum Stats Stats   Board Rules Board Rules   Downloads Downloads
Go To Bottom

Printable Version | Subscribe | Add to Favorites  
Author: Subject: Random Weather
Tostitos
Probie
******

Avatar

Avatar


Posts: 223
Registered: 10-5-07
Location: Inside a house
Member Is Offline

Mood: i dont know.....

[*] posted on 3-1-09 at 09:15
Random Weather


I want a random weather script in my map but i dont know how to do that.

first, i want clear, sunny skies then so many seconds later rain comes in then lightning, thunder, and wind sounds with overcast and fog. then after a while i want it to turn back to normal without changing time of day and while it is clear and sunny, i want noises like birds and peaceful sounds.

anyone know where i can get a script like that, or make up my own?






http://www.dfreload.com/sig/teamreload3.gif

http://www.dfreload.com/sigs/doc_bar.gif
Lost but not forgoten........

View user's profile Visit user's homepage View All Posts By User U2U Member This user has MSN Messenger
PREDATOR-53rd
Corporal


Avatar



Posts: 310
Registered: 5-8-06
Member Is Offline


[*] posted on 3-1-09 at 09:37


what is the name of your map (exact name) and I'll make a wac file for you to try out. you'll just add it to your game folder along with your map. I'm assuming your still jo mapping, and if it's not what you want all you have to do is delete the .wac file from your folder. email me your map name and I'll email you back the file.
if you want. send to goldeneaglelst@yahoo.com
View user's profile View All Posts By User U2U Member
Tostitos
Probie
******

Avatar

Avatar


Posts: 223
Registered: 10-5-07
Location: Inside a house
Member Is Offline

Mood: i dont know.....

[*] posted on 3-1-09 at 12:14


the map file name is

Operation_Blackhawk.npj

map name is

River Valley - The Attack

thanks golden eagle, btw what is a .wa_ ? i emailed the map from my dads computer to my comp and i have

Operation_Blackhawk.WAC

and

Operation_Blackhawk.wa_

and it has all the information of my .wac but it is wrote differently?

(Im trying to make this map as good as possible!, its already alot better than my other ones!)






http://www.dfreload.com/sig/teamreload3.gif

http://www.dfreload.com/sigs/doc_bar.gif
Lost but not forgoten........

View user's profile Visit user's homepage View All Posts By User U2U Member This user has MSN Messenger
PREDATOR-53rd
Corporal


Avatar



Posts: 310
Registered: 5-8-06
Member Is Offline


[*] posted on 3-1-09 at 12:37


well try this create a new map name it enviro_test or something I always use a green flat terrain to test a weather wac.file single player mission and insert a single start player, click on file in the editor go to open mission WAC it will ask if you want to create one YES then paste this wac in there and test the map after you save it. see if this is what your looking for. you may have to adjust the timing on how fast thing happen but thats easy just add or lower the elapsed time things happen. i'm not very good at wac but i try lol.

here's the wac file..
copy after .

.// Select A Random Weather Type
If elapse(120) and eq(v5, 0) and random(5) then
// if random(5) then
dornd
farflash()
Rain(10, 10) // Light Rain
overcast(10,20)
skyspeed(25)
set(v1, 1)
sun(200,200,200) sets sun rgb ENV override
fogtype(2) //set fog type 0=fog, 1=haze, 2=haze wall, 3=fog wall
fogdist(1200)//sets fogdist to # meters
movefog(800,120)// fogdist to # meters over # seconds
lightning(255,255,255)// sets the color of the lightning

next
sun(125,125,125) sets sun rgb ENV override
fogtype(3)// set fog type 0=fog, 1=haze, 2=haze wall, 3=fog wall
fogdist(700) //sets fogdist to # meters
movefog(500,220) //move fogdist to # meters over # seconds
lightning(255,255,255)// sets the color of the lightning
farflash()
Rain(100, 30) // Thunder Storm
overcast(100,120)
skyspeed(60)
set(v1, 2)
next
flash()
Rain(50, 30) // Thunder Storm
overcast(50,25)
skyspeed(48)
set(v1, 3)
fogtype(1)// set fog type 0=fog, 1=haze, 2=haze wall, 3=fog wall
fogdist(1000) //sets fogdist to # meters
movefog(800,60) //move fogdist to # meters over # seconds
lightning(255,255,225)// sets the color of the lightning
sun(50,50,50)// sets sun rgb ENV override

next
Rain(0, 0) // Clear
overcast(5,10)
skyspeed(43)
set(v1, 4)
fogtype(0)// set fog type 0=fog, 1=haze, 2=haze wall, 3=fog wall
fogdist(1000) //sets fogdist to # meters

enddo
// endif
endif

if eq(v1, 1) and elapse(20) then // Light Rain
if random(5) then
farflash()
wave("thdrdst3.wav", 200)
endif
endif
if chain(9) then
if random(6) then
farflash()
wave("thdrdst4.wav", 200)
endif
farflash()
endif

if eq(v1, 2) and elapse(20) then // Thunder Storm
if random(2) then
flash()
wave("thdrcrk1.wav", 100)
flash()
if random(3) then
wave("gustb_6.wav", 100)
endif
flash()
endif
flash()
farflash()
endif
if chain(6) then
if random(3) then
flash()
flash()
flash()
wave("thdrdst4.wav", 100)
if random(2) then
wave("gustb_6.wav", 60)
endif
endif
farflash()
flash()
endif

if eq(v1, 3) and elapse(10) then // Light Rain
if random(4) then
farflash()
flash()
wave("thdrcrk4.wav", 200)
endif
flash()
endif
if chain (6) then
if random(6) then
farflash()
wave("thdrcrk4.wav", 800)
endif
farflash()
endif
if eq(v1, 4) and elapse(10) then // Clear
if random(10) then
farflash()
endif
endif

if eq(V1, 4) and elapse(60) then
TOD(13:00)
Endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(finch5v.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(finch6v.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(flcn1.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(thrush1.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(thrush1v.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(thrush2v.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wdpkr1.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren1.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren3.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren4.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren5.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren6.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(wren8.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(ngale2.wav, 600)
endif
endif

if eq(V1, 4) and elapse(5) then
if random(5) then
wave(ngale6.wav, 600)
endif
endif

enddo
View user's profile View All Posts By User U2U Member
PREDATOR-53rd
Corporal


Avatar



Posts: 310
Registered: 5-8-06
Member Is Offline


[*] posted on 3-1-09 at 12:44


Tostitos

if thats not what ya want you might try using Brad G's wac generator. I just tried to help ya, like i say i'm not very good at it.

http://www.dfreload.com/forum/files.php?action=file&id=543
View user's profile View All Posts By User U2U Member
Tostitos
Probie
******

Avatar

Avatar


Posts: 223
Registered: 10-5-07
Location: Inside a house
Member Is Offline

Mood: i dont know.....

[*] posted on 3-1-09 at 13:07


no problem eagle, that worked out great. thanks alot





http://www.dfreload.com/sig/teamreload3.gif

http://www.dfreload.com/sigs/doc_bar.gif
Lost but not forgoten........

View user's profile Visit user's homepage View All Posts By User U2U Member This user has MSN Messenger

  Go To Top





Powered by XMB
Developed By The XMB Group © 2001-2008