Electric Turrets


Adds a small upgrade to gun turrets, electrified gun turrets. They require ammunition and power to work, for a slightly boosted fire rate.

Content
5 years ago
0.16 - 0.17
18
Combat

g How does it work?

2 years ago

Hey! Does it clone the turret? Can the mod be removed\added to a save without problems? Are there scripts involved and are they CPU taxing?

2 years ago

And will there be a 1.1 version? ^_^

2 years ago

Hi there,

Basically each turret is a composite-entity of a turret linked to a power sink behind the scenes. If the power sink isn't powered, the turret is inactive. There is a catch to this - the check whether the behind-the-scenes power sink is powered or not currently happens in the lua code of the mod, so in theory there is a performance hit (but most of the time should be minimal)
I wrote this a couple of years ago now more as a proof of concept - there might be newer API features to make it a bit cleaner and with less of a 'potential' performance impact, but I haven't looked into it in awhile. I'll have a look sometime.
Thanks
Jack

New response