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 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 00240 00241 00242 00243 00244 00245 00246 00247 00248 00249 00250 00251 00252 00253 00254 00255 00256 00257 00258 00259 00260 00261 00262 00263 00264 00265 00266 00267 00268 00269 00270 00271 00272 00273 00274 00275 00276 00277 00278 00279 00280 00281 00282 00283 00284 00285 00286 00287 00288 00289 00290 00291 00292 00293 00294 00295 00296 00297 00298 |
/****************************************************************************** FirebugPilotFlameEmitter Creation date: 2012-10-11 20:23 Last change: $Id$ Copyright © 2012, Wormbo Website: http://www.koehler-homepage.de/Wormbo/ Feel free to reuse this code. Send me a note if you found it helpful or want to report bugs/provide improvements. Please ask for permission first, if you intend to make money off reused code. ******************************************************************************/ class FirebugPilotFlameEmitter extends ONSWeaponAmbientEmitter; #exec audio import file=Sounds\FirebugFireStart.wav group=Firebug #exec audio import file=Sounds\FirebugFireStop.wav group=Firebug var bool bActive; simulated function Tick(float DeltaTime) { local ONSWeapon Gun; local vector NewLocation; local coords WeaponBoneCoords; Gun = ONSWeapon(Owner); if (Gun != None) { WeaponBoneCoords = Gun.GetBoneCoords(Gun.WeaponFireAttachmentBone); NewLocation = WeaponBoneCoords.Origin + Gun.WeaponFireOffset * WeaponBoneCoords.XAxis; SetLocation(NewLocation); SetRotation(OrthoRotation(WeaponBoneCoords.XAxis, WeaponBoneCoords.YAxis, WeaponBoneCoords.ZAxis)); } } simulated function SetEmitterStatus(bool bEnabled) { if (bEnabled) { if (!bActive) { bActive = True; PlaySound(Sound'FirebugFireStart',, 2.0,, 300.0); } Emitters[0].ParticlesPerSecond = 0.0; Emitters[0].InitialParticlesPerSecond = 0.0; Emitters[1].ParticlesPerSecond = 0.0; Emitters[1].InitialParticlesPerSecond = 0.0; Emitters[2].ParticlesPerSecond = 20.0; Emitters[2].InitialParticlesPerSecond = 20.0; Emitters[2].AllParticlesDead = false; Emitters[3].ParticlesPerSecond = 20.0; Emitters[3].InitialParticlesPerSecond = 20.0; Emitters[3].AllParticlesDead = false; Emitters[4].ParticlesPerSecond = 20.0; Emitters[4].InitialParticlesPerSecond = 20.0; Emitters[4].AllParticlesDead = false; Emitters[5].ParticlesPerSecond = 20.0; Emitters[5].InitialParticlesPerSecond = 20.0; Emitters[5].AllParticlesDead = false; } else { if (bActive) { bActive = False; PlaySound(Sound'FirebugFireStop',, 2.0,, 300.0); } Emitters[0].ParticlesPerSecond = 10.0; Emitters[0].InitialParticlesPerSecond = 10.0; Emitters[0].AllParticlesDead = false; Emitters[1].ParticlesPerSecond = 10.0; Emitters[1].InitialParticlesPerSecond = 10.0; Emitters[1].AllParticlesDead = false; Emitters[2].ParticlesPerSecond = 0.0; Emitters[2].InitialParticlesPerSecond = 0.0; Emitters[3].ParticlesPerSecond = 0.0; Emitters[3].InitialParticlesPerSecond = 0.0; Emitters[4].ParticlesPerSecond = 0.0; Emitters[4].InitialParticlesPerSecond = 0.0; Emitters[5].ParticlesPerSecond = 0.0; Emitters[5].InitialParticlesPerSecond = 0.0; } } //============================================================================= // Default values //============================================================================= defaultproperties { Begin Object Class=SpriteEmitter Name=PilotFlameRight FadeOut=True FadeIn=True RespawnDeadParticles=False SpinParticles=True UniformSize=True AutomaticInitialSpawning=False UseRandomSubdivision=True AddVelocityFromOwner=True Acceleration=(Z=500.000000) FadeOutStartTime=0.100000 FadeInEndTime=0.050000 StartLocationOffset=(X=2.000000,Y=48.5,Z=12.000000) UseRotationFrom=PTRS_Actor StartSpinRange=(X=(Min=-0.130000,Max=-0.120000)) StartSizeRange=(X=(Min=5.000000,Max=10.000000)) ParticlesPerSecond=10.000000 InitialParticlesPerSecond=10.000000 Texture=Texture'EmitterTextures.MultiFrame.LargeFlames' TextureUSubdivisions=4 TextureVSubdivisions=4 LifetimeRange=(Min=0.200000,Max=0.200000) StartVelocityRange=(X=(Min=30.000000,Max=50.000000),Y=(Min=-15.000000,Max=15.000000),Z=(Min=-10.000000,Max=10.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.950000),Y=(Min=0.900000,Max=0.950000),Z=(Min=0.900000,Max=0.950000)) End Object Emitters(0)=SpriteEmitter'PilotFlameRight' Begin Object Class=SpriteEmitter Name=PilotFlameLeft FadeOut=True FadeIn=True RespawnDeadParticles=False SpinParticles=True UniformSize=True AutomaticInitialSpawning=False UseRandomSubdivision=True AddVelocityFromOwner=True Acceleration=(Z=500.000000) FadeOutStartTime=0.100000 FadeInEndTime=0.050000 StartLocationOffset=(X=2.000000,Y=-48.5,Z=12.000000) UseRotationFrom=PTRS_Actor StartSpinRange=(X=(Min=-0.130000,Max=-0.120000)) StartSizeRange=(X=(Min=5.000000,Max=10.000000)) ParticlesPerSecond=10.000000 InitialParticlesPerSecond=10.000000 Texture=Texture'EmitterTextures.MultiFrame.LargeFlames' TextureUSubdivisions=4 TextureVSubdivisions=4 LifetimeRange=(Min=0.200000,Max=0.200000) StartVelocityRange=(X=(Min=30.000000,Max=50.000000),Y=(Min=-15.000000,Max=15.000000),Z=(Min=-10.000000,Max=10.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.950000),Y=(Min=0.900000,Max=0.950000),Z=(Min=0.900000,Max=0.950000)) End Object Emitters(1)=SpriteEmitter'PilotFlameLeft' Begin Object Class=SpriteEmitter Name=FireSprayRight UseDirectionAs=PTDU_Right UseCollision=True UseMaxCollisions=True UseColorScale=True FadeOut=True RespawnDeadParticles=False UseSizeScale=True UseRegularSizeScale=False UniformSize=True AutomaticInitialSpawning=False AddVelocityFromOwner=True Acceleration=(Z=-100.000000) ColorScale(0)=(Color=(B=255)) ColorScale(1)=(RelativeTime=0.300000,Color=(G=255,R=255)) ColorScale(2)=(RelativeTime=1.000000,Color=(G=255,R=255)) StartLocationOffset=(X=2.000000,Y=48.5,Z=12.000000) UseRotationFrom=PTRS_Actor SizeScale(0)=(RelativeSize=0.300000) SizeScale(1)=(RelativeTime=1.000000,RelativeSize=1.000000) Texture=Texture'EpicParticles.Beams.WhiteStreak01aw' SecondsBeforeInactive=0.000000 LifetimeRange=(Min=0.500000,Max=0.500000) StartVelocityRange=(X=(Min=1500.000000,Max=2000.000000),Y=(Min=0.000000,Max=20.000000),Z=(Min=-20.000000,Max=20.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.900000),Y=(Min=0.900000,Max=0.900000),Z=(Min=0.900000,Max=0.900000)) End Object Emitters(2)=SpriteEmitter'FireSprayRight' Begin Object Class=SpriteEmitter Name=FireCloudRight UseCollision=True UseColorScale=True FadeOut=True FadeIn=True RespawnDeadParticles=False SpinParticles=True UseSizeScale=True UseRegularSizeScale=False UniformSize=True AutomaticInitialSpawning=False UseRandomSubdivision=True AddVelocityFromOwner=True Acceleration=(Z=200.000000) DampingFactorRange=(X=(Min=0.100000,Max=0.200000),Y=(Min=0.100000,Max=0.200000),Z=(Min=0.100000,Max=0.200000)) ColorScale(0)=(Color=(B=255,G=255,R=255,A=255)) ColorScale(1)=(RelativeTime=0.700000,Color=(G=255,R=255,A=255)) ColorScale(2)=(RelativeTime=1.000000,Color=(R=255,A=255)) FadeOutStartTime=0.500000 FadeInEndTime=0.1 MaxParticles=60 StartLocationOffset=(X=2.000000,Y=48.5,Z=12.000000) UseRotationFrom=PTRS_Actor StartSpinRange=(X=(Max=1.000000),Y=(Max=1.000000),Z=(Max=1.000000)) SizeScale(1)=(RelativeTime=0.500000,RelativeSize=1.200000) SizeScale(2)=(RelativeTime=1.000000,RelativeSize=2.0) Texture=Texture'EmitterTextures.MultiFrame.LargeFlames' SecondsBeforeInactive=0.000000 TextureUSubdivisions=4 TextureVSubdivisions=4 LifetimeRange=(Min=1.000000,Max=1.000000) StartVelocityRange=(X=(Min=3000.000000,Max=3200.000000),Y=(Min=0.000000,Max=100.000000),Z=(Min=-50.000000,Max=50.000000)) VelocityLossRange=(X=(Min=0.900000,Max=1.000000),Y=(Min=0.900000,Max=1.000000),Z=(Min=0.900000,Max=1.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.900000),Y=(Min=0.900000,Max=0.900000),Z=(Min=0.900000,Max=0.900000)) End Object Emitters(3)=SpriteEmitter'FireCloudRight' Begin Object Class=SpriteEmitter Name=FireSprayLeft UseDirectionAs=PTDU_Right UseCollision=True UseMaxCollisions=True UseColorScale=True FadeOut=True RespawnDeadParticles=False UseSizeScale=True UseRegularSizeScale=False UniformSize=True AutomaticInitialSpawning=False AddVelocityFromOwner=True Acceleration=(Z=-100.000000) ColorScale(0)=(Color=(B=255)) ColorScale(1)=(RelativeTime=0.300000,Color=(G=255,R=255)) ColorScale(2)=(RelativeTime=1.000000,Color=(G=255,R=255)) StartLocationOffset=(X=2.000000,Y=-48.5,Z=12.000000) UseRotationFrom=PTRS_Actor SizeScale(0)=(RelativeSize=0.300000) SizeScale(1)=(RelativeTime=1.000000,RelativeSize=1.000000) Texture=Texture'EpicParticles.Beams.WhiteStreak01aw' SecondsBeforeInactive=0.000000 LifetimeRange=(Min=0.500000,Max=0.500000) StartVelocityRange=(X=(Min=1500.000000,Max=2000.000000),Y=(Min=-20.000000,Max=0.000000),Z=(Min=-20.000000,Max=20.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.900000),Y=(Min=0.900000,Max=0.900000),Z=(Min=0.900000,Max=0.900000)) End Object Emitters(4)=SpriteEmitter'FireSprayLeft' Begin Object Class=SpriteEmitter Name=FireCloudLeft UseCollision=True UseColorScale=True FadeOut=True FadeIn=True RespawnDeadParticles=False SpinParticles=True UseSizeScale=True UseRegularSizeScale=False UniformSize=True AutomaticInitialSpawning=False UseRandomSubdivision=True AddVelocityFromOwner=True Acceleration=(Z=200.000000) DampingFactorRange=(X=(Min=0.100000,Max=0.200000),Y=(Min=0.100000,Max=0.200000),Z=(Min=0.100000,Max=0.200000)) ColorScale(0)=(Color=(B=255,G=255,R=255,A=255)) ColorScale(1)=(RelativeTime=0.700000,Color=(G=255,R=255,A=255)) ColorScale(2)=(RelativeTime=1.000000,Color=(R=255,A=255)) FadeOutStartTime=0.500000 FadeInEndTime=0.1 MaxParticles=60 StartLocationOffset=(X=2.000000,Y=-48.5,Z=12.000000) UseRotationFrom=PTRS_Actor StartSpinRange=(X=(Max=1.000000),Y=(Max=1.000000),Z=(Max=1.000000)) SizeScale(1)=(RelativeTime=0.500000,RelativeSize=1.200000) SizeScale(2)=(RelativeTime=1.000000,RelativeSize=2.0) Texture=Texture'EmitterTextures.MultiFrame.LargeFlames' SecondsBeforeInactive=0.000000 TextureUSubdivisions=4 TextureVSubdivisions=4 LifetimeRange=(Min=1.000000,Max=1.000000) StartVelocityRange=(X=(Min=3000.000000,Max=3200.000000),Y=(Min=-100.000000,Max=0.000000),Z=(Min=-50.000000,Max=50.000000)) VelocityLossRange=(X=(Min=0.900000,Max=1.000000),Y=(Min=0.900000,Max=1.000000),Z=(Min=0.900000,Max=1.000000)) AddVelocityMultiplierRange=(X=(Min=0.900000,Max=0.900000),Y=(Min=0.900000,Max=0.900000),Z=(Min=0.900000,Max=0.900000)) End Object Emitters(5)=SpriteEmitter'FireCloudLeft' bNoDelete = False RemoteRole = ROLE_None Physics = PHYS_None } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |