Space Engineers

Space Engineers

51 ratings
Dhr's bomb drop prediction script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
393.103 KB
22 Apr, 2022 @ 4:34am
27 Aug, 2022 @ 5:01am
7 Change Notes ( view )

Subscribe to download
Dhr's bomb drop prediction script

Description
This script will point the camera at where a bomb and/or any falling object should fall to, use this to carpet bomb your enemies into dust!! or... ya know... something boooorrrrinnnggg like dropping a supply crate or something.

NOTE: Large update released, check change log for details

Features:
Two targeting modes: Vehicle height mode and raycast mode.

Vehicle height mode uses how far off the ground the vehicle is to target. This is the defualt setting. This setting is only accurate when you are on relatively flat ground

Raycast mode: This will figure out how far away you are from where the camera is pointing. To activate this you need to input an arguement. This is better for rough ground, but can be finnicky and only checks whenever a raycast hits, which, depending on the distance might add a few seconds of delay before the bomb sight is perfectly on its target. This also adds a bit of weirdness when quickly changing heights but isn't to bad.


The bomb predictor does not take into count:

Any movement other than straight foward motion.


How to use:

1.
You need a hinge facing downwards from the craft. Name this hinge "Bomb Sight Rotor"
Place a camera (Or multiple) on the hinge. Name this "Bomb Sight"
Have a control seat or station or cockpit or whatever pointing towards the front of the ship. Name this "Control Seat"

2.
Now, you add the script. To change the variable for the script, go into the edit menu, up the top should be some variables and options to change it.
To switch between the vehicle height (standard) and raycast you must run an argument to the programmable block, called "Switch," this will then switch between the two, and will confirm by showing it in the side bar of the block.

3.
For the targeting to work properly, you must be flying straight towards your target, with no rotation or sideways movement.


Credits:
Whiplash141 and Andrukha74. They did some of the heavier math for predictions when there is a speed limit.
Popular Discussions View All (2)
26
11 Dec, 2024 @ 2:01pm
PINNED: Help/Questions
Dhr
3
11 Sep, 2023 @ 11:14pm
PINNED: Feature and update suggestions
Dhr
34 Comments
Robin <3 12 Dec, 2024 @ 10:17am 
and just moving when the hinge is powered off and/or locked
Robin <3 12 Dec, 2024 @ 10:16am 
I'm having a problem where it somehow spins the hinge 360° constantly
Hosnal 4 Jan, 2024 @ 3:10pm 
Any updates?
Rightraoedhelontidae 28 Sep, 2023 @ 9:04am 
That sounds really cool!
Dhr  [author] 27 Sep, 2023 @ 10:01pm 
Alright, an update to this script, I have been working on a new version of this script, that will a 3D camera, hopefully fix the bugs that cause this script to be stupid and miss sometimes, and have a whole slue of other cool features to generally make this work better.

Also sorry for the lack of updates, I have been very busy, hopefully I can get the new version of the script out, and then i'll try to update this one so old designs can still work as well, can't put any dates on when.
Redstar 5 Sep, 2023 @ 4:10pm 
Heya, first of all, let me tell you that I absolutely love the idea behind this script, however I am facing a couple of issues. For starters, the bomb sight rotor hinge oftentimes ends up spinning around at a slow, steady pace and doing full 360s (which it shouldn't even be able to, since it's a hinge). Secondly, while sometimes it does work properly, oftentimes it overshoots by several hundred meters... Any idea how either issue could be fixed?
Rightraoedhelontidae 24 Aug, 2023 @ 9:15am 
that would be really nice yes, maybe put the weight in custom data? in kilograms or similar
NightWolf 17 Aug, 2023 @ 8:24am 
Could you allow a way to input a different weight of the bombs for things like modded bombs?
Dhr  [author] 24 Nov, 2022 @ 12:25am 
No
Dr.Potato 24 Nov, 2022 @ 12:06am 
Question, does this script work with the aerodynamics mod?