/******************************************************************************
BasiliskEnergyWaveTrailer

Creation date: 2011-08-11 01:06
Last change: $Id$
Copyright © 2011, Wormbo
Website: http://www.koehler-homepage.de/Wormbo/
Feel free to reuse this code. Send me a note if you found it helpful or want
to report bugs/provide improvements.
Please ask for permission first, if you intend to make money off reused code.
******************************************************************************/

class BasiliskEnergyWaveTrailer extends Emitter notplaceable;


#exec obj load file=..\Textures\AW-2004Particles.utx


var Material BlueSkin;
var rangevector BlueColorMultiplier;


simulated function PostBeginPlay()
{
	Super.PostBeginPlay();

	Emitters[1].StartSpinRange.X.Min = Rotation.Yaw   / 65536.0;
	Emitters[1].StartSpinRange.Y.Min = Rotation.Pitch / 65536.0;
	Emitters[1].StartSpinRange.Z.Min = Rotation.Roll  / 65536.0;
	Emitters[1].StartSpinRange.X.Max = Emitters[1].StartSpinRange.X.Min;
	Emitters[1].StartSpinRange.Y.Max = Emitters[1].StartSpinRange.Y.Min;
	Emitters[1].StartSpinRange.Z.Max = Emitters[1].StartSpinRange.Z.Min;
}


simulated function SetBlueEffects()
{
	Emitters[0].ColorMultiplierRange = BlueColorMultiplier;
	Skins[0] = BlueSkin;
}


//=============================================================================
// Default values
//=============================================================================

defaultproperties
{
	AutoDestroy = True
	bNoDelete   = False
	LifeSpan    = 1.0
	PrePivot    = (X=220.0)
	Skins[0]    = FinalBlend'RedShockwaveFinal'
	AmbientGlow = 254

	BlueSkin            = FinalBlend'BlueShockwaveFinal'
	BlueColorMultiplier = (X=(Min=0.1,Max=0.2),Y=(Min=0.4,Max=0.8),Z=(Min=1.0,Max=1.0))

	Begin Object Class=TrailEmitter Name=ShockwaveTrail
		TrailShadeType=PTTST_Linear
		MaxPointsPerTrail=10
		DistanceThreshold=80.0
		UseCrossedSheets=True
		FadeOut=True
		RespawnDeadParticles=False
		UseSizeScale=True
		UseRegularSizeScale=False
		AutomaticInitialSpawning=False
		ColorMultiplierRange=(Y=(Min=0.4,Max=0.8),Z=(Min=0.1,Max=0.1))
		DetailMode=DM_High
		StartLocationRange=(X=(Min=10.0,Max=10.0),Y=(Min=-5.0,Max=5.0))
		StartLocationShape=PTLS_All
		StartLocationPolarRange=(X=(Min=16384.0,Max=16384.0),Y=(Min=65536.0),Z=(Min=3.0,Max=3.0))
		UseRotationFrom=PTRS_Actor
		SizeScale(0)=(RelativeSize=0.1)
		SizeScale(1)=(RelativeTime=1.0,RelativeSize=4.0)
		StartSizeRange=(X=(Min=150.0,Max=200.0))
		InitialParticlesPerSecond=1000.0
		//DrawStyle=PTDS_Brighten
		Texture=Texture'AW-2004Particles.Energy.AngryBeam'
		LifetimeRange=(Min=0.5,Max=0.5)
		StartVelocityRadialRange=(Min=-3000.0,Max=-3000.0)
		GetVelocityDirectionFrom=PTVD_AddRadial
	End Object
	Emitters(0)=TrailEmitter'ShockwaveTrail'

	Begin Object Class=MeshEmitter Name=ShockwaveFront
		StaticMesh=StaticMesh'AW-2k4XP.Weapons.ShockShield'
		UseParticleColor=True
		FadeOut=True
		RespawnDeadParticles=False
		SpinParticles=True
		UseSizeScale=True
		UseRegularSizeScale=False
		AutomaticInitialSpawning=False
		MaxParticles=1
		UseRotationFrom=PTRS_Actor
		SizeScale(0)=(RelativeSize=0.1)
		SizeScale(1)=(RelativeTime=1.0,RelativeSize=4.0)
		StartSizeRange=(X=(Min=1.0,Max=1.0))
		InitialParticlesPerSecond=1000.0
		LifetimeRange=(Min=0.5,Max=0.5)
		StartVelocityRange=(X=(Min=3000.0,Max=3000.0))
	End Object
	Emitters(1)=MeshEmitter'ShockwaveFront'
}

