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

AI's manning turrets attack own crew because of incorrect speciesname case #1102

Closed
1 task done
NilanthAnimosus opened this issue Feb 8, 2019 · 0 comments
Closed
1 task done
Assignees

Comments

@NilanthAnimosus
Copy link
Collaborator

NilanthAnimosus commented Feb 8, 2019

  • I have searched the issue tracker to check if the issue has already been reported.

Description
Any crewmember manning guns will attack ones own crew if they are outside.

Steps To Reproduce
Grab a suit, swim outside, order anyone on guns - get filled with coilgun rounds or something.

Version
Closed alpha 0.8.9.3

Additional information
I have been debugging the AI in various ways trying to make them more multiplayer-viable for certain tasks.

I found this is the cause of the AI attacking their own crew with railguns:

image
In short. this needs to be lower invariant check, or for it to be "Human", as this check inside of Turret.cs 's AIOperate thinks species "Human" is not "human".

It also looks like (as a side note) the AIOperate for a turret will not factor an enemy being outside of the turret's maximum rotation limits, I think the code should be modified to account for this in target selection.

@Regalis11 Regalis11 self-assigned this Feb 8, 2019
Regalis11 added a commit that referenced this issue Feb 8, 2019
…es that are outside the turret's rotation limits. Closes #1102
Regalis11 added a commit that referenced this issue Mar 14, 2019
…es that are outside the turret's rotation limits. Closes #1102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants