WePlay: Pentapods Respect Walls


Prevent pentapods from crossing walls. Stompers and strafers can't just step over your walls anymore: they have to tunnel through, one layer at a time, or find a gap wide enough to fit. WARNING: Not all limbs guaranteed to stay on far side of the wall.

Tweaks
10 days ago
2.1
17
Combat Enemies
Owner:
afewvowels
Source:
https://github.com/afewvowels/WePlayP...
Homepage:
N/A
License:
The Unlicense (Public Domain)
Created:
10 days ago
Latest Version:
1.0.0 (10 days ago)
Factorio version:
2.1
Downloaded by:
17 users

WePlay: Pentapods Respect Walls

Prevent pentapods from crossing walls.

In vanilla Space Age, stompers and strafers simply step over your walls. With this mod, walls hold them back. To get in, a pentapod has to tunnel through, one layer at a time, or find a gap wide enough for its body.

WARNING: Not all limbs guaranteed to stay on their side of the wall. Legs insured separately.

How they break in

  1. Approach - A pentapod that runs into your wall, or hangs around near it, picks a spot and lines up a lane straight into the wall, exactly as wide as its body.
  2. Survey - It checks its options: is the lane clear? Is there a nearby gap that fits? Otherwise, it digs.
  3. Tunnel - It rams its way through one layer at a time, then surveys again.
  4. Enter - Once the way is clear, it walks through and attacks whatever is behind.

Bigger pentapods need bigger holes: 3 tiles for small, 4 for medium, 5 for big.

Tips for defending

  • Thicker walls buy time. Every layer is another round of ramming. Think of it as a higher deductible.
  • Gaps are weak points. A gap a pentapod fits through is a gap it will use. Gaps too narrow for it get widened.
  • Gapped walls and dragon's teeth still work. Only solid wall runs push pentapods back, so your openings stay open, for better or worse.
  • Turrets still matter. Walls stall pentapods. They don't kill them. This policy does not cover pentapods.

Settings (map settings, changeable mid-game)

Setting Default What it does
Wall check interval 5 ticks How often pentapods near walls are checked
Wall standoff distance 2 tiles How close a pentapod's body can get to a solid wall
Gates count as walls On Gates hold pentapods back too
Guard walls on all surfaces Off Off = Gleba only. Turn on if a mod puts pentapods elsewhere
Ram damage 250 Damage per ram (medium ×2, big ×4)
Breach diameter 3 tiles How far ram splash reaches inside the tunnel
Slide along walls 35% How slippery walls are for pentapods pushing against them
Loiter time before attacking 0.5 s How long a pentapod hangs around a wall before digging
Debug commands (startup) Off Adds the /prw-* test commands for admins

Compatibility

  • Requires Space Age, Factorio 2.1.
  • Works with modded pentapods (any enemy spider unit).
  • Only pentapods near your walls are watched, so the performance cost scales with how much wall you have, not how many pentapods live on Gleba.

How it works (for the curious)

Pentapods ignoring walls isn't an oversight. Wube built them that way on purpose: their pathfinder is allowed to plan routes with gaps, hopping over anything it can't walk on, and their legs pick footholds by searching for open ground, not by walking around obstacles. Neither of those is exposed to mods. The pathfinder is engine code, and collision masks on walls and legs don't stop the body from passing over (we tried, in 0.1).

So instead of changing how pentapods think, this mod corrects where they go:

  • Wall guard. Every few ticks, each watched pentapod's body movement is checked as a line segment against your walls. If it would pass through a wall (or the standoff band around a solid wall run), the body is put back just short of it and slides along the wall with some friction.
  • Zone scan. The mod keeps a list of chunks that contain walls and only watches pentapods in and around them.
  • A finite state machine decides what each pentapod near your walls does next: idle -> approach -> survey -> tunnel or enter. Survey is an instant decision point that runs on reaching the wall and again after every layer broken, so a pentapod notices when a gap opens up, including one another pentapod dug.
  • Lanes. Tunnels are straight, exactly body-width, and chosen to go through the wall, never along it. At corners, the mod tries the nearby walls as starting points and picks the thinnest crossing.
  • Ramming. The pentapod's body damages walls in its lane, nearest layer first. Splash only hits other walls in the same lane.

The game's own AI still chooses targets and plans routes. The mod just makes it respect your property line.

The fine print

  • Limbs are not covered. Walls stop bodies, not reach: a stomper leaning on your wall may still stomp whatever is right behind it. Leg placement is chosen by the engine, so the mod can't keep feet on their own side. Legs insured separately.
  • Act of pentapod. Stomps that happen to land on walls are vanilla behavior and will still damage them.
  • Pre-existing conditions. Pentapods already inside your walls when the mod is added are free to leave the way they came, by tunnelling out.
  • Terms and conditions apply. Limbs may extend past the property line. WePlay is not liable for anything within one stomper leg of your wall.

Complete your coverage

Walls are only one line of defense. Bundle and save with these other WePlay policies:

  • WePlay: Peace in Our Time - Cleared it? Keep it. Once you wipe out the last nest or worm in an area, biters and pentapods can never resettle it. You wanted peace. You made peace. Now the biters have to respect it.
  • WePlay: Stay Off My Lawn - A no-nesting zone around your buildings. Expansion parties can't build new nests within a set distance of your factory, so the neighborhood stays nice. Hey, you kids! Git off my lawn!

Browse the full WePlay catalog of small quality-of-life mods on my mod portal page.

Multi-policy discounts not available. Pentapods not included.