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

Spawn away from enemy players #402

Merged
merged 15 commits into from
Apr 13, 2024
Merged

Spawn away from enemy players #402

merged 15 commits into from
Apr 13, 2024

Conversation

tra
Copy link
Contributor

@tra tra commented Apr 11, 2024

This branch introduces 4 options for spawning which are controlled with the spawnOrder setting on the server:

  • Random (0) = pick Incarnators randomly, probably not very useful but maybe interesting for some levels (?)
  • Usage / Classic (1) = the same as what the original code did, pick the least-used Incarnators first, regardless of location
  • Distance (2) = calculate the minimum distance to an opposing player and order on distance descending. There is also a random component added to this distance to keep it from being purely the furthest away. This is an improvement but can be a little too predictable on smaller levels.
  • Hybrid (3) = combination of the above algorithms which takes into account both distance and usage. When comparing Incarnators this compares distancePlusRand/usageCount to decide which one to pick. This is the default option.

@tra tra merged commit d440448 into main Apr 13, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants