Code: Select all
ACTOR DoomFlashLightBeam
{
Speed 100
Mass 5
+NOGRAVITY
+NOCLIP
+NOBLOCKMAP
+DONTSPLASH
Renderstyle NONE
States
{
Spawn:
NONE AABBCCDDEE 1
Stop
}
}
ACTOR DoomFlashLight : Weapon 21046
{
Scale 0.2
+NOALERT
+DONTBOB
Weapon.SelectionOrder 4000
Inventory.PickupSound "misc/i_pkup"
Inventory.PickupMessage "You got the Flashlight"
States
{
Spawn:
NJTU A -1
LOOP
Ready:
NJT1 A 1 A_WeaponReady
Goto Ready
Deselect:
NJT1 A 1 A_Lower
Loop
Select:
NJT1 A 1 A_Raise
Loop
Fire:
NJT1 A 0 A_PlaySound("DoomFlashlighton")
NJT1 A 1 A_FireCustomMissile("DoomFlashLightBeam",0,0,0,0)
goto Hold
Hold:
NJT1 A 1 A_FireCustomMissile("DoomFlashLightBeam",0,0,0,0)
NJT1 A 0 A_Refire
NJT1 A 1 A_PlaySound("DoomFlashlightoff")
Goto Ready
}
}