Belt Immunity With Benefits

by wadeack

Are you annoyed by belt immunity equipment that negates the positive bonus when running along the belts? This mod fixes it by virtually disabling the immunity when the character is moving in the same direction as the belts underneath them.

Tweaks
6 days ago
2.0 - 2.1
1.46K
Transportation Armor

i Apply effect to splitters and underground belts as well

10 days ago

While running along my main bus, I noticed that I briefly slow down every time I go over a splitter, and the speed boost cuts out earlier when encountering an underground belt compared to when I have no belt immunity equipment. This was distracting and annoying.

Looking at the code, I just changed the following line from:

        local belt = find_entity_by_type(player, "transport-belt")

to:

        local belt = find_entity_by_type(player, {"transport-belt", "underground-belt", "splitter", "lane-splitter"})

Now it seems to behave much more like the normal speed bonus without immunity equipment in all cases, not exclusive to just the basic transport-belt.

Other belt-connectable entities are "linked-belt", "loader", and "loader-1x1", but I'm not sure they deserve the speed boost. In any case, their relevance would be much lower, while splitters and underground belts occur frequently in the middle of long stretches of straight belting.

6 days ago

Thanks for report, makes sense to cover other belt related entities as well. From my testing I can see that splitters are moving the character but not the underground belts, so I've updated only those.

6 days ago
(updated 6 days ago)

Edit: Ignore me, I misread your response. Thanks for the update!

New response