//Stuff that doesn't quite belong anywhere else will be here, usually some minor visual effects
//and things of that nature.

//psychoball particles

actor psychoballparticles
{
	+noclip
	projectile
	scale 0.40
	+clientsideonly
	+painless
	speed 20
	damage (0)
	states
	{
	spawn:
		TNT1 A 0
		TNT1 A 1 a_fadeout (0.05)
		TNT1 A 0 a_jump (25, "ballparticle1")
		TNT1 A 0 a_jump (25, "ballparticle2")
		TNT1 A 0 a_jump (25, "ballparticle3")
		stop
	death:
		TNT1 A 0
		stop
	ballparticle1:
		TNT1 A 0 a_spawnitemex ("ballparticle1", random(10,-10),random(10,-10),random(10,-10),0,0,0,0,0)
		goto spawn
	ballparticle2:
		TNT1 A 0 a_spawnitemex ("ballparticle2", random(10,-10),random(10,-10),random(10,-10),0,0,0,0,0)
		goto spawn
	ballparticle3:
		TNT1 A 0 a_spawnitemex ("ballparticle3", random(10,-10),random(10,-10),random(10,-10),0,0,0,0,0)
		goto spawn
		}
}

actor whitepsychoballparticles
{
	+noclip
	+clientsideonly
	projectile
	+painless
	speed 20
	damage (0)
	states
	{
	spawn:
		TNT1 A 0
		TNT1 A 1 a_fadeout (0.05)
		TNT1 A 0 a_jump (25, "whiteballparticle1")
		TNT1 A 0 a_jump (25, "whiteballparticle2")
		TNT1 A 0 a_jump (25, "whiteballparticle3")
		stop
	death:
		TNT1 A 1
		stop
	whiteballparticle1:
		TNT1 A 0 a_spawnitemex ("whiteballparticle1", random(10,-10),random(10,-10),random(10,-10),0,0,random(5,10),0,0)
		goto spawn
	whiteballparticle2:
		TNT1 A 0 a_spawnitemex ("whiteballparticle2", random(10,-10),random(10,-10),random(10,-10),0,0,random(5,10),0,0)
		goto spawn
	whiteballparticle3:
		TNT1 A 0 a_spawnitemex ("whiteballparticle3", random(10,-10),random(10,-10),random(10,-10),0,0,random(5,10),0,0)
		goto spawn
		}
}
		
actor ballparticle1
{
	+noclip
	+FORCEXYBILLBOARD
	+nointeraction
	+clientsideonly
	speed 20
	renderstyle add
	alpha 0.80
	states
	{
	spawn:
		TNT1 A 0
		PTL1 A 4 bright 
		stop
	death:
		TNT1 A 1
		stop
	}
}

actor ballparticle2 : ballparticle1
{
	states
	{
	spawn:
		TNT1 A 0
		PTL2 A 4 bright 
		stop
	}
}


actor ballparticle3 : ballparticle1
{
	states
	{
	spawn:
		TNT1 A 0
		PTL3 A 4 bright 
		stop
	}
}

actor whiteballparticle1 : ballparticle1
{	
	+missile
	+forcexybillboard
	+lookallaround
	states
	{
	spawn:
		TNT1 A 0
		WTL1 A 8 bright 
		stop
	}

}

actor whiteballparticle2 : ballparticle2
{	
	+missile
	+forcexybillboard
	+lookallaround
	states
	{
	spawn:
		TNT1 A 0
		WTL2 A 8 bright 
		stop
	}
}

actor whiteballparticle3 : ballparticle3
{
	+missile
	+forcexybillboard
	+lookallaround
	states
	{
	spawn:
		TNT1 A 0
		WTL3 A 8 bright 
		stop
	}
}
