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

Allow Xenos to become queens #5909

Merged
merged 4 commits into from
Jan 28, 2021
Merged

Allow Xenos to become queens #5909

merged 4 commits into from
Jan 28, 2021

Conversation

corp-0
Copy link
Member

@corp-0 corp-0 commented Jan 28, 2021

Purpose

This expands the xeno lifecycle in an attempt to preserve the perfect life form. Once spawned, xenos will check the amount of queens in the current round and in case the set cap (defaults to 1) isn't reached, they will try to become a queen themselves.

Notes:

Minor changes:

  • Converted death and random hostile sounds to Addressables, I set the Xeno sounds, the rest need setting.
  • Might have fixed Queens not laying eggs.
  • Increased the hugger cap for queens to 20 (it was 8). They weren't laying eggs because the huggers in caverna were enough to reach the cap.

CL: Xenomorphs can become Queens now if there are no Queens in the round.
CL: Fixed Queens not laying eggs.

@PerfectTangent
Copy link
Contributor

Might run into some weird edge cases where drones won't level up because the extra scenes like away sites start with queens. Caverna being the main one that comes to mind

@corp-0
Copy link
Member Author

corp-0 commented Jan 28, 2021

Yep. It happened already with huggers as stated in the description. If there is a queen in caverna, then the xenos will never become one. The cap can be tweaked per xeno if we wanted.

@PerfectTangent
Copy link
Contributor

Could you make it check by matrix?

@PerfectTangent
Copy link
Contributor

Could also make the xeno queen in caverna not count towards the cap.

@corp-0
Copy link
Member Author

corp-0 commented Jan 28, 2021

I think I like the last better. I can add a toggle box that would avoid that particular instance of the ai to count.

@Mute-Man
Copy link
Contributor

what does space count as? is it its own matrix?
if queens were counted by matrix, which matrix would xenos in space count as being on

@corp-0
Copy link
Member Author

corp-0 commented Jan 28, 2021

space is part of main station matrix afaik

@Mute-Man
Copy link
Contributor

wack

@corp-0
Copy link
Member Author

corp-0 commented Jan 28, 2021

Checked caverna. It doesn't directly spawn mobs but uses a system to spawn mobs only after someone put a feet on the matrix so I can't really change anything about how they count.

@Bod9001
Copy link
Member

Bod9001 commented Jan 28, 2021

good to merge?

@corp-0
Copy link
Member Author

corp-0 commented Jan 28, 2021

imo ye

@Bod9001 Bod9001 merged commit d1026e7 into unitystation:develop Jan 28, 2021
@PerfectTangent PerfectTangent added the System: AI Mob behavior label Apr 2, 2021
@corp-0 corp-0 deleted the xenolewds branch July 13, 2021 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
System: AI Mob behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants