Barotrauma

Barotrauma

Not enough ratings
Proof of concept - Automated Turret Switching
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
49.171 KB
16 Jun, 2019 @ 10:34am
1 Change Note ( view )

Subscribe to download
Proof of concept - Automated Turret Switching

Description
Gif: https://imgur.com/a/GihPh8R


Proof of concept logic system to switch between multiple turrets attached to a single periscope by moving your camera beyond the firing arc of the current turret. This can be improved upon by adding a delay check to the switching to prevent accidental switching (hold switch angle for x amount of seconds before switching), could be done with greater than + less than checks (but that takes up more space, and is more complex wiring), improved regular expressions (Better boundaries, a wider activation ark for example), etc... I'll make a proof of concept submarine using this system sometime later. Until then, enjoy this. If you have any questions about this concept, or would like me to try something else, feel free to ask.

I think a system like this could have many uses, especially for smaller subs with limited crew or space, or subs with many guns where placing a ton of periscopes just looks ugly and switching between them would take too much time in a combat situation.

TLDR;
Link multiple guns to one periscope, you can switch between guns by moving your cursor to the edge of the guns' firing arc.
12 Comments
W 29 Jul, 2021 @ 4:51pm 
Sometimes turret didn't change, is it normal ?
You know if it's possible to have the two turrets at the same time for the comon range they have ?
EnermaX 22 Jan, 2021 @ 10:25am 
Kind of stuck here, tried ranges and integers, yet I cannot get the system stable enough. I also tried a delayed periscope angle input with a delay block to the regex block to get rid of the twitchy characteristics, but the delay block cannot handle the values. You mentioned a delay check with greater blocks and stuff. Can't get my head around it, could you help?
Max  [author] 29 Aug, 2020 @ 1:36pm 
Checked your subs' pages; looks like it's fine? Thanks!
Héphaïstos 29 Aug, 2020 @ 1:26pm 
i add your name and a link to my description but steam security block it, i don't understand why...
Max  [author] 29 Aug, 2020 @ 8:13am 
@Héphaïstos

Thanks for using the system! I'm glad you found it useful!

If possible, could you perhaps drop a link / credit for the system in the description of the subs that used it? Thank you!
Héphaïstos 28 Aug, 2020 @ 10:30pm 
Max  [author] 15 Jul, 2019 @ 8:48pm 
@HeatedWafflez:

Yep
HeatedWafflez 15 Jul, 2019 @ 6:40pm 
wait you're the one who made this? awesome
Max  [author] 20 Jun, 2019 @ 4:49am 
@Héphaïstos
I recommend using the assemblies linked in the description, they're easier to use than reverse engineering this demo.
Héphaïstos 20 Jun, 2019 @ 2:22am 
just awesome thanks a lot