Barotrauma

Barotrauma

86 ratings
AUTOAIMING TURRETS
4
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
861.112 KB
2 Aug, 2020 @ 3:31am
3 Feb, 2023 @ 8:17am
9 Change Notes ( view )

Subscribe to download
AUTOAIMING TURRETS

Description
Auto-aiming turrets for automatic extermination of europan creatures. Has safety and rate of fire controls. Every component has own item assembly for your convenience.
Please rate and leave your feedback!

In case someone is interested in details of implementation: i get cathetuses using motion detectors, so i can get tangens
with dividing one cathetus by another; after that i get actual angle by passing tangens value into the in-game atan component and finally it is necessary to rotate the turret to this angle plus some starting rotation depending on position of the turret(top, bottom, front or back). Never ever thought that school math can be useful for games :) Safety system is even easier and is based on motion detector that detects humans and just turns off firing in case human is detected.
58 Comments
Topchin 15 Apr, 2024 @ 8:38pm 
@Halepa, hi! Thanks for the great work on the trigonometry and auto turret logic.

I would like to use your creation in my sub which i will post in a workshop, so i would like to ask your permission officially.
Aristod 12 Oct, 2023 @ 7:46am 
hello, for my purposes I want to increase its radius, can you tell me where to adjust more accuracy, the turret shoots too high at a long distance, it needs to be lowered a little
Генерал Жмышенко 26 Apr, 2023 @ 2:12pm 
Ждем когда Россия победит.
JoshX9706 3 Feb, 2023 @ 8:19pm 
when i load it in the test drive, the turrets can only very slowly turn and cant shoot a crawler very well. is this a limitation or is it not working as intended
Halepa  [author] 3 Feb, 2023 @ 8:22am 
updated to the latest version of barotrauma.
Halepa  [author] 12 Jan, 2023 @ 12:52am 
@NitotiN it supposed to appear in ItemAssembly tab in the editor
Asoma 10 Jan, 2023 @ 10:45am 
how to put it in the editor?
Halepa  [author] 2 Jun, 2022 @ 7:28am 
Folks, unfortunately the work on the next genertion of turrets is paused at least till the end of russian invasion. Sorry, my thoughts are far away from Barotrauma now. And I do not expect that this will change in nearest future.
Stand with Ukraine and support us!
And huge thanks to ALL the supporters, especially from US and Poland. We do appreciate each and everyone who helps us fight russian occupants.
Kookoorooza 7 Jan, 2022 @ 12:07pm 
But hey...
Halepa  [author] 6 Jan, 2022 @ 11:47pm 
@Kai Asianman, maybe something is wrong with the fire controls (this item assembly with Rate of Fire, Safety and ON/OFF buttons). Most likely auto-aim it is just turned off. But it is hard to tell from your explanation and without any screenshots so I can only guess here.