class NukeColumn expands Effects;

#exec MESH IMPORT MESH=NukeColumn ANIVFILE=MODELS\NukeColumn_a.3d DATAFILE=MODELS\NukeColumn_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=NukeColumn STRENGTH=0
#exec MESH ORIGIN MESH=NukeColumn X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=NukeColumn SEQ=All STARTFRAME=0 NUMFRAMES=3
#exec MESH SEQUENCE MESH=NukeColumn SEQ=Down STARTFRAME=0 NUMFRAMES=2 RATE=0.25
#exec MESH SEQUENCE MESH=NukeColumn SEQ=Rise STARTFRAME=1 NUMFRAMES=2 RATE=0.25

#exec MESHMAP NEW MESHMAP=NukeColumn MESH=NukeColumn
#exec MESHMAP SCALE MESHMAP=NukeColumn X=2.5 Y=2.5 Z=10.0

#exec TEXTURE IMPORT NAME=NukePan_01 FILE=PANFIRE\NukePan_01.bmp GROUP=Pan FLAGS=2
#exec MESHMAP SETTEXTURE MESHMAP=NukeColumn NUM=1 TEXTURE=NukePan_01

//Pan fire texture import (a lot! O.O' I need lots of detail for my own reasons :])
#exec TEXTURE IMPORT NAME=NukePan_02 FILE=PANFIRE\NukePan_02.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_03 FILE=PANFIRE\NukePan_03.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_04 FILE=PANFIRE\NukePan_04.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_05 FILE=PANFIRE\NukePan_05.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_06 FILE=PANFIRE\NukePan_06.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_07 FILE=PANFIRE\NukePan_07.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_08 FILE=PANFIRE\NukePan_08.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_09 FILE=PANFIRE\NukePan_09.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_10 FILE=PANFIRE\NukePan_10.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_11 FILE=PANFIRE\NukePan_11.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_12 FILE=PANFIRE\NukePan_12.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_13 FILE=PANFIRE\NukePan_13.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_14 FILE=PANFIRE\NukePan_14.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_15 FILE=PANFIRE\NukePan_15.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_16 FILE=PANFIRE\NukePan_16.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_17 FILE=PANFIRE\NukePan_17.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_18 FILE=PANFIRE\NukePan_18.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_19 FILE=PANFIRE\NukePan_19.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_20 FILE=PANFIRE\NukePan_20.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_21 FILE=PANFIRE\NukePan_21.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_22 FILE=PANFIRE\NukePan_22.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_23 FILE=PANFIRE\NukePan_23.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_24 FILE=PANFIRE\NukePan_24.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_25 FILE=PANFIRE\NukePan_25.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_26 FILE=PANFIRE\NukePan_26.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_27 FILE=PANFIRE\NukePan_27.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_28 FILE=PANFIRE\NukePan_28.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_29 FILE=PANFIRE\NukePan_29.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_30 FILE=PANFIRE\NukePan_30.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_31 FILE=PANFIRE\NukePan_31.bmp GROUP=Pan FLAGS=2
#exec TEXTURE IMPORT NAME=NukePan_32 FILE=PANFIRE\NukePan_32.bmp GROUP=Pan FLAGS=2

var byte PanC;
var() texture PanningTextures[32];	//Panning textures
var() float PanSpeed;			//Pan speed or rate

simulated function PostBeginPlay()
{
	PlayAnim('Rise', (4 / LifeSpan), 0.0);
	if (PanSpeed != 0)
		SetTimer(1/Abs(PanSpeed), True);
}

simulated function Timer()
{
	if (PanSpeed > 0)
	{
		PanC++;
		if (PanC > 31)
			PanC = 0;
	}
	else
	{
		if (PanC == 0)
			PanC = 32;
		PanC--;
	}

	MultiSkins[1] = PanningTextures[PanC];
}

simulated function Tick( float DeltaTime)
{
	if (LifeSpan < 2.0)
		ScaleGlow = LifeSpan * Default.ScaleGlow / 2;
}

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=NukeColumn
	LifeSpan=14.000000
	RemoteRole=ROLE_SimulatedProxy
	Style=STY_Translucent
	DrawScale=1.000000
	bUnlit=True
	ScaleGlow=2.000000
	PanSpeed=20.000000
	PanningTextures(0)=NukePan_01
	PanningTextures(1)=NukePan_02
	PanningTextures(2)=NukePan_03
	PanningTextures(3)=NukePan_04
	PanningTextures(4)=NukePan_05
	PanningTextures(5)=NukePan_06
	PanningTextures(6)=NukePan_07
	PanningTextures(7)=NukePan_08
	PanningTextures(8)=NukePan_09
	PanningTextures(9)=NukePan_10
	PanningTextures(10)=NukePan_11
	PanningTextures(11)=NukePan_12
	PanningTextures(12)=NukePan_13
	PanningTextures(13)=NukePan_14
	PanningTextures(14)=NukePan_15
	PanningTextures(15)=NukePan_16
	PanningTextures(16)=NukePan_17
	PanningTextures(17)=NukePan_18
	PanningTextures(18)=NukePan_19
	PanningTextures(19)=NukePan_20
	PanningTextures(20)=NukePan_21
	PanningTextures(21)=NukePan_22
	PanningTextures(22)=NukePan_23
	PanningTextures(23)=NukePan_24
	PanningTextures(24)=NukePan_25
	PanningTextures(25)=NukePan_26
	PanningTextures(26)=NukePan_27
	PanningTextures(27)=NukePan_28
	PanningTextures(28)=NukePan_29
	PanningTextures(29)=NukePan_30
	PanningTextures(30)=NukePan_31
	PanningTextures(31)=NukePan_32
}
