Core.Object | +--Engine.Actor | +--Engine.Projectile | +--UnrealI.ForceFieldProj
int
Charge
void
PostBeginPlay()
Touch(Actor Other)
00001 //============================================================================= 00002 // ForceFieldProj. 00003 //============================================================================= 00004 class ForceFieldProj extends Projectile; 00005 00006 #exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Pickups\FFIELDl2.WAV" NAME="ffieldl2" GROUP="Pickups" 00007 00008 #exec MESH IMPORT MESH=ForceFieldM ANIVFILE=MODELS\forcef_a.3D DATAFILE=MODELS\forcef_d.3D X=0 Y=0 Z=0 00009 #exec MESH ORIGIN MESH=ForceFieldM X=0 Y=0 Z=0 YAW=64 00010 #exec MESH SEQUENCE MESH=ForceFieldM SEQ=All STARTFRAME=0 NUMFRAMES=19 00011 #exec MESH SEQUENCE MESH=ForceFieldM SEQ=Grow STARTFRAME=0 NUMFRAMES=10 00012 #exec MESH SEQUENCE MESH=ForceFieldM SEQ=Spin STARTFRAME=10 NUMFRAMES=9 00013 #exec OBJ LOAD FILE=..\UnrealShare\Textures\fireeffect10.utx PACKAGE=UNREALI.Effect10 00014 #exec MESHMAP SCALE MESHMAP=ForceFieldM X=0.08 Y=0.08 Z=0.16 00015 #exec MESHMAP SETTEXTURE MESHMAP=ForceFieldM NUM=1 TEXTURE=Unreali.Effect10.FireEffect10 00016 00017 var int Charge; 00018 00019 function PostBeginPlay() 00020 { 00021 Super.PostBeginPlay(); 00022 PlaySound(SpawnSound); 00023 SetCollision(True,True,True); 00024 PlayAnim('Grow',0.2); 00025 if (Charge<0) Charge = 10; 00026 } 00027 00028 Auto State Activated 00029 { 00030 function Touch(Actor Other) 00031 { 00032 PlaySound(ImpactSound); 00033 } 00034 00035 Begin: 00036 FinishAnim(); 00037 Sleep(Charge/10); 00038 TweenAnim('All',0.5); 00039 FinishAnim(); 00040 Destroy(); 00041 } 00042 00043 defaultproperties 00044 { 00045 bNetTemporary=False 00046 Physics=PHYS_None 00047 RemoteRole=ROLE_SimulatedProxy 00048 AmbientSound=Sound'UnrealI.Pickups.ffieldl2' 00049 Mesh=LodMesh'UnrealI.ForceFieldM' 00050 bUnlit=True 00051 bCollideWhenPlacing=True 00052 SoundRadius=29 00053 SoundVolume=67 00054 CollisionRadius=30.000000 00055 CollisionHeight=50.000000 00056 bBlockActors=True 00057 bBlockPlayers=True 00058 }