Still having problems with custom snow

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

Still having problems with custom snow

Post by indiana_tim_d »

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

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
	}
}
The relevant bit of script has come from a custom snow tut (sorry, can't remember whose). Anyway, here's my whole script:

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

end
Can anyone see what's wrong with it? It's my first proper script so there's probably loads wrong.

Thanks
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

This might help:

/t.php?id=44


:wink:
"all the governments in the world are corrupt and in the hands of the Illuminati"
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

woohoo!

Post by indiana_tim_d »

Yup, that worked!

Thanks
Post Reply