Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Botpack.IntroDude


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
//=============================================================================
// IntroDude.
//=============================================================================
class IntroDude expands decoration;

#exec MESH IMPORT MESH=IntroDude ANIVFILE=MODELS\IntroDude_a.3d DATAFILE=MODELS\IntroDude_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=IntroDude X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=IntroDude SEQ=All   STARTFRAME=0 NUMFRAMES=200
#exec MESH SEQUENCE MESH=IntroDude SEQ=stand STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=IntroDude SEQ=shake STARTFRAME=0 NUMFRAMES=200

#exec MESHMAP NEW   MESHMAP=IntroDude MESH=IntroDude
#exec MESHMAP SCALE MESHMAP=IntroDude X=0.1 Y=0.1 Z=0.2

#exec TEXTURE IMPORT NAME=IntroDude1 FILE=Textures\IntroD1.PCX GROUP=Skins
#exec TEXTURE IMPORT NAME=IntroDude2 FILE=Textures\IntroD2.PCX GROUP=Skins
#exec TEXTURE IMPORT NAME=IntroDude3 FILE=Textures\IntroD3.PCX GROUP=Skins
#exec TEXTURE IMPORT NAME=IntroDude4 FILE=Textures\IntroD4.PCX GROUP=Skins

#exec MESHMAP SETTEXTURE MESHMAP=IntroDude NUM=0 TEXTURE=IntroDude1
#exec MESHMAP SETTEXTURE MESHMAP=IntroDude NUM=1 TEXTURE=IntroDude2
#exec MESHMAP SETTEXTURE MESHMAP=IntroDude NUM=2 TEXTURE=IntroDude3
#exec MESHMAP SETTEXTURE MESHMAP=IntroDude NUM=3 TEXTURE=IntroDude4


Auto State IntroDude
{

function Trigger( actor Other, pawn EventInstigator )
{
    if (AnimSequence=='stand')
        GotoState( 'IntroDude','shake');
    else
        GotoState( 'IntroDude','stand');
}

shake: 
    Disable('Trigger');
    PlayAnim('shake',1);
    FinishAnim();
    Enable('Trigger');  
    Stop;

stand:
    Disable('Trigger');
    PlayAnim('stand',1);
    FinishAnim();
    Sleep(1.0);
    Enable('Trigger');
    Stop;
    
Begin:
    PlayAnim('stand',0.4);
}

defaultproperties
{
     bStatic=False
     DrawType=DT_Mesh
     Mesh=LodMesh'Botpack.IntroDude'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:14.000 - Creation time: Fr 7.6.2013 13:15:47.940 - Created with UnCodeX