
// Scriptable marine -------------------------------------------------------

ACTOR ScriptedMoon : ScriptedMarine
{
	Game Doom
	SpawnID 151
	Health 300
	Radius 16
	Height 56
	Scale 0.5
	Mass 100
	Speed 8
	Painchance 160
	MONSTER
	-COUNTKILL
	Translation null
	+DONTTRANSLATE
	Damage 100
	DeathSound "dsideth"
	PainSound "dsipain"
	SeeSound "dsitaunt"
	

	
	States
	{
	Spawn:
		SM64 A 4 A_MarineLook
		SM64 A 4 A_MarineNoise
		Loop
	Idle:
		SM64 A 4 A_MarineLook
		SM64 A 4 A_MarineNoise
		SM64 A 4 A_MarineLook
		SM64 B 4 A_MarineNoise
		SM64 B 4 A_MarineLook
		SM64 B 4 A_MarineNoise
		Loop
	See:
		SM64 ABCD 4 A_MarineChase
		Loop

	Melee.Fist:		
		SM64 E 4 A_FaceTarget
		SM64 F 4 A_M_Punch(1)
		SM64 A 9
		SM64 A 0 A_M_Refire(1)
		Loop
		SM64 A 5 A_FaceTarget
		Goto See
	Melee.Berserk:
		SM64 E 4 A_FaceTarget
		SM64 F 4 A_M_Punch(10)
		SM64 A 9
		SM64 A 0 A_M_Refire(1)
		Loop
		SM64 A 5 A_FaceTarget
		Goto See
	Melee.Chainsaw:
		SM64 E 4 A_MarineNoise
		SM64 E 4 A_M_Saw
		SM64 E 0 A_M_SawRefire
		goto Melee.Chainsaw+1
		SM64 A 0
		Goto See

	Missile:
	Missile.None:
		SM64 E 12 A_FaceTarget
		Goto Idle
		SM64 F 6 BRIGHT
		Loop
	Missile.Pistol:
		SM64 E 4 A_FaceTarget
		SM64 F 6 BRIGHT A_M_FirePistol(1)
		SM64 A 4 A_FaceTarget
		SM64 A 0 A_M_Refire
		SM64 A 5
		Goto See
	Fireloop.Pistol:
		SM64 F 6 BRIGHT A_M_FirePistol(0)
		SM64 A 4 A_FaceTarget
		SM64 A 0 A_M_Refire
		Goto Fireloop.Pistol
		SM64 A 5
		Goto See
	Missile.Shotgun:
		SM64 E 3 A_M_CheckAttack
		SM64 F 7 BRIGHT A_M_FireShotgun
		Goto See
	Missile.SSG:
		SM64 E 3 A_M_CheckAttack
		SM64 F 7 BRIGHT A_M_FireShotgun2
		Goto See
	Missile.Chaingun:
		SM64 E 4 A_FaceTarget
		SM64 FF 4 BRIGHT A_M_FireCGun(1)
		SM64 FF 4 BRIGHT A_M_FireCGun(0)
		SM64 A 0 A_M_Refire
		Goto Missile.Chaingun+3
		SM64 A 0
		Goto See
	Missile.Rocket:
		SM64 E 8
		SM64 F 6 BRIGHT A_M_FireMissile
		SM64 E 6
		SM64 A 0 A_M_Refire
		Loop
		SM64 A 0
		Goto See
	Missile.Plasma:
		SM64 E 2 A_FaceTarget
		SM64 E 0 A_FaceTarget
		SM64 F 3 BRIGHT A_M_FirePlasma
		SM64 A 0 A_M_Refire
		Goto Missile.Plasma+1
		SM64 A 0
		Goto See
	Missile.Railgun:
		SM64 E 4 A_M_CheckAttack
		SM64 F 6 BRIGHT A_M_FireRailgun
		Goto See
	Missile.BFG:
		SM64 E 5 A_M_BFGSound
		SM64 EEEEE 5 A_FaceTarget
		SM64 F 6 BRIGHT A_M_FireBFG
		SM64 A 4 A_FaceTarget
		SM64 A 0 A_M_Refire
		Loop
		SM64 A 0
		Goto See

	SkipAttack:
		SM64 A 1
		Goto See
	Pain:
		SM64 G 4
		SM64 G 4 A_Pain
		Goto Idle
	Death:
		SM64 H 10
		SM64 I 10 A_Scream
		SM64 J 10 A_NoBlocking
		SM64 KLM 10
		SM64 N -1
		Stop
	XDeath:
		SM64 O 5
		SM64 P 5 A_XScream
		SM64 Q 5 A_NoBlocking
		SM64 RSTUV 5
		SM64 W -1
		Stop
	Raise:
		SM64 MLKJIH 5
		Goto See
	}
}

//---------------------------------------------------------------------------

ACTOR MoonFist : ScriptedMoon 9101
{
	Game Doom
	States
	{
	Melee:		
		Goto Super::Melee.Fist
	Missile:
		Stop
	}
}


//---------------------------------------------------------------------------

ACTOR MoonBerserk : MoonFist 9102
{
	Game Doom
	States
	{
	Melee:		
		Goto Super::Melee.Berserk
	Missile:
		Stop
	}
}
//---------------------------------------------------------------------------

ACTOR MoonChainsaw : ScriptedMoon 9103
{
	Game Doom
	States
	{
	Melee:
		Goto Super::Melee.Chainsaw
	Missile:
		Stop
	}
}



//---------------------------------------------------------------------------

ACTOR MoonPistol : ScriptedMoon 9104
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Pistol
	}

}

//---------------------------------------------------------------------------

ACTOR MoonShotgun : ScriptedMoon 9105
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Shotgun
	}

}



//---------------------------------------------------------------------------

ACTOR MoonSSG : ScriptedMoon 9106
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.SSG
	}
}

//---------------------------------------------------------------------------

ACTOR MoonChaingun : ScriptedMoon 9107
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Chaingun
	}
}


//---------------------------------------------------------------------------

ACTOR MoonRocket : MoonFist 9108
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Rocket
	}

}

//---------------------------------------------------------------------------

ACTOR MoonPlasma : ScriptedMoon 9109
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Plasma
	}

}

//---------------------------------------------------------------------------

ACTOR MoonRailgun : ScriptedMoon 9110
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.Railgun
	}

}

//---------------------------------------------------------------------------

ACTOR MoonBFG : ScriptedMoon 9111
{
	Game Doom
	States
	{
	Missile:
		Goto Super::Missile.BFG
	}
}
