Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Multi turret control.
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
439.148 KB
3 Apr, 2022 @ 1:11pm
3 Apr, 2022 @ 1:31pm
2 Change Notes ( view )

Subscribe to download
Multi turret control.

Description
This is an example of a collection of mc's i made.
Main feature is this will let you drop a turret where ever and it will aim at the player controlled turret. No calculating offset from main turret needed.
Their is also a bullet drop for a set distance included but this is still a wip.



How it works
  • The player controlled turret ( designator ) calculates the exact xyz of the point of the laser using trig, if you want to see the exact functions look in the mc.
    This has some margin of error due to placement of sensors but it should be within 1 metre.
  • The xyz is then sent to individual turrets which have their own xyz sensors.
    With the xy sensor of the individual turret and xy of the designator point the turret can calculate the rotation needed.
    And with the z sensor of the turret and the z of the designator the pitch can be calculated, this pitch can then be offset depending on the distance to account for bullet drop.

Known issues / qwerks
  • Depending on certain rotations and placement of turrets, the turret will do a complete 360 degree rotation even tho it only needs to do a 1 degree rotation. Happens usually when pointing south and aiming south.
  • Can only have 6 of the same type of gun shooting at the same time, so either offset the shooting or use a mix of gun types.
  • The Turrets themselves are not self aware so can and will get stuck and shoot them-selves.


Thanks for looking and if you do use these mc's or just the entire thing yourself, credit towards here or myself will be much appreciated =)
4 Comments
Wolves Hero 21 Jan @ 1:53pm 
This is worked great on my helicopter with 2 turrets on both wings but don't have radar lock on target & don't have ballistic calculator
ACE 7 Jul, 2022 @ 8:53am 
does it use
X: ch1
Y: ch2
Z: ch3?
Sharp  [author] 7 Jul, 2022 @ 8:34am 
the turrets will only follow the designating laser so you can control the designating laser with a turret ( with a few tweaks it can also be controlled by a stabilised camera as well )
ACE 7 Jul, 2022 @ 12:23am 
if i want to use perhaps a radar do all the turrets have lead?