class CyBotZUp expands CyBotGuns;

#exec MESH IMPORT MESH=CyBotZUp ANIVFILE=MODELS\CyBotZUp_a.3d DATAFILE=MODELS\CyBotZUp_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=CyBotZUp STRENGTH=0
#exec MESH ORIGIN MESH=CyBotZUp X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=CyBotZUp SEQ=All STARTFRAME=0 NUMFRAMES=12
#exec MESH SEQUENCE MESH=CyBotZUp SEQ=Closed STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=CyBotZUp SEQ=Openned STARTFRAME=9 NUMFRAMES=1
#exec MESH SEQUENCE MESH=CyBotZUp SEQ=Openning STARTFRAME=0 NUMFRAMES=10 RATE=5.0
#exec MESH SEQUENCE MESH=CyBotZUp SEQ=Fire STARTFRAME=9 NUMFRAMES=3 RATE=6.0

#exec MESHMAP NEW MESHMAP=CyBotZUp MESH=CyBotZUp
#exec MESHMAP SCALE MESHMAP=CyBotZUp X=0.0375 Y=0.0375 Z=0.075

#exec TEXTURE IMPORT NAME=Sk_CybotZ FILE=SKINS\Sk_CybotZ.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec MESHMAP SETTEXTURE MESHMAP=CyBotZUp NUM=1 TEXTURE=Sk_CybotZ

#exec TEXTURE IMPORT NAME=CyBase FILE=SKINS\CyBase.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec MESHMAP SETTEXTURE MESHMAP=CyBotZUp NUM=2 TEXTURE=CyBase

#exec TEXTURE IMPORT NAME=NanoDefault FILE=SKINS\NanoDefault.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec MESHMAP SETTEXTURE MESHMAP=CyBotZUp NUM=3 TEXTURE=NanoDefault

#exec TEXTURE IMPORT NAME=TranslucentInvisible FILE=SKINS\TranslucentInvisible.bmp GROUP=Skins FLAGS=2 LODSET=2
#exec MESHMAP SETTEXTURE MESHMAP=CyBotZUp NUM=4 TEXTURE=TranslucentInvisible

var CyBotZUpOver CyOv;

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

	if (Class'NWMutator'.default.bCybotID_InTeamGames && Level.Game.IsA('TeamGamePlus') && !Level.Game.IsA('MonsterHunt'))
		MultiSkins[3] = TeamNano[Instigator.PlayerReplicationInfo.Team];
}


simulated function AnimEnd()
{
	if (!bReady)
	{
		AmbientSound = Sound'Z_Amb';
		SpawnOv();
		bFixedRotationDir = True;
		bRotateToDesired = True;
		bReady = True;
	}
}

simulated function Destroyed()
{
	if (CyOv != None)
		CyOv.Destroy();

	Super.Destroyed();
}

function SpawnOv()
{
	CyOv = Spawn(Class'CyBotZUpOver', Self);

	if (Class'NWMutator'.default.bCybotID_InTeamGames && Level.Game.IsA('TeamGamePlus') && !Level.Game.IsA('MonsterHunt'))
		CyOv.MultiSkins[1] = TeamFX[Instigator.PlayerReplicationInfo.Team];

	if (Class'NWMutator'.default.bCybotID_InTeamGames && Level.Game.IsA('TeamGamePlus') && !Level.Game.IsA('MonsterHunt'))
		MultiSkins[4] = TeamFX[Instigator.PlayerReplicationInfo.Team];
	else
		MultiSkins[4] = Texture'N_CybotFX';
}

defaultproperties
{
	DrawType=DT_Mesh
	Mesh=CyBotZUp
	FireRate=2.000000
	SensorRadius=2048.000000
	CybotProj=Class'ZY_Proj'
	ZPositive=True
	FireSound=Cybot_ZYFire
}
