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 |
#exec OBJ LOAD FILE=..\staticmeshes\EffectMeshes.usx #exec OBJ LOAD FILE=..\textures\VehicleFX.utx class BulldogDust extends Emitter; var () int MaxSpritePPS; var () int MaxMeshPPS; simulated function UpdateDust(KTire t, float DustSlipRate, float DustSlipThresh) { local float SpritePPS, MeshPPS; //Log("Material:"$t.GroundMaterial$" OnGround:"$t.bTireOnGround); // If wheel is on ground, and slipping above threshold.. if(t.bTireOnGround && t.GroundSlipVel > DustSlipThresh) { SpritePPS = FMin(DustSlipRate * (t.GroundSlipVel - DustSlipThresh), MaxSpritePPS); Emitters[0].ParticlesPerSecond = SpritePPS; Emitters[0].InitialParticlesPerSecond = SpritePPS; Emitters[0].AllParticlesDead = false; MeshPPS = FMin(DustSlipRate * (t.GroundSlipVel - DustSlipThresh), MaxMeshPPS); Emitters[1].ParticlesPerSecond = MeshPPS; Emitters[1].InitialParticlesPerSecond = MeshPPS; Emitters[1].AllParticlesDead = false; } else // ..otherwise, switch off. { Emitters[0].ParticlesPerSecond = 0; Emitters[0].InitialParticlesPerSecond = 0; Emitters[1].ParticlesPerSecond = 0; Emitters[1].InitialParticlesPerSecond = 0; } } defaultproperties { MaxSpritePPS=35 MaxMeshPPS=35 Begin Object Class=SpriteEmitter Name=SpriteEmitter1 UseColorScale=Wahr RespawnDeadParticles=Falsch SpinParticles=Wahr UseSizeScale=Wahr UseRegularSizeScale=Falsch UniformSize=Wahr AutomaticInitialSpawning=Falsch Acceleration=(Z=15.000000) ColorScale(0)=(Color=(B=30,G=90,R=110)) ColorScale(1)=(RelativeTime=0.100000,Color=(B=34,G=44,R=66,A=128)) ColorScale(2)=(RelativeTime=0.900000,Color=(B=36,G=49,R=64,A=128)) ColorScale(3)=(RelativeTime=1.000000,Color=(B=20,G=50,R=80)) MaxParticles=100 StartLocationRange=(Y=(Min=-24.000000,Max=24.000000)) UseRotationFrom=PTRS_Actor SpinsPerSecondRange=(X=(Max=0.025000)) StartSpinRange=(X=(Max=1.000000)) SizeScale(0)=(RelativeSize=0.250000) SizeScale(1)=(RelativeTime=1.000000,RelativeSize=1.000000) StartSizeRange=(X=(Min=50.000000,Max=50.000000),Y=(Min=50.000000,Max=50.000000),Z=(Min=50.000000,Max=50.000000)) DrawStyle=PTDS_AlphaBlend Texture=Texture'VehicleFX.Particles.DustyCloud2' SecondsBeforeInactive=0.000000 LifetimeRange=(Min=2.000000,Max=2.000000) End Object Emitters(0)=SpriteEmitter'Vehicles.BulldogDust.SpriteEmitter1' Begin Object Class=MeshEmitter Name=MeshEmitter1 StaticMesh=StaticMesh'EffectMeshes.Particles.DirtChunk_01aw' UseParticleColor=Wahr UseCollision=Wahr UseColorScale=Wahr FadeOut=Wahr RespawnDeadParticles=Falsch AlphaTest=Falsch SpinParticles=Wahr UseSizeScale=Wahr UseRegularSizeScale=Falsch AutomaticInitialSpawning=Falsch Acceleration=(Z=-600.000000) DampingFactorRange=(X=(Min=0.800000,Max=0.800000),Y=(Min=0.800000,Max=0.800000),Z=(Min=0.500000,Max=0.500000)) ColorScale(0)=(Color=(B=255,G=255,R=255,A=255)) ColorScale(1)=(RelativeTime=0.800000,Color=(B=255,G=255,R=255,A=255)) ColorScale(2)=(RelativeTime=1.000000,Color=(B=109,G=184,R=220)) FadeOutStartTime=2.000000 MaxParticles=100 StartLocationRange=(Y=(Min=-24.000000,Max=24.000000)) UseRotationFrom=PTRS_Actor SpinsPerSecondRange=(X=(Max=0.010000),Y=(Max=0.010000),Z=(Max=0.010000)) StartSpinRange=(X=(Max=1.000000),Y=(Max=1.000000),Z=(Max=1.000000)) SizeScale(1)=(RelativeTime=0.025000,RelativeSize=1.000000) SizeScale(2)=(RelativeTime=1.000000,RelativeSize=1.000000) StartSizeRange=(X=(Min=0.300000),Y=(Min=0.300000),Z=(Min=0.300000)) DrawStyle=PTDS_AlphaBlend SecondsBeforeInactive=0.000000 LifetimeRange=(Min=3.000000,Max=3.000000) StartVelocityRange=(X=(Min=120.000000,Max=120.000000),Y=(Min=-30.000000,Max=30.000000),Z=(Min=60.000000,Max=120.000000)) End Object Emitters(1)=MeshEmitter'Vehicles.BulldogDust.MeshEmitter1' bNoDelete=Falsch bHardAttach=Wahr } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |