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

UnrealI.BulletHit


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
//=============================================================================
// BulletHit.
//=============================================================================
class BulletHit extends Effects;

#exec MESH IMPORT MESH=BulletHitM ANIVFILE=MODELS\Burst4_a.3D DATAFILE=MODELS\Burst4_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=BulletHitM X=0 Y=0 Z=0 YAW=64 ROLL=64 
#exec MESH SEQUENCE MESH=BulletHitM SEQ=All      STARTFRAME=0   NUMFRAMES=32
#exec MESH SEQUENCE MESH=BulletHitM SEQ=Bounce   STARTFRAME=0   NUMFRAMES=11
#exec MESH SEQUENCE MESH=BulletHitM SEQ=Fall     STARTFRAME=11  NUMFRAMES=7
#exec MESH SEQUENCE MESH=BulletHitM SEQ=Explo    STARTFRAME=18  NUMFRAMES=5
#exec MESH SEQUENCE MESH=BulletHitM SEQ=Still    STARTFRAME=23  NUMFRAMES=2
#exec MESH SEQUENCE MESH=BulletHitM SEQ=Bubble   STARTFRAME=25  NUMFRAMES=7
#exec TEXTURE IMPORT NAME=Jmisc1 FILE=..\unrealshare\MODELS\misc.PCX GROUP=Skins
#exec TEXTURE IMPORT NAME=Jmisc2 FILE=..\unrealshare\MODELS\misc2.PCX GROUP=Skins
#exec MESHMAP SCALE MESHMAP=BulletHitM X=0.06 Y=0.06 Z=0.12 YAW=128
#exec MESHMAP SETTEXTURE MESHMAP=BulletHitM NUM=0 TEXTURE=Jmisc1

var name AnimType ;
var rotator MyRotation;

Simulated Function PostBeginPlay()
{
    Super.PostBeginPlay();
    if ( Level.NetMode != NM_DedicatedServer )
    {
        if (AnimType=='Bounce') SetPhysics(PHYS_None);
        if (AnimType=='Bounce' || AnimType=='Explo') {
            MyRotation = Rotation;
            MyRotation.Yaw = Frand()*65535;
            MyRotation.Pitch += -32768;
            SetRotation(MyRotation);
        }
        if (AnimType=='Fall') {
            MyRotation = Rotation;
            MyRotation.Yaw += Frand()*8000-4000;
            SetRotation(MyRotation);
        }
        PlaySound (EffectSound1);   
        PlayAnim   ( AnimType, 0.5 );
    }
}

simulated function AnimEnd()
{
    Destroy();
}

defaultproperties
{
     RemoteRole=ROLE_SimulatedProxy
     DrawType=DT_Mesh
     Mesh=LodMesh'UnrealI.BulletHitM'
     AmbientGlow=64
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:27:50.000 - Creation time: za 22-4-2006 13:29:26.890 - Created with UnCodeX