Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creature AI target entities through shell #3891

Closed
Udrakan opened this issue Sep 23, 2020 · 4 comments
Closed

Creature AI target entities through shell #3891

Udrakan opened this issue Sep 23, 2020 · 4 comments
Assignees
Labels
Bug Something isn't working Code Programming task

Comments

@Udrakan
Copy link

Udrakan commented Sep 23, 2020

Description
This mudraptor was modded to prefer doors so it will breach the submarine through airlock. This worked pretty well in previous patches, but new behaviour could use some tweaking. It's attacking the outer shell because it goes for the interior doors which it shouldn't see, while dugong's airlock is right next to it.
image

Steps To Reproduce
Make doors maximum priority for creature
Spawn creatures around the submarine exterior
Notice how most of them go for the shell anyway, because they try to target interior doors (which they shouldnt see)

Version
Stable

Additional information
Targetouterwalls=false seems to make creature not attack airlock doors and hatches, not sure if intentional

@itchyOwl
Copy link
Collaborator

itchyOwl commented Sep 23, 2020

It's intentional that the monsters can see through walls. There's no visibility checks. It has caused issues and I'm not fully convinced that it was a good decision (initially not mine). But it's also very simple and efficient and produces purposeful behavior.

In the picture you can see that the mudraptor aims for the windowed door, but can't reach it, so it attacks the wall between it and the target. Just as it should.

Setting Targetouterwalls false is meant to do that. Currently I think only Terminal cells use that.

@itchyOwl
Copy link
Collaborator

Actually, there might be a bug here, because the doors make an exception in that the creatures should only target outdoors/hatches if they are outside. Also Targetouterwalls shouldn't make the creature ignore doors totally. Only the outdoors.

@itchyOwl itchyOwl reopened this Sep 24, 2020
@itchyOwl itchyOwl added Bug Something isn't working Code Programming task labels Sep 24, 2020
@itchyOwl itchyOwl self-assigned this Sep 24, 2020
@itchyOwl
Copy link
Collaborator

Fixed in Regalis11/Barotrauma-development@65804aa. Thanks for reporting!

@Rokvach
Copy link
Collaborator

Rokvach commented Sep 25, 2020

I didn't notice any issues, seems to be working correctly. Closing.

@Rokvach Rokvach closed this as completed Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task
Projects
None yet
Development

No branches or pull requests

3 participants