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

[GH-1005] Bot Improvements #1007

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

[GH-1005] Bot Improvements #1007

wants to merge 25 commits into from

Conversation

tvillegas98
Copy link
Contributor

@tvillegas98 tvillegas98 commented Dec 11, 2024

Motivation

Our first implementation for bots was naive and it fitted what we needed in that moment, but now we want to our bots to be less depredators and clumsy😆 .

Closes #1003
Closes #1005

Summary of changes

  • Added a vision range for our bots, this way they will either attack or follow nearby enemies and stop hunting players across the map
  • They now will change its movement direction based on time, this way they will no longer go straightforward
  • Implement and BotStateMachineChecker that would be in charge to move a bot from one state to another, this should be the priorities:
    • Running away -> If the bot is low health, it has to try to escape
    • Aggresive -> The bot would most likely to use skills
    • Moving -> Common state, it will always start in this state
  • They will lost track of invisible players, this can be changed in the future.
  • Skills are not random anymore, they've a kinda of basic logic
    • Basic skill will be triggered only if the bot has travelled a certain amount of distance and check
    • Ultimate skill will be triggered after the bot has at least used the basic skill a certain amount of times (3 for now)
    • Dash would be used every time that's available

How to test it?

You can explain how you tested it or suggest a way to do so.

Checklist

  • Tested the changes locally.
  • Reviewed the changes on GitHub, line by line.
  • This change requires new documentation.
    • Documentation has been added/updated.

@tvillegas98 tvillegas98 changed the title Gh 1005 skills Gh 1005 bot skills Dec 11, 2024
- Use skills on :aggresive state
- Ran away from enemies
- Switch direction if the bot stays too long in the same position
@tvillegas98 tvillegas98 changed the title Gh 1005 bot skills [GH-1005] Bot Improvements Dec 16, 2024
@tvillegas98 tvillegas98 changed the base branch from gh-680-bots-visible-players to main December 16, 2024 20:07
@tvillegas98 tvillegas98 marked this pull request as ready for review December 16, 2024 21:48
@tvillegas98 tvillegas98 marked this pull request as draft December 17, 2024 16:31
@tvillegas98 tvillegas98 marked this pull request as ready for review December 17, 2024 22:04
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.

[FEATURE] - Make bots use skill wisely [FEATURE] - Make bots movement less clumsy
1 participant