Spitter Blocking Walls


Adds a shield wall and shield gate that catch spitter acid aimed at anything behind them.

Content
a month ago
2.1
48
Owner:
ScytheEden
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
a month ago
Latest Version:
0.1.1 (a month ago)
Factorio version:
2.1
Downloaded by:
48 users

Adds a shield wall and a shield gate that catch spitter acid aimed at anything behind them. Works with and without Space Age.

In vanilla, spitter acid arcs over walls and hits the turrets behind them. With this mod, a spitter that aims at something behind a shield wall splashes the wall instead. Gates only block while closed.

Unlocking

Research Shield walls (150 units of red, green and military science, 30 seconds each). It needs Gate, Plastics and Military science pack.

Recipe Ingredients
Shield wall 1 stone wall, 2 steel plate, 1 plastic bar
Shield gate 1 shield wall, 2 steel plate, 2 electronic circuit

A shield wall has 500 HP and a little more acid resistance than a stone wall. Gates have the same stats. Walls are reinforced concrete with a hazard band at the foot, and gates are painted steel blast doors. They do not visually merge with stone walls.

The wall soaks the acid, so it takes damage. Keep it repaired.

Acid blocking mode

Set this under Settings > Startup. Changing it needs a restart.

Intercept is the default. Every biological stream attack of a unit (vanilla and modded spitters) is replaced by a script trigger, and the mod fires the stream itself. If the straight line from the spitter to its target crosses a shield wall or a closed shield gate, the acid lands on the first one it crosses. Damage per hit matches vanilla. It costs about 12 microseconds per spit, which is roughly 0.4 ms per tick during a siege of 5,000 spitters.

Draw fire uses no script. Enemies treat shield walls as priority targets, but turrets behind a wall can still be hit.

Limits

  • Worm acid is not changed.
  • Only spitter-style stream attacks are intercepted. Other enemy attacks work as in vanilla.
  • A mod that changes enemy attacks very late in loading can bypass Intercept mode for the units it touches.

License

MIT for the code. The wall and gate sprites are edited copies of Factorio's own art and stay under Wube Software's terms for game assets.