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 |
// The fire that gets spawned when a Fuel puddle is shot. This damages pawns and then dissipates. class FuelFlame extends Emitter; var () float BurnInterval; // Interval between burn damage. var Actor Parent; // Parent Actor var () int FlameDamage; // How much dmg the touchee takes. static function PreInitialize( int Damage, float Interval ) { // You can preserve the original default values in other default variables if you want, and restore them in prebeginplay. If you want. default.BurnInterval = Interval; default.FlameDamage = Damage; } simulated function PostBeginPlay() { SetTimer(BurnInterval,True); } function Timer() { local Material SurfaceMat; local int HitSurface; local Vector HitLocation, HitNormal; local rotator EffectDir; local Actor Other; Other = Trace(HitLocation, HitNormal, Location + vector(Rotation) * 32, Location - vector(Rotation) * 16, true,, SurfaceMat); EffectDir = rotator(MirrorVectorByNormal(vector(Rotation), HitNormal)); if(Vehicle(Other) != None && Other.SurfaceType == 0) HitSurface = 3; else if(Other != None && !Other.IsA('LevelInfo') && Other.SurfaceType != 0) HitSurface = Other.SurfaceType; else if(SurfaceMat != None) HitSurface = SurfaceMat.SurfaceType; if (SurfaceMat != none && Parent == none) { if (KFHumanPawn(Instigator) != none) Kill(); } if( Parent==none || Parent.DrawScale<=0.25 ) Kill(); } defaultproperties { BurnInterval=1.000000 FlameDamage=10 Begin Object Class=SpriteEmitter Name=SpriteEmitter10 UseColorScale=True SpinParticles=True UseSizeScale=True UseRegularSizeScale=False UniformSize=True UseRandomSubdivision=True Acceleration=(Z=100.000000) ColorScale(1)=(RelativeTime=0.300000,Color=(B=255,G=255,R=255)) ColorScale(2)=(RelativeTime=0.750000,Color=(B=96,G=160,R=255)) ColorScale(3)=(RelativeTime=1.000000) ColorMultiplierRange=(Z=(Min=0.670000,Max=2.000000)) MaxParticles=15 StartLocationShape=PTLS_Sphere SphereRadiusRange=(Max=5.000000) SpinsPerSecondRange=(X=(Max=0.070000)) StartSpinRange=(X=(Max=1.000000)) SizeScale(0)=(RelativeTime=1.000000,RelativeSize=0.500000) StartSizeRange=(X=(Min=56.000000,Max=45.000000),Y=(Min=0.000000,Max=0.000000),Z=(Min=0.000000,Max=0.000000)) ScaleSizeByVelocityMultiplier=(X=0.000000,Y=0.000000,Z=0.000000) ScaleSizeByVelocityMax=0.000000 Texture=Texture'KillingFloorTextures.LondonCommon.fire3' TextureUSubdivisions=2 TextureVSubdivisions=2 SecondsBeforeInactive=30.000000 LifetimeRange=(Min=0.750000,Max=1.250000) StartVelocityRange=(X=(Min=-10.000000,Max=10.000000),Y=(Min=-10.000000,Max=10.000000),Z=(Min=25.000000,Max=75.000000)) End Object Emitters(0)=SpriteEmitter'KFMod.FuelFlame.SpriteEmitter10' LightType=LT_Pulse LightHue=30 LightSaturation=100 LightBrightness=300.000000 LightRadius=4.000000 bNoDelete=False bDynamicLight=True AmbientSound=Sound'Amb_Destruction.Fire.Kessel_Fire_Small_Vehicle' LifeSpan=6.000000 SoundVolume=255 SoundRadius=100.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |