Stormworks: Build and Rescue

Stormworks: Build and Rescue

76 ratings
Weapon Turret System
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
629.298 KB
19 Mar, 2024 @ 6:20am
9 Jan @ 1:56am
12 Change Notes ( view )

Subscribe to download
Weapon Turret System

In 1 collection by se-ssi
Weapon Systems
3 items
Description
Weapon Turret System
This is my latest weapon turret system (balistics calculator). It shoots at a target accounting for gravity, velocities, drag, etc

Info
DO NOT EXPECT GOOD PERFORMANCE FROM THIS EXAMPLE TURRET. This creation is mainly made for giving a base structure to make your own turret from. Then you can integrate it into vehicle creations. Please see the video above for a tutorial.

Features
  • Has profiles for each in game weapon type
  • Accounts for gravity, drag, velocities, acceleration etc
  • Highly customizable
  • Artillery mode
  • Built in weapon trigger
  • Clamp max rotation
  • Idle and reload state
  • Turret weapon weight compensation
  • Extra prediction to account for delays in systems

    Composite channels for those who would like to extend the system with your own or others. NOTE the ... roll yaw and pitch are input channels 4,5 and 6 respectivley on the physics sensor:

  • Input - "Target data": Number Channels: 1:Target X 2:Target Y 3:Target Z 4:Target mass 5:Radar turret X 6:Radar turret Y 7:Radar turret Z 8:Radar turret roll 9:Radar turret yaw 10:Radar turret pitch Bool Channels: 1:Has target

  • Output - "Target Acquisition Data": Number Channels: 1:Lead X 2:Lead Y 3:Lead Z 4:Turret X 5:Turret Y 6:Turret Z 7:Turret roll 8:Turret yaw 9:Turret pitch 10:TOF 11:Weapon type Bool Channels: 1:Is in range 2:Is accurate enough to shoot 3:Has reached desired state (not for tracking) 4: Is powerd on

Not working?
  • Artillery mode works for battle cannon and higher caliber. (To low lifetime for lower caliber to work)
  • Contact me or others on my Discord community [discord.gg] for help


Credit
I encourage you to use my creations or parts of it for your own builds. If you do and post it, please give credit.

Made by: se-ssi

Thanks to 8PenniesDeep... for his "Magic Numbers"!
Thanks to Kubson for help!

Links
Se-ssi's Stormworks Community [discord.gg]
Youtube channel
My workshop

Enjoy!
86 Comments
Automatic Fantastic 1 Jul @ 2:56am 
Can this be modified to only fire at targets of a specific size or speed?
RDX69 18 May @ 8:39am 
abselutely incredible! even the example works great with low firerate!:steamthumbsup:
ibuildblasters 25 Mar @ 7:14am 
my turret kinda just, wiggles
DrDimic 11 Mar @ 9:43am 
I look forward to it) By the way, thanks for the clue about incorrect connecting! It's really happend to be my fault - i just forgot to plug rangefinder to "Power" node:macface:
se-ssi  [author] 11 Mar @ 8:27am 
I might make a similar system with the new radar to multi select. The old radar does unfortunately not support multiple targets. So that is simply not possible with this version. The manual mode sounds like something is incorrectly connected. You can DM me on discord if you would like help, or by my discord server.
DrDimic 11 Mar @ 7:20am 
Man! Thats a great system you did! After some brainwork i managet to get it work pretty fine on my drednouht, but i face a problem: it can't fix on a target i need - if there are some nearby one to another (or even not so near). Is there a chance to make a control that switch to the next target? And yes, i tried to do it with a manual mode - but theres another thing: seems like system locking to my own vessel in this mode. camera turns to the rear, guns stand upwards to the limit and rangefinder shows a 1
ChrisMartin1701 15 Feb @ 11:50am 
I tried that but the rear turret wasn't functioning correctly. So I went about it a different way. Your system works well with a triple turret
se-ssi  [author] 15 Feb @ 2:09am 
You need two different turret controllers as they are separate turrets in different directions and positions, there's no way to make that work with a single control set. So instead use separate controllers for the turrets. You can still have just one targeting system, just connect it to both turrets. For further help please contact me on my discord. Link is in the description.
ChrisMartin1701 14 Feb @ 11:47am 
I have this weapon system integrated into an existing naval gun on a project ship I've been working on for a while. However, when using an aft turret of the same type, it doesn't track right. It either doesn't track in the right direction or if it does, it doesn't fine-tune. Maybe the guns I have won't work for this, I don't know. What I do know is one gun works but the other is being difficult. Was your system designed to have to opposing turrets track the same target?
se-ssi  [author] 26 Jan @ 2:15am 
With all guns, consistently? Please dm me if you want me to help you figure out what might be wrong. Discord link is above.