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 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 |
class ONSHoverBikeHoverDust extends Emitter; #exec OBJ LOAD FILE=..\Textures\AW-2004Particles.utx var bool bDustActive; simulated function SetDustColor(color DustColor) { local color DustColorZeroAlpha, BlackColor; // Ignore if dust color if black. if(DustColor.R == 0 && DustColor.G == 0 && DustColor.B == 0) { DustColor.R=128; DustColor.G=100; DustColor.B=64; } // return; DustColor.A = 255; DustColorZeroAlpha = DustColor; DustColorZeroAlpha.A = 0; BlackColor.R = 0; BlackColor.G = 0; BlackColor.B = 0; BlackColor.A = 0; Emitters[0].ColorScale[0].Color = DustColorZeroAlpha; Emitters[0].ColorScale[1].Color = DustColor; Emitters[0].ColorScale[2].Color = DustColor; Emitters[0].ColorScale[3].Color = DustColorZeroAlpha; Emitters[1].ColorScale[0].Color = BlackColor; Emitters[1].ColorScale[1].Color = DustColor; Emitters[1].ColorScale[2].Color = DustColor; Emitters[1].ColorScale[3].Color = BlackColor; } simulated function UpdateHoverDust(bool bActive, float HoverHeight) { local float Force; Force = 1 - HoverHeight; if(!bActive) { Emitters[0].ParticlesPerSecond = 0; Emitters[0].InitialParticlesPerSecond = 0; Emitters[1].Disabled = true; return; } else { Emitters[0].ParticlesPerSecond = 100; Emitters[0].InitialParticlesPerSecond = 100; Emitters[0].AllParticlesDead = false; Emitters[1].Disabled = (Level.DetailMode == DM_Low); } // Dust Emitters[0].StartVelocityRadialRange.Min = -650 + (Force * -100); Emitters[0].StartVelocityRadialRange.Max = Emitters[0].StartVelocityRadialRange.Min - 100; Emitters[0].StartLocationPolarRange.Z.Min = 10 + (HoverHeight * 30); Emitters[0].StartLocationPolarRange.Z.Max = Emitters[0].StartLocationPolarRange.Z.Min; // Rings Emitters[1].StartSizeRange.X.Min = 30 + (HoverHeight * 40); Emitters[1].StartSizeRange.X.Max = Emitters[1].StartSizeRange.X.Min + 20; Emitters[1].Opacity = FClamp(2.5 * Force, 0, 0.8); } defaultproperties { Begin Object Class=SpriteEmitter Name=SpriteEmitter0 UseColorScale=True RespawnDeadParticles=False SpinParticles=True UseSizeScale=True UseRegularSizeScale=False UniformSize=True AutomaticInitialSpawning=False BlendBetweenSubdivisions=True UseRandomSubdivision=True UseVelocityScale=True Acceleration=(Z=500.000000) ColorScale(0)=(Color=(B=96,G=128,R=164)) ColorScale(1)=(RelativeTime=0.200000,Color=(B=96,G=128,R=164,A=255)) ColorScale(2)=(RelativeTime=0.500000,Color=(B=64,G=100,R=128,A=255)) ColorScale(3)=(RelativeTime=1.000000,Color=(B=68,G=104,R=125)) FadeOutStartTime=0.500000 FadeInEndTime=0.350000 MaxParticles=50 StartLocationShape=PTLS_Polar StartLocationPolarRange=(X=(Min=16384.000000,Max=16384.000000),Y=(Max=65536.000000),Z=(Min=20.000000,Max=20.000000)) UseRotationFrom=PTRS_Actor SizeScale(0)=(RelativeSize=0.300000) SizeScale(1)=(RelativeTime=1.000000,RelativeSize=1.000000) StartSizeRange=(X=(Min=50.000000,Max=90.000000),Y=(Min=0.000000,Max=0.000000),Z=(Min=0.000000,Max=0.000000)) ParticlesPerSecond=50.000000 InitialParticlesPerSecond=50.000000 DrawStyle=PTDS_AlphaBlend Texture=Texture'AW-2004Particles.Weapons.SmokePanels2' TextureUSubdivisions=4 TextureVSubdivisions=4 LifetimeRange=(Min=0.500000,Max=0.800000) StartVelocityRange=(X=(Min=70.000000,Max=70.000000)) StartVelocityRadialRange=(Min=-600.000000,Max=-800.000000) GetVelocityDirectionFrom=PTVD_AddRadial VelocityScale(0)=(RelativeVelocity=(X=1.000000,Y=1.000000,Z=1.000000)) VelocityScale(1)=(RelativeTime=0.200000,RelativeVelocity=(X=0.350000,Y=0.350000,Z=0.350000)) VelocityScale(2)=(RelativeTime=0.500000,RelativeVelocity=(X=0.100000,Y=0.100000,Z=0.100000)) VelocityScale(3)=(RelativeTime=1.000000) End Object Emitters(0)=SpriteEmitter'Onslaught.ONSHoverBikeHoverDust.SpriteEmitter0' Begin Object Class=SpriteEmitter Name=SpriteEmitter1 UseDirectionAs=PTDU_Normal ProjectionNormal=(X=1.000000,Z=0.000000) UseColorScale=True SpinParticles=True UseSizeScale=True UseRegularSizeScale=False UniformSize=True ColorScale(1)=(RelativeTime=0.450000,Color=(B=64,G=100,R=128)) ColorScale(2)=(RelativeTime=0.550000,Color=(B=64,G=100,R=128)) ColorScale(3)=(RelativeTime=1.000000) Opacity=0.750000 CoordinateSystem=PTCS_Relative MaxParticles=3 StartLocationOffset=(Z=6.000000) StartSpinRange=(X=(Max=1.000000)) SizeScale(0)=(RelativeSize=0.500000) SizeScale(1)=(RelativeTime=1.000000,RelativeSize=2.500000) StartSizeRange=(X=(Min=50.000000,Max=65.000000)) Texture=Texture'AW-2004Particles.Energy.AirBlast' LifetimeRange=(Min=0.300000,Max=0.300000) End Object Emitters(1)=SpriteEmitter'Onslaught.ONSHoverBikeHoverDust.SpriteEmitter1' CullDistance=8000.000000 bNoDelete=False bHardAttach=True } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |