Barotrauma

Barotrauma

Turret Assemblies
8 Comments
Crusade  [author] 5 Jan, 2022 @ 11:03am 
Lengthy description - first 2 paragraphs are just how the burst is actually made second 2 paragraphs are the full description of the assembly as a whole. Had to split it into 3 messages because of character limits. Any other questions just ask although other turret types have a longer description.
Crusade  [author] 5 Jan, 2022 @ 11:01am 
In the turret settings under the turret header there is a setting "Reload Time" that determines how frequently the turret is allowed to fire, the burst fire turret has the setting dropped to 0.1 seconds compared to the usual 0.4 seconds of the default.

To get the actual burst you have to control the time the users mouse input is allowed into the "Trigger_in" pin of the turret. Since the turret doesn't if you tap trigger 3 times or hold it the easiest way to burst is to just send a value of 1 to that pin for a minimum of 0.3 seconds and a maximum of 0.39 seconds since the "Reload Time" value actually determines if its gonna fire with the trigger depressed.
Crusade  [author] 5 Jan, 2022 @ 11:01am 
The relay doesn't actually fire three signals in my assembly it sends one continuous signal of 1 for 0.3 seconds instead. The second relay is what actually controls the burst length by being set to "on" when the trigger is pressed and sending the same signal in a loop through the delay to turn it off as well. To prevent the second relay from being held open the first relay is used to turn whatever input given by the periscope into a single pulse.
Crusade  [author] 5 Jan, 2022 @ 11:01am 
he first relay starts on but is turned off the moment the trigger is fired, this is to prevent starting a second burst during the first which would just turn the turret into a normal full auto turret. The relay is set back to on after the trigger signal goes through the delay component attached. The delay length doesn't matter as much as the one used to control the burst it's an artificial timer put in to simulate giving the turret time to cool down and readjust before firing again, the only requirement is it be set longer than the desired burst duration doubled. (In the case of my assembly minimum time of 0.78 seconds to prevent potential signal overlap on laggy multiplayer servers)
Lego 5 Jan, 2022 @ 2:14am 
I'm failing to understand how the burstfire works? I don't get how the relay was able to fire 3 signals before it was set to 0
crow36 20 Nov, 2021 @ 10:28pm 
cool, well was really more intrested in the wiring, but its nice assembly never the less
Crusade  [author] 20 Nov, 2021 @ 6:34pm 
should be a turretassemblies.sub for the entire setup and ammo/burst/coax for the premade assembly names, I honestly doubt this still works the same since my Hussar sub which relies on this mechanic is broken and I haven'/t checked this in 18 months.
crow36 20 Nov, 2021 @ 1:52pm 
what name of file? cant find it in mods list?