actor LaserShot

{

PROJECTILE

+DONTREFLECT

+FORCEXYBILLBOARD

+RIPPER

Speed 50

Damage (0)

radius 5

height 5

scale 2.5

ReactionTime 9

States

{

Spawn:

TNT1 A 0

TNT1 A 0 A_ScaleVelocity(SPEED_SCALAR)

Spawn2:

TNT1 A 0 A_CountDown

TNT1 A 0 A_SpawnItemEx("MegaLaser",0,0,0,(momx/SPEED_SCALAR),(momy/SPEED_SCALAR),(momz/SPEED_SCALAR),0,SXF_ABSOLUTEMOMENTUM)

//TNT1 A 0 A_SpawnItemEx("LaserTrail",-(momx/SPEED_SCALAR)/2,-(momy/SPEED_SCALAR)/2,-(momz/SPEED_SCALAR)/2,(momx/SPEED_SCALAR),(momy/SPEED_SCALAR),(momz/SPEED_SCALAR),0,SXF_ABSOLUTEPOSITION|SXF_ABSOLUTEMOMENTUM)

TNT1 A 0 A_SpawnItemEx("LaserTrail",-(momx/SPEED_SCALAR)/3,-(momy/SPEED_SCALAR)/3,-(momz/SPEED_SCALAR)/3,(momx/SPEED_SCALAR),(momy/SPEED_SCALAR),(momz/SPEED_SCALAR),0,SXF_ABSOLUTEPOSITION|SXF_ABSOLUTEMOMENTUM)

TNT1 A 0 A_SpawnItemEx("LaserTrail",-(momx/SPEED_SCALAR)*2/3,-(momy/SPEED_SCALAR)*2/3,-(momz/SPEED_SCALAR)*2/3,(momx/SPEED_SCALAR),(momy/SPEED_SCALAR),(momz/SPEED_SCALAR),0,SXF_ABSOLUTEPOSITION|SXF_ABSOLUTEMOMENTUM)

//TNT1 A 0 A_Log("Spawn")

TNT1 A 1

loop

Death:

TNT1 A 0

stop

}

}

actor MegaLaser

{

PROJECTILE

+DONTREFLECT

+FORCEXYBILLBOARD

+RIPPER

damagetype "LaserBuster"

Obituary "$OB_LASERBUSTER"

Damage (5)

radius 16

height 10

scale 2.5

States

{

Spawn:

TNT1 A 0

TNT1 A 1

Spawn2:

LASH AB 1

loop

Death:

TNT1 A 0

stop

}

}