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 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 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 |
//============================================================================= // PROJ_TurretSkaarjPlasma //============================================================================= // Created by Laurent Delayen // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================= class PROJ_TurretSkaarjPlasma extends Projectile; var Emitter FX; var class<Emitter> PlasmaClass; var FX_PlasmaImpact FX_Impact; simulated function PostBeginPlay() { super.PostBeginPlay(); Velocity = Speed * Vector(Rotation); if ( Level.NetMode != NM_DedicatedServer ) SetupProjectile(); } simulated function PostNetBeginPlay() { Super.PostNetBeginPlay(); Acceleration = Velocity * 5; } simulated function Destroyed() { if ( FX != None ) FX.Destroy(); super.Destroyed(); } simulated function SetupProjectile() { FX = Spawn(PlasmaClass, Self,, Location, Rotation); if ( FX != None ) FX.SetBase( Self ); } simulated function Explode(vector HitLocation, vector HitNormal) { if ( EffectIsRelevant(Location, false) ) SpawnExplodeFX(HitLocation, HitNormal); PlaySound(Sound'WeaponSounds.BioRifle.BioRifleGoo2'); Destroy(); } simulated function SpawnExplodeFX(vector HitLocation, vector HitNormal) { FX_Impact = Spawn(class'FX_PlasmaImpact',,, HitLocation + HitNormal * 2, rotator(HitNormal)); } simulated function ProcessTouch (Actor Other, vector HitLocation) { if ( Instigator != None && (Other == Instigator) ) return; if (Other == Owner) return; if ( !Other.IsA('Projectile') || Other.bProjTarget ) { if ( Role == ROLE_Authority ) { if ( Instigator == None || Instigator.Controller == None ) Other.SetDelayedDamageInstigatorController( InstigatorController ); Other.TakeDamage(Damage, Instigator, HitLocation, MomentumTransfer * Normal(Velocity), MyDamageType); } Explode(HitLocation, -Normal(Velocity)); } } //============================================================================= // defaultproperties //============================================================================= defaultproperties { PlasmaClass=Class'UT2k4AssaultFull.FX_SpaceFighter_SkaarjPlasma' Speed=8000.000000 MaxSpeed=100000.000000 Damage=45.000000 MomentumTransfer=5000.000000 MyDamageType=Class'UT2k4AssaultFull.DamTypeBallTurretPlasma' DrawType=DT_None AmbientSound=Sound'WeaponSounds.LinkGun.LinkGunProjectile' LifeSpan=1.400000 SoundVolume=255 SoundRadius=50.000000 ForceType=FT_Constant ForceRadius=30.000000 ForceScale=5.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |