Page 1 of 1

[Oxyd] [1.1.6] Biters trying to path through indestructible entities attack them

Posted: Sun Jan 03, 2021 3:39 pm
by Muppet9010
Below indestructible is:

Code: Select all

LuaEntity.destructible = false
When biters try to path through indestructible entities they attack them, despite being able to do no damage. I believe the pathing biters are expected to treat an indestructible entity the same as an entity with its health set to 0 and know to path around it.

I can't find a definition that this ignoring indestructible entities behaviour should be expected, but this similar bug looks to support it:
viewtopic.php?f=11&t=92740

Re: [1.1.6] Biters trying to path through indestructible entities attack them

Posted: Sun Jan 03, 2021 7:03 pm
by Klonan
Can you provide a save or scenario showing this behavior?

It works as expected when I test it


Re: [1.1.6] Biters trying to path through indestructible entities attack them

Posted: Sun Jan 03, 2021 8:30 pm
by Muppet9010
Sorry I was quickly logging this as I came across a note I made when making a mod ages ago. I had assumed it was more common than it turns out.

The attached save reproduces the issue:
aaa3.zip
(1.17 MiB) Downloaded 138 times
The issue seems to be if the biter is already attacking the entity and then the entity becomes indestructible.

To make the attached save:
  1. I placed everything in editor pause mode
  2. unpaused
  3. let the biter path through the wall to the turret
  4. biter starts to attack the wall
  5. Then I made the wall indestructible.
  6. The biter continues to attack the wall, but does no damage any more

Re: [Oxyd] [1.1.6] Biters trying to path through indestructible entities attack them

Posted: Wed Jan 13, 2021 2:34 pm
by Oxyd
Thanks, fixed in 1.1.9.