Added a settings interface to the original mod allowing adjustment of damage and enabling or disabling individual turrets or multiple turrets.
Latest Update: Rewrote the settings interface for a cleaner layout and added English localization.
Update: Fixed two yellow-text errors in the original version; no more error messages now.
Original author: [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3045175851]https://steamcommunity.com/sharedfiles/filedetails/?id=3045175851[/url]. Original mod not required.
The original mod adds several turrets to the game, including sniper turrets, heavy machine gun turrets, multiple charge turrets, etc.
Usage Instructions:
Regarding Fire Rate: The code modifies defaultCooldownTime (cooldown period). If you want turrets to fire faster, drag the slider to the left (e.g., 0.5× cooldown = 2× fire rate).
Regarding Range: After modifying the range, the turret's white search circle will dynamically change. However, note that if the range is increased too much, exceeding the map loading bounds, it may cause turrets to become inactive.
Caching Logic: The code automatically remembers the original values of all turrets. No matter how many times you drag the sliders, calculations are based on the initial values, preventing infinite stacking.
Friendly Reminder: After modifying the range, due to RimWorld's UI caching mechanism, the attack circle of turrets already built on the map may require you to click on them or deselect and reselect them to refresh the visual effect, but the actual shooting range takes effect immediately.
Note: Modifications to durability (health) require a game restart.