Space Engineers

Space Engineers

625 arvostelua
WHAM | Whip's Homing Advanced Missile Script
5
3
9
6
3
4
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: other_script, autopilot
Tiedostokoko
Julkaistu
Päivitetty
581.223 KB
25.5.2020 klo 9.16
3.5.2024 klo 22.00
56 muutosilmoitusta ( näytä )

Tilaa ladataksesi
WHAM | Whip's Homing Advanced Missile Script

1 kokoelmassa, tekijä Whiplash141
Whip's Scripts
22 luomusta
Kuvaus
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.
Suositut keskustelut Näytä kaikki (1)
453
1
21.7. klo 10.51
TÄRKEÄ: Help/Questions (WHAM)
Whiplash141
722 kommenttia
Whiplash141  [tekijä] 23.8. klo 14.26 
idk if that is a mod or something, so I dont know if they behave like regular warheads. In any event though, you can set up a timer to trigger arbitrary actions at specific ranges from the target using its custom data and adding it to the missile group
Whiplash141  [tekijä] 6.8. klo 22.01 
No because nothing guarantees that when the program compiles that the other blocks on the missile are built. In fact it is very likely that the program will compile before several critical components are present making that an unreliable method.
Based_Stickman 6.8. klo 21.45 
could it be set to connect on wham initialization when its being built? So that it basically connects immediately if possible
Whiplash141  [tekijä] 6.8. klo 20.31 
the program has no way of knowing when all blocks are available. If you have a timer set up to build them, i'd set up the toggle there
Based_Stickman 6.8. klo 12.15 
Can we get an auto connect toggle for missiles so they they will auto refuel when they are built.... i know you can use the event controller but it barely works most times because Keen....
Whiplash141  [tekijä] 3.7. klo 21.20 
The script itself will not turn off the connector, but you can add a timer to the missile that can be triggered on any stage of the missile to execute whatever custom logic you desire
Based_Stickman 3.7. klo 19.48 
i have an event controller on the launch platform to auto connect to any new missile to fill them and it sometimes will reconnect with the missile as its launches, which is why i wanted to know if the script cant just turn off the connector
Whiplash141  [tekijä] 3.7. klo 5.43 
If it is in the middle group, the connector is disconnected on launch
Based_Stickman 2.7. klo 12.31 
can Wham automatically turn off the missile connector or do i need to have a timer on my missile to do it?
Whiplash141  [tekijä] 17.6. klo 17.24 
@dead: I saw you posted in Help/Questions, so I'll move the discussion there