ACTOR Landmine
{
	Radius 2
	Height 1
	scale 0.5
	states
	{
		Spawn:
			MINE CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD 5
                        MINE C 5 A_SpawnItem("Landmine_Spawned2", 0)
                        stop
	}
}

ACTOR Landmine_Spawned
{
	Health 1500
	Speed 0
	Radius 11
	Height 11
	MONSTER
	-ISMONSTER //Makes it spawnable everywhere
	+FASTER +FASTMELEE +FRIENDLY +NEVERRESPAWN +LOOKALLAROUND +NOBLOOD
	scale 0.5
	Obituary "Got blown up by a landmine"
        explosionradius 64
        explosiondamage 256
        SeeSound "w9/fire1"
        DeathSound "weapons/rocklx"
  MeleeRange 128
  MaxTargetRange 128
  
	DamageFactor "MarineFire", 0.0
	DamageFactor "MarineFire2", 0.0
	DamageFactor "MarineFire3", 0.0
	states
	{
		Spawn:
			MINE AB 5 A_Look
			Goto Spawn
		See:
			MINE AB 5 A_Chase
			Goto See
		Melee:
			MISL B 8 bright A_Explode
			MISL C 6 bright
			MISL D 4 bright
			goto stop
		Pain:
			MINE A 2
			MINE A 2 A_Pain
			goto See
		Death:
			MISL B 8 bright A_Explode
			MISL C 6 bright
			MISL D 4 bright
                        stop
	}
}

ACTOR Landmine_Spawned2
{
	hitobituary "%o was shaved by a Mine Drone"
	health 5
	painchance 180
	speed 0
	radius 10
	height 10
	mass 400
	seesound "baby/sight"
	painsound "baby/pain"
	deathsound "baby/death"
	activesound "baby/active"
	
	scale 0.7
	explosionradius 64
	explosiondamage 512
	
	MONSTER
	+NOBLOOD
	+FRIENDLY
	+FLOORCLIP
	+NEVERRESPAWN
        +LOOKALLAROUND
  MeleeRange 64
  MaxTargetRange 64
  
	DamageFactor "MarineFire", 0.0
	DamageFactor "MarineFire2", 0.0
	DamageFactor "MarineFire3", 0.0
	states
	{
		Spawn:
			MINE AB 5 A_Look
			Goto Spawn
		See:
			MINE A 0
			MINE AABB 5 A_Chase//("Melee", "", CHF_DONTMOVE)
			Goto See
		Melee:
			MINE A 0 A_FaceTarget
			goto Death
		Pain:
			MINE A 1
			MINE B 1 A_Pain
			goto See
		Death:
			MINE A 5 bright
			MINE A 5 bright A_PlaySound("w9/fire2", CHAN_AUTO)
			MINE A 5 bright
			MINE A 5 bright A_PlaySound("w9/fire2", CHAN_AUTO)
			MINE A 5 bright
			MINE B 2 bright A_Explode
			MINE B 0 bright A_CustomMissile("LandmineBoom")
			MINE B 6 bright
			NULL A 50
			MINE A 0 A_PlaySound("weapons/rocklx")
			NULL A 50
			MINE A 0 A_PlaySound("weapons/rocklx")
			stop
		Raise:
			SAWD NMLKJI 5
			goto See
	}
}

actor LandmineBoom
{
	spawnid 170
	Radius 12
	Height 8
	Speed 0
	Damage 250
	Projectile
	Scale 3.0//0.74
	+NOTIMEFREEZE
      //+EXTREMEDEATH
	+ROCKETTRAIL
	+SEEKERMISSILE
	//-RIPPER
	DeathSound "DSQKLDTH"
        explosionradius 200
        explosiondamage 300
	renderstyle add
  DamageType MarineFire
	States
	{
	Spawn:
		QROK A 1 
		goto Death
    See:
	QROK A 0 Bright //A_MeleeAttack
	QROK A 0 Bright A_Die
	Death:
		EXP3 A 2 Bright A_Explode
		NULL A 0 A_SpawnItem("ExtraExplosion")
		NULL A 0 A_SpawnItem("Engulf")
		EXP3 BCDEFGHIJKLMNOPQRSTUVWXYZ 1 Bright
		Stop
	}
}