Page 1 of 1

Help with snow

Posted: Wed Jul 07, 2004 10:14 am
by Curgny
Ok, I need help with snow settings :S
Atm I got this code

Code: Select all

level waittill spawn

wait 2
// Setup snow parameters

local.string = getcvar(version)

if(local.string[25] == "2")
{
level.rain_speed = "200"
level.rain_speed_vary = "32"
level.rain_length = "3"
level.rain_width = "1"
level.rain_density = "60"
level.rain_slant = "250"
level.rain_min_dist = "700"
level.rain_numshaders = 20
level.rain_shader = "textures/snow"
}
else
{
level.rain_speed = "200"
level.rain_speed_vary = "32"
level.rain_length = "3"
level.rain_width = "1"
level.rain_density = "60"
level.rain_slant = "250"
level.rain_min_dist = "700"
level.rain_numshaders = 20
level.rain_shader = "textures/snow0"
}
But when I use it on my level, snow starts to rain like this:

~~~~~~~~~~~~

~~~~~~~~~~~~

~~~~~~~~~~~~

Like gaps in it. First wave, then second wave of snow etc
But I need to have snowstorm settings. I can't manage to put such settings that it would rain like snowstorm, but without no gaps. Can anyone help me?

level.rainvolume

Posted: Wed Jul 07, 2004 3:20 pm
by tltrude
I see these in the global/weather.scr script, but I have no idea what they do.

level.rainvolume = -1 // 0 thru 1 (-1 turns it off, I think)
level.weatherpattern = 1 // 0, 1, 2, or 3

Adding one of these will make the weatherpattern vary constantly by itself.

exec global/weather.scr::weatherchanger
exec global/weather.scr::medicchanger

Hope that helps.