Botpack
Class IntroBoss

source: e:\games\UnrealTournament\Botpack\Classes\IntroBoss.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--Botpack.IntroBoss
Direct Known Subclasses:None

class IntroBoss
extends Engine.Decoration

//============================================================================= // IntroBoss. //=============================================================================
States
IntroBoss
State IntroBoss Function Summary
 void Trigger(Actor Other, Pawn EventInstigator)



Source Code


00001	//=============================================================================
00002	// IntroBoss.
00003	//=============================================================================
00004	class IntroBoss expands Decoration;
00005	
00006	#exec MESH IMPORT MESH=IntroBoss ANIVFILE=MODELS\IntroBoss_a.3d DATAFILE=MODELS\IntroBoss_d.3d X=0 Y=0 Z=0
00007	#exec MESH ORIGIN MESH=IntroBoss X=0 Y=0 Z=0
00008	
00009	#exec MESH SEQUENCE MESH=IntroBoss SEQ=All   STARTFRAME=0 NUMFRAMES=30
00010	#exec MESH SEQUENCE MESH=IntroBoss SEQ=wave  STARTFRAME=0 NUMFRAMES=30
00011	#exec MESH SEQUENCE MESH=IntroBoss SEQ=stand STARTFRAME=0 NUMFRAMES=1
00012	
00013	#exec MESHMAP NEW   MESHMAP=IntroBoss MESH=IntroBoss
00014	#exec MESHMAP SCALE MESHMAP=IntroBoss X=0.1 Y=0.1 Z=0.2
00015	
00016	#exec TEXTURE IMPORT NAME=IntroBoss1 FILE=Textures\IntroB1.PCX GROUP=Skins
00017	#exec TEXTURE IMPORT NAME=IntroBoss2 FILE=Textures\IntroB2.PCX GROUP=Skins
00018	#exec TEXTURE IMPORT NAME=IntroBoss3 FILE=Textures\IntroB3.PCX GROUP=Skins
00019	#exec TEXTURE IMPORT NAME=IntroBoss4 FILE=Textures\IntroB4.PCX GROUP=Skins
00020	
00021	#exec MESHMAP SETTEXTURE MESHMAP=IntroBoss NUM=0 TEXTURE=IntroBoss1
00022	#exec MESHMAP SETTEXTURE MESHMAP=IntroBoss NUM=1 TEXTURE=IntroBoss2
00023	#exec MESHMAP SETTEXTURE MESHMAP=IntroBoss NUM=2 TEXTURE=IntroBoss3
00024	#exec MESHMAP SETTEXTURE MESHMAP=IntroBoss NUM=3 TEXTURE=IntroBoss4
00025	
00026	
00027	Auto State IntroBoss
00028	{
00029		function Trigger( actor Other, pawn EventInstigator )
00030		{
00031			if (AnimSequence=='stand')
00032				GotoState( 'IntroBoss','wave');
00033			else
00034				GotoState( 'IntroBoss','stand');
00035		}
00036	
00037	wave: 
00038		Disable('Trigger');
00039		PlayAnim('wave',0.5);
00040		FinishAnim();
00041		Enable('Trigger');	
00042		Stop;
00043	
00044	stand:
00045		Disable('Trigger');
00046		PlayAnim('stand',1);
00047		FinishAnim();
00048		Sleep(1.0);
00049		Enable('Trigger');
00050		Stop;
00051		
00052	Begin:
00053		PlayAnim('stand',0.4);
00054	}
00055	
00056	defaultproperties
00057	{
00058	     DrawType=DT_Mesh
00059	     Mesh=LodMesh'Botpack.IntroBoss'
00060	}

End Source Code