//desc:haze TeamFortress railgun trail

r_trail "progs/beam.mdl" te_railtrail 0
r_effect "progs/beam.mdl" te_raillight 0
r_trail "progs/beam2.mdl" te_railtrail 0
r_effect "progs/beam2.mdl" te_raillight 0
r_trail "progs/e_spike1.mdl" te_railtrail 0
r_effect "progs/e_spike1.mdl" te_raillight 0
r_trail "progs/e_spike2.mdl" te_railtrail 0
r_effect "progs/e_spike2.mdl" te_raillight 0

r_part te_raillight
{
	lighttime 0
	lightshadows 0
	lightradius 100
	lightrgb 0 0.2 0.8
}
r_part te_railtrail
{
	type texturedspark
	texture "particles/flare2.tga"
	count 1
	scale 1
	alpha 0.5
	die 0.6
	diesubrand 0.2
	rgb 55 178 238
	veladd -520
	randomvel 5
	blend add
	spawnparam1 120
	spawnmode spiral
	spawnorg 4
	inwater railbubble
}

r_part +te_railtrail
{
	type texturedspark
	texture "particles/flare2.tga"
	count 1
	scale 1
	alpha 0.5
	die 0.6
	diesubrand 0.1
	rgb 200 200 255
	reddelta 255
	blend add
	scalefactor 1	
	spawnmode spiral
	spawnparam1 240
	scalefactor 1
	spawnorg 2 2
	veladd -520
}

r_part +te_railtrail
{
	type texturedspark
	texture "particles/flare2.tga"
	count 1
	scale 1
	alpha 0.5
	die 0.4
	rgb 0 200 255
	reddelta 255
	blend add
	scalefactor 1	
	spawnmode spiral
	spawnparam1 360
	scalefactor 1
	spawnorg 3 3
	veladd -520
}

r_part railbubble
{
	texture "particles/bubble.png"
	count 1
	scale 0.1
	scalerand 6
	alpha 1
	die 1.5
	diesubrand 0.4
	blend add	
	veladd 0
	randomvel 10
	spawnvel 3 3
	rgb 255 255 255
	gravity -50
	scalefactor 1
	spawnparam1 50
	spawnmode spiral
	spawnorg 5
}