Personal Tesla Defense Equipment


A configurable tesla version of the personal laser defense equipment

Content
6 months ago
2.0
2.00K
Factorio: Space Age Icon Space Age Mod
Combat Armor Cheats
Owner:
pluralmonad
Source:
https://github.com/pluralmonad/Person...
Homepage:
N/A
License:
GNU GPLv3
Created:
6 months ago
Latest Version:
1.7.0 (6 months ago)
Factorio version:
2.0
Downloaded by:
2.00K users

Why this exists

I wanted a powerful personal defense equipment and really like the new tesla weapons. So I decided to build my first official mod.

What it does

  • This mod adds a copy of the personal laser defense equipment that shoots the chaining tesla beam.

  • The recipe for the equipment is set based on what technology requirement you select in settings. "none" will make the recipe available right away and simply takes steel[steel-plate] and copper[copper-plate]. This seemed like a simple implementation that wouldn't inflate the mod settings more than they are already.

Configurables

The following settings are exposed through the Mod Settings interface in-game. All settings are "start-up" settings unless otherwise noted.

Tech Requirement

Which technology will unlock the Personal Tesla Defense
- none (default)
- personal-laser-defense-equipment
- tesla-weapons

Beam type

Whether to use the tesla turret, tesla gun, or custom beam
- tesla-turret
- tesla-gun (default)
- custom

NOTE: this dramatically changes the damage output. If tesla-turret is too OP for your play style, try setting it to tesla-gun. Or better yet, take full control with a custom beam.

Equipment Grid Size

The space the equipment will take up in the equipment grid
- 1X1
- 2X2 (default)
- 3X3
- 4X4
- 5X5

NOTE: Increasing the size of an existing save using the equipment will produce equipment overlap until you remove and replace the equipment.

Range

Set the effective range for the Personal Tesla Defense
- any integer value (default=30)

Damage Modifier

Set the damage modifier for the Personal Tesla Defense
- any double value >= 0.1 (default=1.0)

Energy Consumption

Amount of energy consumed per shot (in kJ)
- any integer value >= 1 (default=50)

NOTE: this scales the internal "buffer_capacity" to maintain the original personal laser defense ratio (4.4 buffer_capacity:1 energy_consumption)

Shot Cooldown

The number of ticks before the equipment will shoot again
- any integer >= 20 (default 120)

Custom beam max jumps

Maximum number of jumps for the custom beam
- any integer >= 1 and <= 100 (default 12)

Custom beam jump range

Jump range for the custom beam
- any integer >= 1 and <= 50 (default 12)

Custom beam fork chance

The chance the custom beam will fork
- any double >= 0.01 and <= 1.0 (default 0.3)

Custom beam fork chance per quality

The custom beam fork chance increase per quality tier
- any double >= 0.01 and <= 0.5 (default 0.05)

NOTE: the combination of this setting and the above fork chance can cause the chance to rise above 100% (1.0). This outcome has not been thoroughly tested.

Custom beam duration

The number of ticks for which the custom beam fires
- any integer >= 1 (default 30)

Custom beam base damage

The base damage dealt by the custom beam
- any integer >= 1 (default 30)

Custom beam fork base damage

The base damage dealt by forks of the custom beam
- any integer >= 1 (default 30)

Notes

  • Graphics/icons are terrible. I am a GIMP novice :)

  • There is little or no runtime overhead as it uses only things already built into the game (UPS friendly).

  • It has not been extensively tested, but shouldn't break much, if anything, as it only adds and does not modify any entities.

  • You should be able to add it to an existing save without issue and I see no reason why it wouldn't work in multiplayer.

  • All of the defaults for the new custom beam settings are pulled from the tesla-gun beam.

  • Kudos to the Factorio devs for an amazingly extensible piece of software.

Conflicts / Bugs

I took care to not replace or update anything existing, only adding components. Should not conflict with anything.

Future Plans

  • Modify calculation setting buffer_capacity to account for shot cooldown (maintain 4.4:1 ratio with adjustment for difference in cooldown).

  • Update defaults to make them more coherent.

  • Better graphics.

  • Translations.

  • Open to suggestions.

Other Tesla Mods