Stormworks: Build and Rescue

Stormworks: Build and Rescue

34 个评价
Master Slave Turret System
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
704.392 KB
2021 年 10 月 7 日 上午 8:35
2021 年 10 月 20 日 下午 12:20
11 项改动说明 ( 查看 )

订阅以下载
Master Slave Turret System

描述
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 条留言
f18effect 2023 年 8 月 26 日 上午 6:22 
What if i wanted to make a turret with a laser and radar?
puipuix  [作者] 2022 年 10 月 12 日 上午 1:07 
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 2022 年 10 月 9 日 上午 3:37 
and how do i get it to lead the target slightly or aim straight at it instead of behind it?
puipuix  [作者] 2022 年 10 月 9 日 上午 2:57 
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 2022 年 10 月 9 日 上午 2:29 
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 2022 年 4 月 21 日 上午 11:48 
never mind got it to work lol for some lesson
ReLIFE (schizo) 2022 年 2 月 10 日 上午 11:40 
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 2021 年 10 月 31 日 上午 9:03 
Will do some more tests and see how everything behaves. Thanks for your help so far!
puipuix  [作者] 2021 年 10 月 31 日 上午 5:10 
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
Tuutikki 2021 年 10 月 31 日 上午 3:56