Page 1 of 1
Getting [b]func_rain[/b] to work.
Posted: Fri Jan 17, 2003 4:20 pm
by Angex
For some reason I'm having trouble getting rain to work. I made a simple square room, added a brush covering the entire area, textured it with common/rain . Pressed N while selected double clicked func_rain. Then complied the map.
My script looks like this:
main:
exec global/weather.scr
exec global/loadout.scr "maps/test_sky.scr"
level waittill prespawn
exec global/ambient.scr test_sky
level waittill spawn
//GIVE PLAYER WEAPON
$player item weapons/thompsonsmg.tik
$player ammo smg 30
$player useweaponclass smg
end
The strange part is that all the sounds work, i.e. rain, wind, thunder, but I don't see any rain, and the lightning flash is a blue colour.
Posted: Fri Jan 17, 2003 5:35 pm
by Innkeeper
Actually the lightning flash is white, must be a video problem.
Does the brush enclose everything, top to bottom? also how large is this room?
Posted: Fri Jan 17, 2003 5:56 pm
by jv_map
Make sure you've checked 'weather effects' in the video options

Posted: Fri Jan 17, 2003 5:57 pm
by Innkeeper

yea that really helps.

Posted: Sun Jan 19, 2003 1:57 pm
by Angex
Its not a video card problem, and I have "weather effects", it works fine when I play the original levels which include rain.
The room is about 512x512x512, it was just as a test, I left a slight gap between the rain brush an the room edges. Would that cause a problem ? I thought I might get a leak otherwise.
Posted: Sun Jan 19, 2003 4:32 pm
by Innkeeper
You might want to try something a little larger. There is a varible named rain_min_dist that does strange things from time to time. 'weather.scr' sets it to 512, a poor choice if you ask me.
If you want to add just rain and no lightning, it is best to add to you script (or create a custom script) and initilize the varibles by hand. This is also how you create snow:
Code: Select all
level.rain_speed = "32"
level.rain_speed_vary = "16"
level.rain_length = "2"
level.rain_width = "1"
level.rain_density = ".8"
level.rain_slant = "250"
level.rain_min_dist = "1024"
level.rain_numshaders = 12
level.rain_shader = "textures/snow0"
The above values work ok for MOHAA but need to be different for Spearhead, especially the shader.
Posted: Sat Jan 25, 2003 12:04 pm
by Angex
YAY The forums back !
Thanks for all the help, I'll try out all the suggested points. I've not spent much time with MoHAA maps while these forums have been missing, but I'll get back on it.