Space Engineers

Space Engineers

616 ratings
WHAM | Whip's Homing Advanced Missile Script
5
3
9
6
3
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
581.223 KB
25 May, 2020 @ 9:16am
3 May, 2024 @ 10:00pm
56 Change Notes ( view )

Subscribe to download
WHAM | Whip's Homing Advanced Missile Script

In 1 collection by Whiplash141
Whip's Scripts
22 items
Description
WHAM | Whip's Homing Advanced Missile Script


  Description
WHAM is an advanced homing missile script that supports a variety of features. It is quite configurable offering users options to customize things from the launch staging to the navigation constants used in the homing algorithms.

The main homing algorithms it uses are also based off of the real world Proportional Navigation control law (or ProNav) which provides pretty robust interception capabilities.

When used in conjunction with my fire control script, LAMP, missiles can be fired in homing or beam-riding configurations.

This script also utilizes the new(ish) antenna communication API instead of exploits like some scripts used (including my old one). This permits more robust communication between the firing ship and the missile mid-flight and is less hacky/cheaty.

Note: This script supports camera raycast designation to a max range of 5km.

Example ships:


  Instructions
See the full guide for instructions.




  Author's Nodes
This code has been in development for around 4 years now. Hopefully that means it is super robust and well tested; however, if you notice any issues/bugs, please let me know.

Additionally, there is a lot of code, so I've had to compress the text. I've removed most unnecessary white-space, but preserved variable names, comments, and region tags. If you copy paste the code into Visual Studio or use an online beautifier, you can easily fix the formatting and get the indentation back

Also huge thanks to my testers: jonnytaco, Lord Commissar, 5URG3, Rose Minotaur, ToesPeregrine4, jphuffman55, and Marcelo! These guys helped me track down some crazy hard to reproduce bugs and gave me lots of feedback!

Enjoy!

(Also, this should also go without saying, but do not reupload without explicit permission from me, not even to mod.io.)

No this can not use the new targeting mechanics directly because there is absolutely no API for it.
Popular Discussions View All (1)
444
1
24 May @ 1:21pm
PINNED: Help/Questions (WHAM)
Whiplash141
711 Comments
Whiplash141  [author] 16 May @ 11:08am 
It's a game limitation, you can only mitigate the effects, not prevent them
DazeyDream 16 May @ 5:29am 
Err, I'm not well versed in arcane speak, is this something I can do?
Whiplash141  [author] 15 May @ 6:44pm 
It is the programmable block compiling on the main thread. The way to mitigate is to stagger building of missiles to the scripts compile at different ticks.

Why do scripts compile on the main thread? Idk :(
DazeyDream 15 May @ 4:44pm 
version for below comment
Version="170.22.2" Date = "2024/05/03" CompatVersion = "95.0.0"
DazeyDream 15 May @ 4:43pm 
When welding wham missiles, there is a jolt of lag presumably when the programming block with wham in gets built. It's fine when the server has fights with these missiles pre-built, but the jolts of lag mid fight when wham blocks are built are a concern. Is there a way I can reduce this jolt of lag?
TheGuyKnightly 19 Jan @ 9:45pm 
Is it possible to make this fire and forget? (I did NOT understand a single word in here)
Whiplash141  [author] 13 Jan @ 12:24pm 
That is not an error associated with this script or any script for that matter. Sounds like you have mods or plugins installed.
Drunken Operator 12 Jan @ 7:51pm 
it did not
Drunken Operator 12 Jan @ 7:44pm 
I fire 1 missile and everything works correctly, but upon the launch of the second missile i get the error "Error: Cannot Find the Blueprint File" spammed over and over again and have to restart my game, i am in a testing world so i removed the old target and made a new one, but it isnt working correctly, going to test again and see if re targeting after a game restart fixes my issue
Yoghurt 18 Dec, 2024 @ 12:07pm 
I see! Thanks. The remote control I was just wondering about because it would be cool to be able to sometimes control it and for example escort some other ship with torpedoes, or to launch and print a bunch of them before sending them to a target to get a more overwhelming amount at once. But I get stuff like that wouldn't fit in the script.