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 |
//============================================================================= // projectileEMP.uc -- spawned by weaponEnergyRifle AltFire(), and projectileGrenadeEMP // $Author: Aleiby $ // $Date: 11/10/02 8:43p $ // $Revision: 19 $ //============================================================================= class projectileEMP extends U2Projectile; #exec OBJ LOAD File=..\System\ParticleRes\ER_Alt_Projectile_volatile.u var() float RadiusPerSecond; var() float MaxDamageRadius; var ParticleSalamander Effect; simulated event PostBeginPlay() { Super.PostBeginPlay(); if( bDeleteMe ) return; if( Level.NetMode!=NM_DedicatedServer ) { Effect = ParticleSalamander( class'ParticleGenerator'.static.CreateNew( Self, ParticleSalamander'ER_Alt_Projectile_volatile.ParticleSalamander0', Location ) ); Effect.Trigger(Self,Instigator); Effect.SetBase( Self ); } } simulated event Destroyed() { if( Effect!=None ) { Effect.Destroy(); Effect = None; } Super.Destroyed(); } simulated event Tick( float DeltaTime ) { DamageRadius = FMin( RadiusPerSecond * GetLifeSeconds(), MaxDamageRadius ); // if( DamageRadius > 0.0 ) // HurtRadius( Damage * DeltaTime, DamageRadius, MyDamageType, 0.0, Location ); } function TakeDamage( int Damage, Pawn InstigatedBy, vector HitLocation, vector Momentum, class<DamageType> DamageType ) { if( DamageType==class'DamageTypeEnergyRifle' ) Super.TakeDamage( Damage, InstigatedBy, HitLocation, Momentum, DamageType ); } /* simulated function ProcessTouch( Actor Other, vector HitLocation ) { // ignore actors } simulated event HitWallEx( CheckResult Hit ) { // ignore walls } simulated function ExplodeEx( CheckResult Hit ) { // do nothing } */ defaultproperties { RadiusPerSecond=60.000000 MaxDamageRadius=120.000000 ExplosionEffect=Class'U2Weapons.ER_EMPExplosion' ShakeRadius=1024.000000 ShakeMagnitude=30.000000 ShakeDuration=1.000000 bNoFalloff=true speed=800.000000 MaxSpeed=800.000000 Damage=180.000000 DamageRadius=160.000000 MyDamageType=Class'U2.DamageTypeEMP' LifeSpan=2.000000 AmbientSound=Sound'U2WeaponsA.EnergyRifle.ER_EMP' SoundRadius=80.000000 SoundVolume=218 UseReticleOnEvents(0)="UseReticleText" UseReticleOnEvents(1)="UseReticleCorners" UseReticleOnEvents(2)="UseReticleTopBars" ProximityReticleOnEvents(0)="ProximityReticleCorners" ProximityReticleOnEvents(1)="ProximityReticleTopBars" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |