Stormworks: Build and Rescue

Stormworks: Build and Rescue

52 ratings
Weapon Turret System
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
629.269 KB
19 Mar @ 6:20am
5 Jul @ 6:49am
10 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.

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!
28 Comments
rassang 13 Jul @ 12:48pm 
@se-ssi, will you add guidance on the new radar and your own intermediate unit for recharging in this or the next version of the example?
sir sponge cake 8 Jul @ 8:18am 
Can the turret system account for leading to arial target?
se-ssi  [author] 5 Jul @ 6:55am 
Using vectors. And a complicated script to get the rotation. Might post the script but it's not mine. You can probably find it in an sw discord.
SUSHI_ENJOYER 26 May @ 5:04am 
Hi! I wonder can you pls explain how to get current rotation of turret with physics sensors (i know you are using eulers but i'm struggling with making the math)
8PenniesDeep  [author] 21 May @ 12:29pm 
yes just increase until it works because its adjusting for pivot strength and stormorks physics
Nick Name 21 May @ 12:20pm 
how does the weight compensation work, do we just increase till it works ?
8PenniesDeep  [author] 6 May @ 10:06am 
YES
sir sponge cake 6 May @ 9:25am 
Is it possible to output data to 2 turrets at the same time?
Dark Spirit 3 Apr @ 12:40pm 
Hello again, and sorry for so much asking.
It is possible to use a 2x3 monitor? When I connect this example settings to a second 2x3 monitor, both screens works good. But if I just delete the "main" 3x3 monitor, then the 2x3 one only shows static noise despite all connections are OK. Any advice? Something has to be changed in the script, maybe?
Thank you very much in advance.
se-ssi  [author] 31 Mar @ 7:10am 
You can try to unminimize the code.