Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
//============================================================================= // BulletHit. //============================================================================= class BulletHit expands 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=MODELS\misc.PCX GROUP=Skins #exec TEXTURE IMPORT NAME=Jmisc2 FILE=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; auto state Explode { Begin: 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 ); FinishAnim (); Destroy(); } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |