I thought it involved editing player health values too. So I tried shooting myself with the ion cannon while in the spysat. It didn't work! Only the biters and spitters were tracking on me, the worms couldn't care less. So I figured it had to be something modifying their behavior.
The problem is in Natural Evolution Enemies' libs - the pathfinder script they have is called upon destruction of any alien building and sends enemies to the player without regard for what vehicle they're in. Since the ion cannon mod uses an invisible unarmored vehicle when in the spysat, this meant that the aliens were aware of the player. From how fast I died if they hit me, I'd assume it only had 1 HP.
The way I fixed it was to disable all calls to it in Natural Evolution Enemies' control.lua
In particular, I commented out this line in the area for detecting spawner kills.
Code: Select all
--player.surface.set_multi_command{command = {type=defines.command.attack, target=player.character, distraction=defines.distraction.by_enemy},unit_count = (20+math.floor(game.evolution_factor*100/#game.players)), unit_search_distance = 600}