Help with snow

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Curgny
Corporal
Posts: 30
Joined: Mon Jul 21, 2003 9:12 am

Help with snow

Post 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?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

level.rainvolume

Post 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.
Tom Trude,

Image
Post Reply