Adjustments.

This commit is contained in:
Marisa the Magician 2019-09-10 19:49:05 +02:00
commit 2587d6c505
14 changed files with 275 additions and 59 deletions

View file

@ -68,14 +68,14 @@ Class URocketTrail : Actor
override void PostBeginPlay()
{
Super.PostBeginPlay();
let l = Spawn("RocketLight",pos);
l.target = self;
A_AttachLight('RocketLight',DynamicLight.PointLight,Color(255,224,128),32,32);
}
override void Tick()
{
Super.Tick();
if ( !target || target.InStateSequence(target.CurState,target.FindState("Death")) )
if ( !target || !target.bMISSILE )
{
A_RemoveLight('RocketLight');
Destroy();
return;
}