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

XEffects.TankVictim


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
00064
00065
00066
class TankVictim extends Actor
    placeable;

#exec TEXTURE   IMPORT      NAME=TankVictimTex  FILE=textures\tank_victim.tga LODSET=3 DXT=3 MIPS=1

#exec ANIM  IMPORT      ANIM=TankVictimAnims ANIMFILE=models\tank_victim.PSA COMPRESS=1
#exec ANIM  DIGEST      ANIM=TankVictimAnims VERBOSE USERAWINFO

#exec MESH  MODELIMPORT MESH=TankVictimMesh MODELFILE=models\tank_victim.PSK RIGID=1
#exec MESH  ORIGIN      MESH=TankVictimMesh X=0 Y=0 Z=0 YAW=0 PITCH=0 ROLL=0
#exec MESH  SCALE       MESH=TankVictimMesh X=1.0 Y=1.0 Z=1.0
#exec MESH  DEFAULTANIM MESH=TankVictimMesh ANIM=TankVictimAnims
#exec MESH  SETTEXTURE  MESH=TankVictimMesh NUM=0 TEXTURE=TankVictimTex

auto state SleepS
{
    function BeginState()
    {
        SimAnim.AnimSequence = 'Sleep';
        SimAnim.AnimRate = 155;
        SimAnim.bAnimLoop = true;
        SimAnim.TweenRate = 16;
        LoopAnim('Sleep',,0.25);
    }

    function Trigger( Actor Other, Pawn EventInstigator )
    {
        SimAnim.AnimSequence = 'WakeUp';
        SimAnim.bAnimLoop = false;
        SimAnim.TweenRate = 40;
        PlayAnim('WakeUp');
        GotoState('Wake');
    }
}

state Wake
{
    function AnimEnd(int Channel)
    {
        SimAnim.AnimSequence = 'Idle';
        SimAnim.bAnimLoop = true;
        SimAnim.TweenRate = 40;
        LoopAnim('Idle',,0.1);
        SetTimer(15, false);
        GotoState('Ready');
    }
}

state Ready
{
    function Timer()
    {
        GotoState('SleepS');
    }
}

defaultproperties
{
     DrawType=DT_Mesh
     bStasis=Wahr
     bReplicateAnimations=Wahr
     Mesh=SkeletalMesh'XEffects.TankVictimMesh'
     CollisionRadius=0.000000
     CollisionHeight=0.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:42.000 - Creation time: Mo 16.4.2007 11:20:54.640 - Created with UnCodeX