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

Bot Target #116

Open
LuckyLuke9542 opened this issue Sep 14, 2023 · 1 comment
Open

Bot Target #116

LuckyLuke9542 opened this issue Sep 14, 2023 · 1 comment

Comments

@LuckyLuke9542
Copy link

LuckyLuke9542 commented Sep 14, 2023

Currently, bot's seem to pick a random target and start going after them. This can cause issues where say a human player is across the map while the rest of the humans are inside a cade on the other side. The majority of the bots will choose the furthest human and go after them, making them basically useless for the whole wave. Bots should always choose the closest target every time to prevent this from happening.

@Dadido3
Copy link
Owner

Dadido3 commented Sep 14, 2023

That's something i haven't thought about. You are right, due to the asymmetry between the short path (to the large amount of players) and the long path (to the single player), bots will overproportionally be busy with walking to that single player.

But i don't think bots should target the closest player (i mean, i could still add that and make it an option). But maybe i could weight the random selection based on the number of other bots that target a player/prop. So the more bots are targeting some player, the less likely it will be that another bot is randomly choosing that player/prop as a target.

(It's also a problem with map design, and with bots not being able to create nests at tactical spots.... But that's harder to fix)

I can't promise any date when i will improve this. Pull requests are welcome, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants