Artillery sound enhancer Factorio 2.0


Add multiple sounds for artillery depending on distance (based on vanilla). Clone and updated to Factorio 2.0... give credit to yohannc original modder

Content
8 months ago
2.0
2.06K
Combat

g Sound still plays when on another planet

16 days ago

The sound appears to still play even if you are not on the same planet that the turrets are on!

I guess the only thing that goes into the calculation of which sound plays is the relative distance between two coordinates? This should also take into account if the player/remote view is currently looking at the same surface.

16 days ago

Hey, thx for the bug, ill be posting as soon as possible a definitive fix...
If its bothering you too much here a temporary fix:

on /control.lua
1) add a new empty line 15 and add this: if player.surface and player.surface == ent.surface then
2) add a new empty line 65 and add this: end

For reference on line 14 should be this: for _, player in pairs(game.connected_players) do

New response