Stormworks: Build and Rescue

Stormworks: Build and Rescue

34 ratings
Master Slave Turret System
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
704.392 KB
7 Oct, 2021 @ 8:35am
20 Oct, 2021 @ 12:20pm
11 Change Notes ( view )

Subscribe to download
Master Slave Turret System

Description
Master Slave Turret System
This controller allow you to control all turret from a single one.

Don't forget to like if you do :)



Features
  • Stabilized
  • Optional laser range finder
  • Key / View Control
  • Remote Controled
  • Radar Guided
  • GPS Guided
  • Gimbal Guided (GPS)
  • Beacon Guided
  • Manual Guided

How to use ?
Blocks
Pink -> Needed
Orange -> Optional / Can be replaced
Yellow -> Not needed

The closer the sensors are from the pivots axis, the better it will aim.

Configurations (Properties)
"Request Auto Correct" -> if enabled the turret will compensate for the movement of the vehicle.
DO NOT ENABLE FOR TURRET MANUALY AIMED WITH A SIGHT ATTACHED TO THE TURRET.

"Visual Aim Mode":
-> First Person : Will rotate according to the player view rotation.
-> Third Person : Will aim where the player is looking.

You can change the ballistic computation using the "Projectile velocity" or "gravity".

If you don't want to add a laser range finder to a turret you need to disable the property "Has laser range finder".



Notes
I will add some sight later.



Composite Data
Booleans:
1) Activated
2) Shot one (do not work for automatic gun)
3) Shot all
4) Ask auto correct
5) Loaded
6) Is Master
7) Track (Gimbal) | Beacon enabled (Laser) | Radar enabled (Radar)
8) Stabilize (Gimbal)

Numbers:
1) Target X
2) Target Y
3) Target altitude
4) Target range
5) Current rotation (-0.5 0.5)
6) Target rotation (-0.5 0.5)
7) Travel time
33 Comments
f18effect 26 Aug, 2023 @ 6:22am 
What if i wanted to make a turret with a laser and radar?
puipuix  [author] 12 Oct, 2022 @ 1:07am 
I didn't programe it. I don't know how you made your CIWS but you could override the calculated coordinate (should be composite 1 and 2) to add the speed of the target -> [x = x + delta(x) * time_to_hit_target; y = y + delta(y) * time_to_hit_target]
AegiusX3 9 Oct, 2022 @ 3:37am 
and how do i get it to lead the target slightly or aim straight at it instead of behind it?
puipuix  [author] 9 Oct, 2022 @ 2:57am 
Open the turret controller, near the top you should find a "=" node, increase epsilon to allow your turret to shot at a greater angle off the target point
AegiusX3 9 Oct, 2022 @ 2:29am 
I have been trying this for a CIWS, but it keeps lagging behind the target, and not allowing the gun to fire because of this
crae cochran 21 Apr, 2022 @ 11:48am 
never mind got it to work lol for some lesson
ReLIFE (schizo) 10 Feb, 2022 @ 11:40am 
Cant get this to work even with the manual aim logic, i have one turret that rotation does not properly on. And the other turret is spazzing out
Tuutikki 31 Oct, 2021 @ 9:03am 
Will do some more tests and see how everything behaves. Thanks for your help so far!
puipuix  [author] 31 Oct, 2021 @ 5:10am 
I don't clearly see who's attached to what but the velocity positive arrow should rotate right and the pitch pivot positive arrow should rotate up.
And I think you don't need to invert the compass sensor, but if it works like that you can keep it there.
To be honest I don't think you need to invert anything, except maybe the velocity pivot if it's upside down, but I think the rest should stay the same. Maybe you can try to cut/paste one of the example turret without inverting the blocks and then look if something seem to be inverted