Missile Guidance Block для Space Engineers
This mod supplements the Large Block Torpedo Parts MK2 mod by adding an Automatic Missile Guidance Block. The Guidance Block will automatically lock-on and home in on targets.
NEW! Updated Guidance Block with tons of customizations and Lock-On Modes!
Large Block Torpedo Parts MK2 is Optional, as you can mount the Guidance Block on any other Torpedo mods. However, it is still Recommended to use it for consistency:
http://steamcommunity.com/sharedfiles/filedetails/?id=1302186713
Nightshade Torpedo Bomber using this Guidance Block:
http://steamcommunity.com/sharedfiles/filedetails/?id=948254909
Use this demo build Skyguard Mobile SAM for reference (Tank installed with Guidance Block):
http://steamcommunity.com/workshop/filedetails/?id=869058180
Credits for Models, Textures, Torpedo Parts and all other items goes to The Witch, Volg and Shaostoul. Special thanks to venator2070 for testing and logic suggestions.
How To Build
1) Create a missile using the Large Block Torpedo Parts MK2, attached via Merge Block (CC Interface, Hardpoint, Small Merge Block etc).

2) Add the Guidance Block to your missile. The block MUST face forward, where the missile is intended to be locked and launched. The arrow is the forward guide.



How To Use
1) Aim at your target. Pin-point aiming is not required, as it will lock on in a small cone in front of the missile. Lock on range is 30km by default.

2) Use the "Lock On Target" button to lock on to the target in front.

3) A "Target Locked: <Grid Name>" message will be displayed (Image shows target grid is "Cursor") to indicate target is found and locked-on. Block will also emit Orange color to indicate target is locked on (See Guidance Block Emissive Indicator Section for more information).


4) Use the "Launch Missile" button to launch the missile (Shown in above image, below the Lock On Target button).
Note: If you launch the missile without locking on, the missile will be launched in a Search and Destroy mode, locking on to the first target it finds.
5) Alternatively, you can also use Toolbar Actions or PB Script to trigger the Target Lock-On and Missile Launch. Below shows the 2 options:


> "Lock On Target" PB Action Name => Adn.ActionLockOnTarget
> "Launch Missile" PB Action Name => Adn.ActionLaunchMissile
Guidance Block Emissive Indicator
Guidance Block will emit colors to indicate its current state:
White - Idle.
Orange - Target Locked, Missile Idle.
Yellow - Missile Launched and In-Flight with Search and Destroy Mode.
Green - Target Locked, Missile Homing to Target.
Blue - Target Lost.
Red - Error
Missile Separation Via Merge Block
When the "Launch Missile" command is given, The Missile Guidance Block does a traversal by doing breath first search to find the closest connected Merge Block to detach. It also considers the mount points so it will detach properly, unlike the Easy Lidar Homing Script (as in-game script APi is limited, can only know if block is ajacent to it but cant know if it is connected by mount points)
Additional Features!
- Target Friendly, Target Neutral and other Switches
- Lock On Range Slider (The further the targetthe more power it consumes)
- Proportional Navigation Constant Slider
- Detach Merge Block Name Textfield (By default it is blank, meaning closest merge block of any name)
- Lock On Mode Dropdown (Lock On Forward, Lock On By Aim Block, Lock On To GPS, GPS Mode, Glide Mode)
- Aim Block can also be a Turret (Applicable to Lock-On By Aim Block Mode)
- GPS Text Field (applicable only for GPS related modes)
- Proximity Detonation