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 |
class BurnerProjectile extends Projectile; var() float ignitionDelay; var() float postIgnitionColRadius; var() float postIgnitionColHeight; var() float postIgnitionVelocity; var bool weHaveIgnition; var() class<BurningArea> burningAreaClass; simulated function PostBeginPlay() { super.PostBeginPlay(); SetTimer(ignitionDelay, false); } simulated event Destroyed() { UntriggerEffectEvent('Ignition'); super.Destroyed(); } simulated function Timer() { UnTriggerEffectEvent('Alive'); TriggerEffectEvent('Ignition'); SetCollisionSize(postIgnitionColRadius, postIgnitionColHeight); Velocity = Normal(Velocity) * postIgnitionVelocity; weHaveIgnition = true; } simulated function HitWall(Vector HitNormal, Actor HitWall) { SpawnBurningArea(); super.HitWall(HitNormal, HitWall); } function SpawnBurningArea() { if (!PhysicsVolume.bWaterVolume) Spawn(burningAreaClass,,, Location); } simulated function bool ShouldHit(Actor Other, vector TouchLocation) { if (weHaveIgnition) return super.ShouldHit(Other, TouchLocation); else return !ClientDetectDeflection(Other, TouchLocation) && super.ShouldHit(Other, TouchLocation); } function bool ShouldDeflect(Actor Other, Vector TouchLocation, out Vector deflectionNormal) { return !weHaveIgnition && super.ShouldDeflect(Other, TouchLocation, deflectionNormal); } simulated function ProjectileHit(Actor Other, vector TouchLocation, vector TouchNormal) { BurnTarget(Rook(Other)); SpawnBurningArea(); super.ProjectileHit(Other, TouchLocation, TouchNormal); } simulated function BurnTarget(Rook target) { if (target != None) { target.flameSource = Instigator; target.flameDamageType = damageTypeClass; target.flameDamagePerSecond = burningAreaClass.default.burnDamageRate; target.flameDamageReductionPerSecond = burningAreaClass.default.burnDamageRateReduction; } } defaultproperties { damageAmt = 10 burningAreaClass = class'BurningArea' bNetTemporary = false ignitionDelay = 0.4 postIgnitionColRadius = 200 postIgnitionColHeight = 200 postIgnitionVelocity = 3000 StaticMesh = StaticMesh'Weapons.Disc' DrawScale3D = (X=0.75,Y=0.75,Z=0.75) deathMessage = '%s copped it off %s\'s Spinfusor' knockback = 0 // burner projectile does not cause knockback } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |