//==================================
// DOOM Player
//==================================

Actor ComplexDoomPlayer : DoomPlayer
{
Speed 1
Health 120
GibHealth 50
Radius 16
Height 56
Mass 100
PainChance 255
Species "Player"
-NOSKIN
+THRUSPECIES
+DONTHARMSPECIES
+MTHRUSPECIES
+NOICEDEATH
DamageFActor "Marine", 0.0
DamageFActor "MechStep", 0.0
DamageFActor "Mine", 0.0
Player.MaxHealth 100
Player.SoundClass "Marine"
Player.ColorRange 112, 127
Player.DisplayName "Doom Guy"
Player.CrouchSprite "PLYC"
Player.DamageScreenColor Red, 0.1
Player.StartItem "Handgun"
Player.StartItem "HandGrenadeAmmo" 2
Player.StartItem "MineAmmo" 2
Player.StartItem "NewMelee"
Player.StartItem "BulletMag" 60
Player.StartItem "PistolMagazine" 16
Player.StartItem "ShotgunMagazine" 9
Player.StartItem "SSGShell" 2
Player.StartItem "ShotgunDrum" 16
Player.StartItem "QuadShell" 4
Player.StartItem "ARMagazine" 41
Player.StartItem "RocketDrum" 7
Player.StartItem "GrenadeDrum" 7
Player.StartItem "PlasmaCell" 50
Player.StartItem "DemonMagazine" 60
Player.StartItem "CellCharge" 50
Player.StartItem "MP40Mag" 33
Player.StartItem "ModdedGreenArmor"
Player.StartItem "LootBoxItem"
Player.StartItem "DeployableShield"
Player.StartItem "MedPack"
States
{
		Spawn:
		    TNT1 A 0 A_TakeInventory("IsDemon",1)
			PLAY A 1
			Loop
		See:
		    TNT1 A 0 A_TakeInventory("IsDemon",1)
			PLAY ABCD 5
			Goto Spawn
		Missile:
			PLAY E 12
			Goto Spawn
		Melee:
			PLAY F 6 Bright
			Goto Missile
		Pain:
			PLAY G 4
			PLAY G 4 A_Pain
			Goto Spawn
		Pain.Potato:
		    TNT1 A 0
		    TNT1 A 0 ThrustThingZ(0,80,0,0)
            TNT1 A 0 ThrustThing(Random(0,359),80)
			TNT1 A 0 A_PlaySound("potato/bounce")
            PLAY G 4 A_Pain
	        Goto Spawn
		Death:
			TNT1 A 0
			TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
			TNT1 A 0 A_TakeInventory("MineAction",1)
			TNT1 A 0 A_TakeInventory("RailgunAction",1)
			PLAY H 8
			PLAY I 8 A_PlayerScream
			PLAY J 8 A_NoBlocking
			PLAY K 8
			PLAY L 8 A_SpawnItem("BodyCrash",0,0,0,0)
			PLAY M 8
			PLAY N -1
			Stop
		XDeath:
			TNT1 A 0
			TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
			TNT1 A 0 A_TakeInventory("MineAction",1)
			TNT1 A 0 A_TakeInventory("RailgunAction",1)
			TNT1 A 0 A_SpawnItemEx("GibbedGenerator",0,0,0,0,0,0,0,128,0)
			PLAY P 3 A_PlayerScream
			PLAY Q 3 A_NoBlocking
			PLAY RSTUV 3
			PLAY W -1
			Stop
		Death.Potato:
			TNT1 A 0
			TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
			TNT1 A 0 A_TakeInventory("MineAction",1)
			TNT1 A 0 A_TakeInventory("RailgunAction",1)
			TNT1 A 0 A_SpawnItemEx("GibbedGenerator",0,0,0,0,0,0,0,128,0)
		    TNT1 A 0 ThrustThingZ(0,80,0,0)
            TNT1 A 0 ThrustThing(Random(0,359),80)
			TNT1 A 0 A_PlaySound("bagel/kill")
			PLAY P 3 A_XScream
			PLAY Q 3 A_NoBlocking
			PLAY RSTUV 3
			PLAY W -1
			Stop
		Death.Bagel:
			TNT1 A 0
			TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
			TNT1 A 0 A_TakeInventory("MineAction",1)
			TNT1 A 0 A_TakeInventory("RailgunAction",1)
			PLAY H 8
			PLAY I 8 A_PlaySound("bagel/kill")
			PLAY J 8 A_NoBlocking
			PLAY K 8
			PLAY L 8 A_SpawnItem("BodyCrash",0,0,0,0)
			PLAY M 8
			PLAY N -1
			Stop
		Incorp:
			TNT1 A 0 A_ChangeFlag("SOLID", FALSE)
			Goto Spawn
		Corp:
			TNT1 A 0 A_ChangeFlag("SOLID", TRUE)
			Goto Spawn
}
}