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

UnrealShare.Arc


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
//=============================================================================
// Arc.
//=============================================================================
class Arc expands Projectile;

var() texture SpriteAnim[8];

#exec TEXTURE IMPORT NAME=Arc1 FILE=MODELS\proa1.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc2 FILE=MODELS\proa2.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc3 FILE=MODELS\proa3.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc4 FILE=MODELS\proa4.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc5 FILE=MODELS\proa5.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc6 FILE=MODELS\proa6.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc7 FILE=MODELS\proa7.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=Arc8 FILE=MODELS\proa8.pcx GROUP=Effects


#exec MESH IMPORT MESH=arcM ANIVFILE=MODELS\cros_s_a.3D DATAFILE=MODELS\cros_s_d.3D X=0 Y=0 Z=0  ZEROTEX=1
#exec MESH ORIGIN MESH=arcM X=0 Y=0 Z=0 YAW=64
#exec MESH SEQUENCE MESH=arcM SEQ=All  STARTFRAME=0  NUMFRAMES=1
#exec MESH SEQUENCE MESH=arcM SEQ=Still  STARTFRAME=0   NUMFRAMES=1
#exec MESHMAP SCALE MESHMAP=arcM X=0.1 Y=0.1 Z=0.2
#exec MESHMAP SETTEXTURE MESHMAP=arcM NUM=0 TEXTURE=Arc1

var int i;
var vector X,Y,Z;

    function PreBeginPlay()
    {
        Super.PreBeginPlay();
        i=0;
        GetAxes(Instigator.ViewRotation,X,Y,Z); 
        Velocity = VSize(Instigator.Velocity)*X + Vector(Rotation) * speed;
    }

    simulated function Tick(float DeltaTime)
    {
        if ( Level.NetMode != NM_DedicatedServer )
            Skin = SpriteAnim[i];
        i++;
        if (i==8) i=0;
    }

    simulated function HitWall( vector HitNormal, actor Wall )
    {
        Destroy();
    }

defaultproperties
{
     SpriteAnim(0)=Texture'UnrealShare.Effects.Arc1'
     SpriteAnim(1)=Texture'UnrealShare.Effects.Arc2'
     SpriteAnim(2)=Texture'UnrealShare.Effects.Arc3'
     SpriteAnim(3)=Texture'UnrealShare.Effects.Arc4'
     SpriteAnim(4)=Texture'UnrealShare.Effects.Arc5'
     SpriteAnim(5)=Texture'UnrealShare.Effects.Arc6'
     SpriteAnim(6)=Texture'UnrealShare.Effects.Arc7'
     SpriteAnim(7)=Texture'UnrealShare.Effects.Arc8'
     Skin=Texture'UnrealShare.Effects.Arc1'
     Mesh=Mesh'UnrealShare.arcM'
     bMeshCurvy=False
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:51.087 - Created with UnCodeX