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 00106 00107 |
//============================================================================= // FX_Turret_IonCannon_LaserBeam //============================================================================= // Created by Laurent Delayen (C) 2003 Epic Games //============================================================================= class FX_Turret_IonCannon_LaserBeam extends Emitter notplaceable; var vector StartLocation, EndLocation; var float BeamSize; var WA_Turret_IonCannon IonCannonOwner; replication { unreliable if ( Role == ROLE_Authority && bNetInitial && bNetOwner ) IonCannonOwner; unreliable if ( Role == ROLE_Authority && bNetDirty && !bNetOwner ) StartLocation, EndLocation; } function PostBeginPlay() { super.PostBeginPlay(); SetWeaponOwner(); } simulated function Tick(float DeltaTime) { UpdateBeamLocation(); if ( Level.NetMode != NM_DedicatedServer ) { UpdateLaserBeamFX( DeltaTime ); SetLocation( StartLocation ); SetRotation( Rotator(EndLocation - StartLocation) ); } } simulated function SetWeaponOwner() { IonCannonOwner = WA_Turret_IonCannon(Owner); } simulated function UpdateBeamLocation() { if ( IonCannonOwner != None && ( Role==Role_Authority || IonCannonOwner.CannonPawn.IsLocallyControlled()) ) IonCannonOwner.UpdateLaserBeamLocation(StartLocation, EndLocation); } simulated function UpdateLaserBeamFX( float DeltaTime ) { local float Dist; Dist = VSize( EndLocation - StartLocation ); BeamEmitter(Emitters[0]).BeamDistanceRange.Min = Dist; BeamEmitter(Emitters[0]).BeamDistanceRange.Max = Dist; // Beam Growing effect if ( DeltaTime < 1 ) BeamSize = FMin( BeamSize + DeltaTime, 2.f); BeamEmitter(Emitters[0]).StartSizeRange.X.Min = BeamSize * 35.f; BeamEmitter(Emitters[0]).StartSizeRange.X.Max = BeamSize * 40.f; } //============================================================================= // defaultproperties //============================================================================= defaultproperties { Begin Object Class=BeamEmitter Name=BeamEmitter2 BeamDistanceRange=(Min=500.000000,Max=500.000000) DetermineEndPointBy=PTEP_Distance RotatingSheets=3 LowFrequencyPoints=2 HighFrequencyPoints=2 UseColorScale=Wahr AutomaticInitialSpawning=Falsch ColorScale(0)=(Color=(B=16,G=16,R=220)) ColorScale(1)=(RelativeTime=1.000000,Color=(B=16,G=16,R=180)) Opacity=0.330000 CoordinateSystem=PTCS_Relative MaxParticles=1 StartSizeRange=(X=(Min=30.000000,Max=35.000000)) InitialParticlesPerSecond=2000.000000 Texture=Texture'EpicParticles.Beams.WhiteStreak01aw' SecondsBeforeInactive=0.000000 LifetimeRange=(Min=0.080000,Max=0.160000) StartVelocityRange=(X=(Min=0.001000,Max=0.001000)) End Object Emitters(0)=BeamEmitter'UT2k4AssaultFull.FX_Turret_IonCannon_LaserBeam.BeamEmitter2' bNoDelete=Falsch bAlwaysRelevant=Wahr bReplicateInstigator=Wahr bSkipActorPropertyReplication=Wahr bOnlyDirtyReplication=Wahr RemoteRole=ROLE_SimulatedProxy NetUpdateFrequency=15.000000 bDirectional=Wahr } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |