Barotrauma
Zbyt mało ocen
Proof of concept - Automated Turret Switching
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
49.171 KB
16 czerwca 2019 o 10:34
1 lista zmian ( zobacz )

Zasubskrybuj, aby pobrać
Proof of concept - Automated Turret Switching

Opis
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.
Komentarzy: 12
W 29 lipca 2021 o 16:51 
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 stycznia 2021 o 10:25 
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  [autor] 29 sierpnia 2020 o 13:36 
Checked your subs' pages; looks like it's fine? Thanks!
Héphaïstos 29 sierpnia 2020 o 13:26 
i add your name and a link to my description but steam security block it, i don't understand why...
Max  [autor] 29 sierpnia 2020 o 8:13 
@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 sierpnia 2020 o 22:30 
Max  [autor] 15 lipca 2019 o 20:48 
@HeatedWafflez:

Yep
HeatedWafflez 15 lipca 2019 o 18:40 
wait you're the one who made this? awesome
Max  [autor] 20 czerwca 2019 o 4:49 
@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 czerwca 2019 o 2:22 
just awesome thanks a lot