Focussed gun turrets

by snouz

This gun turret upgrade has twice the range and speed, but a quarter of the angle coverage and consumes electricity.

Content
3 days ago
2.0
1.60K
Combat

g [Fixed] Firing arc changes (again, sorry)

6 days ago
(updated 6 days ago)

Hello,
The problem isn't fixed and the turret still turn sometime.
I had the problem when creating a tweaks for another mod, and it happen for some reason when the player are able to rotate placed turret (with R).
To prevent that you should prevent the player to rotate placed turret. It's weird, but it's the only way I found on the other mod I was working on.
I think it's turret_base_has_direction = true but I'm not sure.
Otherwise you can try allow_turning_when_starting_attack = false but I didn't tried it.

By the way, super mod ~

5 days ago
(updated 5 days ago)

Hello again,

I tried some stuff on my side, and doing that with new mod seem to work:

circuit_connector_definitions["snouz_long_electric_gun_turret"] = circuit_connector_definitions.create_vector
(
  universal_connector_template,
  {
    { variation = 17, main_offset = util.by_pixel( -21, 1), shadow_offset = util.by_pixel( -12, 10), show_shadow = true },
    { variation = 17, main_offset = util.by_pixel( -21, 1), shadow_offset = util.by_pixel( -12, 10), show_shadow = true },
    { variation = 17, main_offset = util.by_pixel( -21, 1), shadow_offset = util.by_pixel( -12, 10), show_shadow = true },
    { variation = 17, main_offset = util.by_pixel( -21, 1), shadow_offset = util.by_pixel( -12, 10), show_shadow = true }
  },
  true
)
data.raw["ammo-turret"]["snouz_long_electric_gun_turret"].circuit_connector = circuit_connector_definitions["snouz_long_electric_gun_turret"]
data.raw["ammo-turret"]["snouz_long_electric_gun_turret"].turret_base_has_direction = true

If needed, I can make temporarily a tweak mod, and make it deprecated if it's fixed on your side.

3 days ago

Hi, sorry for the delay, I was busy with other stuff, I thought I had fixed it, but I had commented out what I had changed, it's fixed now :) Thanks for the extra code, I credited you in the changelog : )

3 days ago

Oh, nice ~
You are welcome and thank you for taking the time for it ^w^

New response