ACTOR PuristWeapon : Weapon
{
	Inventory.ForbiddenTo Doomer
	Inventory.RestrictedTo "Purist"
}

ACTOR ClassicFist : Fist
{
	Game Doom
	Weapon.SelectionOrder 4
	Weapon.Kickback 100
	Obituary "$OB_MPFIST"
	Tag "$TAG_FIST"
	+WEAPON.MELEEWEAPON
	+WEAPON.NOALERT
	+WEAPON.NOAUTOAIM
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	States
	{
	Ready:
	    TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		PKFS A 1 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		PKFS A 1 A_Lower
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		Loop
	Select:
		PKFS A 1 A_Raise
		Loop
	Fire:
	    TNT1 A 0 A_jumpifinventory("PowerStrength",1,"Fire2")
		PKFS B 1 A_Giveinventory("Punching",1)
		TNT1 A 0 A_PlaySound("skeleton/swing")
		PKFS CD 1
		PKFS E 2 A_FireCustomMissile("MeleeStrike2", 0, 0, 0, -5)
		PKFS FGHIJKL 2
		Goto Ready
	Fire2:
		PKFS B 1 A_Giveinventory("Punching",1)
		TNT1 A 0 A_PlaySound("weapons/gswing")
		PKFS CD 1
		PKFS E 2 A_FireCustomMissile("MeleeStrike2Smash", 0, 0, 0, -5)
		PKFS FGHIJK 2
		Goto Ready	
	}
}

ACTOR ClassicSaw : Chainsaw
{
	Game Doom
	Weapon.Kickback 0
	Weapon.SelectionOrder 2
	Weapon.UpSound "weapons/sawup"
	Weapon.ReadySound "none"
	Inventory.PickupMessage "$GOTCHAINSAW"
	Obituary "$OB_MPCHAINSAW"
	Tag "$TAG_CHAINSAW"
	+WEAPON.MELEEWEAPON
	+WEAPON.AXEBLOOD
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	States
	{
	Ready:
		TNT1 A 0
		TNT1 A 0 A_Takeinventory("HasCutingWeapon",1)
		TNT1 A 0 A_PlaySound("weapons/sawidle", 2)
		TNT1 A 0 A_JumpIfInventory("PowerBloodOnVisor",1,"Ready.Blood")
        TNT1 A 0 A_JumpIfInventory("PowerBlueBloodOnVisor",1,"Ready.BlueBlood")
        TNT1 A 0 A_JumpIfInventory("PowerGreenBloodOnVisor",1,"Ready.GreenBlood")
		
		VSAW ABAB 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Chain_saw")
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
		
	Ready.Blood:
		VSRW ABAB 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Chain_saw")
		Goto Ready
		
	Ready.BlueBlood:
		VSBW ABAB 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Chain_saw")
		Goto Ready
		
	Ready.GreenBlood:
		VSGW ABAB 2 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Chain_saw")
		Goto Ready	
		
	Deselect:
		VSAW A 1 A_Lower
		Loop
	Select:
		VSAW A 1 A_Raise
		
		Loop
	Fire:
		TNT1 A 0
		TNT1 A 0 A_Giveinventory("HasCutingWeapon",1)
		TNT1 A 0 A_JumpIfInventory("PowerBloodOnVisor",1,"Fire.Blood")
        TNT1 A 0 A_JumpIfInventory("PowerBlueBloodOnVisor",1,"Fire.BlueBlood")
        TNT1 A 0 A_JumpIfInventory("PowerGreenBloodOnVisor",1,"Fire.GreenBlood")
		VSAW CD 2 A_Saw("weapons/chainsaw/loop", "CSAWCUT", 3, "SSawPuff")
		SAWG B 0 A_ReFire
		Goto Ready
		
	Fire.Blood:
		VSRW CD 2 A_Saw("weapons/chainsaw/loop", "CSAWCUT", 3, "SSawPuff")
		SAWG B 0 A_ReFire
		Goto Ready
	
	Fire.BlueBlood:
		VSBW CD 2 A_Saw("weapons/chainsaw/loop", "CSAWCUT", 3, "SSawPuff")
		SAWG B 0 A_ReFire
		Goto Ready
		
	Fire.GreenBlood:
		VSGW CD 2 A_Saw("weapons/chainsaw/loop", "CSAWCUT", 3, "SSawPuff")
		SAWG B 0 A_ReFire
		Goto Ready
	
	Spawn:
		CSAW A -1
		Stop
	}
}

ACTOR ClassicPistol : Pistol
{
	Game Doom
	Weapon.SelectionOrder 3
	Weapon.AmmoUse 1
	Weapon.AmmoGive 20
	Weapon.AmmoType "0.45ACPClassic"
	Obituary "$OB_MPPISTOL"
	+WEAPON.NOAUTOFIRE
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	Inventory.Pickupmessage "$PICKUP_PISTOL_DROPPED"
	Tag "$TAG_PISTOL"
	States
	{
	Ready:
	    TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		PKPI A 1 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		PKPI A 1 A_Lower
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		Loop
	Select:
		PKPI A 1 A_Raise
		Loop
	Fire:
		TNT1 A 0 A_FireBullets (3, 1, 1, 10, "HitPuff")
		TNT1 A 0 A_PlaySound("weapons/zombiemanrifle")
		RIFF A 0 A_FireCustomMissile("Tracer", random(-2,2), 0, -1, 0)
		TNT1 A 0 A_SetPitch(-1.0 + pitch)
        PKPI F 1 BRIGHT
		PKPI CDE 1 A_SetPitch(0.25 + pitch)
		TNT1 A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,8,-9)
		PKPI D 1
		PKPI C 1 A_WeaponReady(1)
		PKPI B 0 A_WeaponReady(1)
		PKPI A 5 A_WeaponReady(1)
		TNT1 A 0 A_ReFire
		Goto Ready
 	Spawn:
		PIST A -1
		Stop
	}
}

ACTOR ClassicShotgun : Shotgun
{
	Game Doom
	Weapon.SelectionOrder 2
	Weapon.AmmoUse 1
	Weapon.AmmoGive 8
	Weapon.AmmoType "2.75inch12gaugeBuckshotClassic"
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	Inventory.PickupMessage "$GOTSHOTGUN"
	Obituary "$OB_MPSHOTGUN"
	Tag "$TAG_SHOTGUN"
	States
	{
	Ready:
	    TNT1 A 0 A_TakeInventory("Shot_gun")
		PKSG A 1 A_WeaponReady
		TNT1 A 0 A_TakeInventory("Shot_gun")
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
	    TNT1 A 0 A_TakeInventory("Shot_gun")
		PKSG A 1 A_Lower
		TNT1 A 0 A_TakeInventory("Shot_gun")
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		Loop
	Select:
		PKSG A 1 A_Raise
		TNT1 A 0 A_TakeInventory("Shot_gun")
		Loop
	Fire:
		PKSG A 1
		TNT1 AAAAAAA 0 A_FireCustomMissile("Tracer", random(-5,5),0,-1,-12,0,random(-1,1))
		TNT1 A 0 A_FireBullets (5.0, 1.0, 7, 8, "ShotgunPuff")
		TNT1 A 0 A_PlaySound("weapons/sg", 1)
		PKSG B 2 BRIGHT A_SetPitch(-4.0 + pitch)
		PKSG C 1
		PKSG CDDE 1 A_SetPitch(1.0 + pitch)
		PKSG A 4
		PKSG FGHI 1
		TNT1 A 0 A_FireCustomMissile ("ShotCaseSpawn", 0, 0, -4, -4)
		SHTG A 0 A_PlaySound("weapons/sgpump", 3)
		PKSG JKKLLMMMLLKKJIHGF 1
		PKSG A 3
		TNT1 A 0 A_Refire
		PKSG A 10 A_WeaponReady
		Goto Ready
	Spawn:
		SHOT A -1
		Stop
	}
}

ACTOR ClassicSSG : SuperShotgun
{
	Game Doom
	Weapon.SelectionOrder 1
	Weapon.AmmoUse 2
	Weapon.AmmoGive 8
	Weapon.AmmoType "3inch12gaugeBuckshotClassic"
	Inventory.PickupMessage "$GOTSHOTGUN2"
	Obituary "$OB_MPSSHOTGUN"
	Tag "$TAG_SUPERSHOTGUN"
	+WEAPON.NOAUTOFIRE
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	States
	{
	Ready:
	    TNT1 A 0 A_TakeInventory("SSG")
		PKSS A 1 A_WeaponReady
		TNT1 A 0 A_TakeInventory("SSG")
		TNT1 A 0 A_TakeInventory("Rifle")
		TNT1 A 0 A_TakeInventory("DualRifles")
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		PKSS A 1 A_Lower
		Loop
	Select:
		PKSS A 1 A_Raise
		Loop
	Fire:
	    PKSS A 1
		TNT1 A 0 A_firebullets (0,0,1,15,"shotpuff",0,180)
		TNT1 AAAAAAAAAAAAAA 0 A_FireCustomMissile("Tracer", random(-10,10),0,-1,-12,0,random(-3,3))
		TNT1 A 0 A_FireBullets (10.0, 3.0, 14, 8, "ShotgunPuff")
		TNT1 A 0 A_SpawnItemEx("PlayerMuzzle2",30,5,27)
		TNT1 A 0 A_playsound("SSHFIRE", 3)
		PKSS B 2 BRIGHT A_SetPitch(-6.0 + pitch)
		PKSS C 1
		PKSS DEFAAA 1 A_SetPitch(1.0 + pitch)
		PKSS A 5
		TNT1 A 0 A_CheckReload
		PKSS GHIJKL 1
		TNT1 A 0 A_OpenShotgun2
		PKSS MNOPQR 1
		TNT1 AA 0 A_FireCustomMissile("SSGCaseSpawner",0,0,-10)
		PKES S 4
		PKSS STUV 2
		TNT1 A 0 A_LoadShotgun2
		PKSS XWYZ 1
		//TNT1 A 10
		PKS2 ABCD 2
		TNT1 A 0 A_PlaySound("weapons/sshotc")
		PKS2 EFG 2
		PKSS A 5
		TNT1 A 0 A_Refire
		Goto Ready
	Spawn:
		SGN2 A -1
		Stop
	}
}

ACTOR ClassicChaingun : Chaingun
{
	Game Doom
	+FLOORCLIP
	+DONTGIB
	Weapon.BobRangeX 0.3
	Weapon.BobRangeY 0.5
	Weapon.BobStyle InverseSmooth
	Weapon.BobSpeed 2.0
	Weapon.SelectionOrder 1
	Weapon.AmmoUse 1
	Weapon.AmmoGive 30
	Weapon.AmmoType "0.30-06Springfield"
	Inventory.PickupMessage "$GOTCHAINGUN"
	Obituary "$OB_MPCHAINGUN"
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Tag "$TAG_CHAINGUN"
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	States
	{
	Ready:
		PKCG A 1 A_WeaponReady
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		TNT1 A 0 A_Takeinventory("RandomHeadExploder",1)
		PKCG A 1 A_Lower
		Loop
	Select:
		TNT1 A 0 A_Takeinventory("RandomHeadExploder",1)
		PKCG A 1 A_Raise
		Loop
	Fire:
		TNT1 A 0 BRIGHT A_FireBullets (5, 1, 1, 9, "MachineGunBulletPuff")
        TNT1 A 0 A_FireCustomMissile("Tracer", random(-3,3), 0, -1, -12, 0, random(-3,3))
		TNT1 A 0 A_PlaySound("CHGNSHOT", 1)
		TNT1 A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,6,-6)
		PKCG F 1 BRIGHT 
		TNT1 A 0 A_SetPitch(-1.0 + pitch)
		PKCG B 1 A_SpawnItemEx("PlayerMuzzle1",30,5,30)
		PKCG CD 1 A_SetPitch(0.5 + pitch)
		PKCG E 1 BRIGHT
		TNT1 A 0 A_ReFire
		PKCG ABCDAABBCCCDDDD 1 A_WeaponReady(1)
		Goto Ready
	Spawn:
		MGUN A -1
		Stop
	}
}

ACTOR ClassicRocketLauncher : RocketLauncher
{
	Game Doom
	Weapon.SelectionOrder 4
	+FLOORCLIP
	+DONTGIB
	Weapon.BobRangeX 0.3
	Weapon.BobRangeY 0.5
	Weapon.BobStyle InverseSmooth
	Weapon.BobSpeed 2.0
	Weapon.AmmoUse 1
	Weapon.AmmoGive 2
	Weapon.AmmoType "NewRocketClassic"
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.PickupMessage "$GOTLAUNCHER"
	Tag "$TAG_ROCKETLAUNCHER"
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	States
	{
	Ready:
	    PKRL A 1 A_WeaponReady
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		PKRL A 1 A_Lower
		Loop
	Select:
		PKRL A 1 A_Raise
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory("ClassicRocketLauncher")
		TNT1 A 0 A_TakeInventory("Rocket_Launcher")
		Stop
	Fire:
		PKRL BC 2 BRIGHT
		TNT1 A 0 A_PlaySound ("DSRFIRE")
		TNT1 A 0 A_FireCustomMissile("WeakRocket", 0, 1, 0, -10)
		TNT1 A 0 A_SetPitch(-2.0 + pitch)
		PKRL D 2 BRIGHT
		PKRL EFGHIJ 2 A_SetPitch(0.25 + pitch)
		PKRL AA 1 A_SetPitch(0.25 + pitch)
		TNT1 A 0 A_Refire
		Goto Ready
	Spawn:
		LAUN A -1
		Stop
	}
}

ACTOR ClassicPlasmaRifle : PlasmaRifle
{
	Game Doom
	Weapon.SelectionOrder 1
	+FLOORCLIP
	+DONTGIB
	Weapon.BobRangeX 0.3
	Weapon.BobRangeY 0.5
	Weapon.BobStyle InverseSmooth
	Weapon.BobSpeed 2.0
	Weapon.AmmoUse 1
	Weapon.AmmoGive 40
	Weapon.AmmoType "Doom3CellClassic"
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	+WEAPON.NOAUTOAIM
	-WEAPON.AMMO_OPTIONAL
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.PickupMessage "$GOTPLASMA"
	Tag "$TAG_PLASMARIFLE"
	States
	{
	Ready:
		3LSG A 1 A_WeaponReady
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory("ClassicPlasmaRifle")
		TNT1 A 0 A_TakeInventory("Plasma_Gun")
		Stop
	Deselect:
	    TNT1 A 0 A_Takeinventory("HasPlasmaWeapon",1)
		3LSG A 1 A_Lower
		Loop
	Select:
	    TNT1 A 0 A_Giveinventory("HasPlasmaWeapon",1)
		3LSG A 1 A_Raise
		Loop
	Fire:
		TNT1 A 0 A_FireCustomMissile("ClassicPlasmaBall", 0, 1, 0, -10)
		3LSF EF 1 BRIGHT
		3KPL A 1
		TNT1 A 0 A_Refire
		3KPL ABCDEFF 1
		3KPL G 6
		3KPL FFEDCBA 1
		Goto Ready
	Spawn:
		PLAS A -1
		Stop
	}
}

ACTOR ClassicPlasmaBall
{
	Game Doom
	Radius 4
	Height 4
	Speed 25
	Damage 7
	Projectile
	+RANDOMIZE
	RenderStyle Add
	Alpha 0.75
	SeeSound "weapons/plasmaf"
	DeathSound "weapons/plasmax"
	damagetype Plasma
	Obituary "$OB_MPPLASMARIFLE"
	Species "Marines"
	+THRUSPECIES
	+MTHRUSPECIES
	States
	{
	DM:
		TNT1 A 0
		TNT1 A 0 A_ChangeFLag("THRUSPECIES", 0)
		TNT1 A 0 A_ChangeFLag("MTHRUSPECIES", 0)
		Goto Spawn1
	
	Spawn:
		TNT1 A 0
		TNT1 A 0 ACS_ExecuteAlways(719, 0, 0, 0, 0)//Check if Coop

	Spawn1:
	    TNT1 A 1
		Goto Spawn2
	Spawn2:
		PLSS ABAB 1 Bright A_SpawnItem("BlueFlareSmall")
		Loop
	Death:
	    TNT1 A 0
		TNT1 A 0 A_CustomMissile ("BluePlasmaFire", 0, 0, random (0, 360), 2, random (0, 360))
		TNT1 AAAAA 0 A_CustomMissile ("BluePlasmaParticle", 0, 0, random (0, 360), 2, random (0, 360))
		PLSE ABC 2 BRIGHT A_SpawnItem("BlueFlare")
		PLSE DE 2 Bright A_SpawnItem("BlueFlareSmall")
		Stop
	}
}

ACTOR VanillaBFG9000 : BFG9000
{
	Game Doom
	+FLOORCLIP
	+DONTGIB
	Height 20
	Weapon.SelectionOrder 2
	Weapon.BobRangeX 0.3
	Weapon.BobRangeY 0.5
	Weapon.BobStyle InverseSmooth
	Weapon.BobSpeed 2.0
	Weapon.AmmoUse1 40
	Weapon.AmmoUse2 1
	Weapon.AmmoGive1 40
	Weapon.AmmoGive2 40
	Weapon.AmmoType1 "GasMortarClassic1"
	Weapon.AmmoType2 "GasMortarClassic2"
	+WEAPON.NOAUTOFIRE
	+WEAPON.NOAUTOAIM
	+WEAPON.AMMO_CHECKBOTH
	+INVENTORY.RESTRICTABSOLUTELY
	Inventory.ForbiddenTo "Doomer", "Alpha"
	Inventory.RestrictedTo "Purist"
	Inventory.PickupMessage "$GOTBFG9000"
	Tag "$TAG_BFG9000"
	States
	{
	Ready:
		BFGG A 1 A_WeaponReady
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		Loop
	Deselect:
		BFGG A 1 A_Lower
		Loop
	Select:
		BFGG A 1 A_Raise
		Loop
	Fire:
        TNT1 A 0 A_PlaySound("BFGCHARGE")
		BFGC ABABABABABABABAB 2 BRIGHT A_FireCustomMissile("GreenFlareSpawn",0,0,0,0)
        BFGF A 2 BRIGHT A_FireCustomMissile("GreenFlareSpawn",0,0,0,0)
        TNT1 A 0 A_PlaySound("BFGFIRE")
		TNT1 AAA 0 A_FireCustomMissile("GreenFlareSpawn",0,0,0,0)
        TNT1 A 0 A_Recoil(8)
        //TNT1 A 0 A_ZoomFactor(1.3)
        TNT1 A 0 BRIGHT A_FireCustomMissile("Alerter", 0, 0, -1, 0)
		TNT1 A 0 A_FireBFG
		BFGF B 2 BRIGHT// A_FireCustomMissile("SuperBFGBall", 0, 1, 0, 0)
		TNT1 A 0 A_FireCustomMissile("ShakeYourAssDouble", 0, 0, 0, 0)
        BFGF CDEF 2 BRIGHT A_FireCustomMissile("GreenFlareSpawn",0,0,0,0)
        //TNT1 A 0 A_ZoomFactor(1.0)
        BFGG A 1 BRIGHT
		BFGG A 4
        TNT1 A 0 A_Refire
		Goto Ready
	AltFire:
		BFGC AB 1 BRIGHT A_FireCustomMissile("GreenFlareSpawn",0,0,0,0)
		TNT1 A 0 A_FireCustomMissile("2704Ball",random(8,-8),1,random(5,-5),random(5,-5),0,random(5,-5))
		TNT1 A 0 A_FireCustomMissile("2704Ball2",random(8,-8),0,random(5,-5),random(5,-5),0,random(5,-5))
		BFGF E 1 Bright A_CheckReload
		TNT1 A 0 BRIGHT A_FireCustomMissile("Alerter", 0, 0, -1, 0)
		TNT1 A 0 A_FireCustomMissile("ShakeYourAssDouble", 0, 0, 0, 0)
		BFGF CDEF 0 A_Light0
		//TNT1 A 0 A_ZoomFactor(1.0)
		BFGF A 3
		BFGG A 0 A_Refire
		Goto Ready
	Spawn:
		BFUG A -1
		Stop
	}
}

Actor 2704Ball : PlasmaBall
{
	Damage 16
	BounceType "Classic"
	BounceFactor 1.0
	Obituary "%o was burned by %k's BFG."
	Seesound "BetaBall/Fire"
	Decal GreenPlasmaScorch
	States
	{
	Spawn:
		BBGB AB 6 Bright
		Loop
	Death:
		BBGB C 6 Bright
		BBGB DE 4 Bright
		Stop
	}
}
	
Actor 2704Ball2 : 2704Ball
{
	Decal RedPlasmaScorch
	States
	{
	Spawn:
		BBG2 AB 6 Bright
		Loop
	Death:
		BBG2 CDEF 3 Bright
		BBG2 GHI 3 Bright thrustthingz(0,5,0,0)
		Stop
	}
}

actor ClassicUnmaker : DoomWeapon 9901
{
	//$Category Weapons
	spawnid 84
	game Doom
	scale 0.82
	Weapon.SelectionOrder 2900
	Inventory.PickupMessage "What the !@# is this!"
	AttackSound "weapons/unmaker"
	Weapon.AmmoUse 1
	Weapon.AmmoGive 0
	Weapon.AmmoType "DemonBlood"
	Inventory.Icon LGUNA0
	-WEAPON.AMMO_OPTIONAL
	Inventory.ForbiddenTo "Doomer", "Alpha", "Alpha"
	Inventory.RestrictedTo "Purist"
	+INVENTORY.RESTRICTABSOLUTELY
	States
	{
	Spawn:
		LGUN A -1
		loop
	Ready:
		UNMC A 1 A_WeaponReady
		TNT1 A 0 A_Giveinventory("DemonBlood", 600)
		loop
	Deselect:
		UNMC A 1 A_Lower
		loop
	Select:
		UNMC A 1 A_Raise
		loop
	Fire:
		UNMC A 0 A_JumpIfInventory ("WeaponPower", 1, 4)
		UNMC A 0 A_GunFlash
		UNMC A 3 A_FireCustomMissile ("UnmakerLaserClassic")
		UNMC A 7
		Goto Ready
		UNMC A 0 A_JumpIfInventory ("WeaponPower", 2, 4)
		UNMC A 0 A_GunFlash
		UNMC A 3 A_FireCustomMissile("UnmakerLaserClassic")
		UNMC A 2
		Goto Ready
		UNMC A 0 A_JumpIfInventory ("WeaponPower", 3, 8)
		UNMC A 0 A_GunFlash
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", -1.5)
		UNMC A 0 A_JumpIfNoAmmo (3)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", 1.5)
		UNMC A 3
		UNMC A 2
		UNMC A 0 A_Refire
		goto Ready
		UNMC A 0
		Goto Hold1
	Hold1:
		UNMC A 0 A_GunFlash
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic")
		UNMC A 0 A_JumpIfNoAmmo (5)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", -4.5)
		UNMC A 0 A_JumpIfNoAmmo (3)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", 4.5)
		UNMC A 3
		UNMC A 2
		UNMC A 0 A_Refire ("Hold2")
		Goto Ready
	Hold2:
		UNMC A 0 A_GunFlash
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic")
		UNMC A 0 A_JumpIfNoAmmo (5)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", -6.0)
		UNMC A 0 A_JumpIfNoAmmo (3)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", 6.0)
		UNMC A 3
		UNMC A 2
		UNMC A 0 A_Refire ("Hold3")
		Goto Ready
	Hold3:
		UNMC A 0 A_GunFlash
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic")
		UNMC A 0 A_JumpIfNoAmmo (5)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", -7.5)
		UNMC A 0 A_JumpIfNoAmmo (3)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", 7.5)
		UNMC A 3
		UNMC A 2
		UNMC A 0 A_Refire ("Hold4")
		Goto Ready
	Hold4:
		UNMC A 0 A_GunFlash
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic")
		UNMC A 0 A_JumpIfNoAmmo (5)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", -9.0)
		UNMC A 0 A_JumpIfNoAmmo (3)
		UNMC A 0 A_FireCustomMissile ("UnmakerLaserClassic", 9.0)
		UNMC A 3
		UNMC A 2
		Goto Ready
	Flash:
		UNMC B 3 bright
		goto LightDone
		UNMC B 3 bright
		goto LightDone
	}
}

ACTOR DemonBlood : Ammo
{
	+INVENTORY.IGNORESKILL
	Inventory.MaxAmount 600
	Inventory.ForbiddenTo "Doomer", "Alpha", "Alpha"
	Inventory.RestrictedTo "Purist"
	Inventory.Icon "LGUNA0"
}

ACTOR WeaponPower : Inventory
{
	Game Doom
	+UNDROPPABLE
	Inventory.MaxAmount 3
}

ACTOR WpnPower1Icon : Inventory
{
	Game Doom
	+UNDROPPABLE
	Inventory.MaxAmount 1
	Inventory.InterHubAmount 1
	+INVENTORY.PERSISTENTPOWER
	Inventory.Icon "POW1E0"
	+INVENTORY.INVBAR
}

ACTOR WpnPower2Icon : Inventory
{
	Game Doom
	+UNDROPPABLE
	Inventory.MaxAmount 1
	Inventory.InterHubAmount 1
	+INVENTORY.PERSISTENTPOWER
	Inventory.Icon "POW2E0"
	+INVENTORY.INVBAR
}

ACTOR WpnPower3Icon : Inventory
{
	Game Doom
	+UNDROPPABLE
	Inventory.MaxAmount 1
	Inventory.InterHubAmount 1
	+INVENTORY.PERSISTENTPOWER
	Inventory.Icon "POW3E0"
	+INVENTORY.INVBAR
}

ACTOR WpnPower1 : CustomInventory 9905
{
	//$Category Powerups
	Game Doom
	Inventory.Amount 1
	inventory.MaxAmount 1
	Inventory.Icon "POW1E0"
	Inventory.PickupMessage "You have a feeling that it wasn't meant to be touched."
	Inventory.PickupSound "misc/i_pkup"
	+INVENTORY.PERSISTENTPOWER
	+INVENTORY.INVBAR
	States
	{
	Spawn:
		POW1 ABCDEDCB 5 BRIGHT
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory ("WeaponPower", 1)
		TNT1 A 0 A_GiveInventory ("WpnPower1Icon", 1)
		stop
	}
}

ACTOR WpnPower2 : CustomInventory 9906
{
	//$Category Powerups
	Game Doom
	Inventory.Amount 1
	inventory.MaxAmount 1
	Inventory.Icon "POW2E0"
	Inventory.PickupMessage "It must do something..."
	Inventory.PickupSound "misc/i_pkup"
	+INVENTORY.PERSISTENTPOWER
	+INVENTORY.INVBAR
	States
	{
	Spawn:
		POW2 ABCDEDCB 5 BRIGHT
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory ("WeaponPower", 1)
		TNT1 A 0 A_GiveInventory ("WpnPower2Icon", 1)
		stop
	}
}   

ACTOR WpnPower3 : CustomInventory 9907
{
	//$Category Powerups
	Game Doom
	Inventory.Amount 1
	inventory.MaxAmount 1
	Inventory.Icon "POW3E0"
	Inventory.PickupMessage "Whatever it is, it doesn't belong in this world."
	Inventory.PickupSound "misc/i_pkup"
	+INVENTORY.PERSISTENTPOWER
	+INVENTORY.INVBAR
	States
	{
	Spawn:
		POW3 ABCDEDCB 5 BRIGHT
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory ("WeaponPower", 1)
		TNT1 A 0 A_GiveInventory ("WpnPower3Icon", 1)
		stop
	}
}

actor UnmakerLaserClassic
{
  game Doom
  radius 2
  height 2
  speed 30
  scale 0.75
  damage 10
  PROJECTILE
  +RANDOMIZE
  Renderstyle Normal
  Alpha 1
  SeeSound "weapons/unmaker"
  DeathSound "Null"
  Obituary "%o was unmade by %k."
  States
  {
  Spawn:
//    LAZR AB 1 bright A_SpawnItemEx (UnmakerLaserClassicTrail,0,0,0,0,0,0,0,0,0)
    LAZR A 1 bright
    loop
  Death:
    LPUF AB 2 bright A_FadeOut (0.1)
    loop
  }
}

actor UnmakerLaserTrailClassic
{
  game Doom
  height 4
  radius 2
  scale 0.5
  speed 0
  damage 0
  Renderstyle Normal
  Alpha 1
  seesound "null"
  deathsound "null"
  PROJECTILE
  +RANDOMIZE
  states
  {
  Spawn:
    LPUF C 10 bright
    stop
  Death:
    LPUF C 1 bright
    stop
  }
}