Still having problems with custom snow
Posted: Fri Nov 14, 2003 1:12 pm
I posted ages ago asking for help with custom snow. I've just got round to trying what was suggested and it doesn't work.
Basically I want to make falling ash from a volcano.
I've got an ash.tga texture in the main/textures/pompeii/ folder
I've copied the textures/snow7 shader from the pak0.pk3/scripts/effects.shader file, substituted the textures/snow7 at the top with textures/ash
This has been saved in the main/scripts folder as ash.shader
The relevant bit of script has come from a custom snow tut (sorry, can't remember whose). Anyway, here's my whole script:
Can anyone see what's wrong with it? It's my first proper script so there's probably loads wrong.
Thanks
Basically I want to make falling ash from a volcano.
I've got an ash.tga texture in the main/textures/pompeii/ folder
I've copied the textures/snow7 shader from the pak0.pk3/scripts/effects.shader file, substituted the textures/snow7 at the top with textures/ash
This has been saved in the main/scripts folder as ash.shader
Code: Select all
textures/ash
{
nomipmaps
nopicmip
qer_keyword 3dk
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
surfaceparm nomarks
surfaceparm noimpact
deformVertexes autoSprite
cull none
{
map textures/pompeii/ash.tga
//blendfunc blend
blendfunc add
rgbgen constant .5 .5 .5
//alphaGen constant 0.8
//alphaGen distFade 512 256
//tcmod scroll 0 -5
}
}Code: Select all
// Pompeii, Eruption
// ARCHITECTURE: Tim Dawson
// SCRIPTING: Tim Dawson
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Pompeii Eruption"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Pompeii Eruption"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
level waittill prespawn
level.rain_speed = "75"
level.rain_speed_vary = "10"
level.rain_length = "2"
level.rain_width = "1"
level.rain_density = "2"
level.rain_slant = "100"
level.rain_min_dist = "1800"
level.rain_numshaders = 12
level.rain_shader = "textures/ash"
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/pompeii_erupt.scr
exec global/ambient.scr pompeii_erupt
level waittill spawn
thread ash
ash:
//bit to look like ash is collecting on the road
wait 30
$ash moveup 32
$ash time 180
$ash waitmove
end
endThanks