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

Add Escape Scenario for Bot AI with Dynamic Behavior #1012

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

Vaqtincha
Copy link
Contributor

@Vaqtincha Vaqtincha commented Sep 15, 2024

Little support escape mode for bots...

Description

This pull request introduces a new game scenario for bot AI: Escape. The bots now exhibit dynamic behavior based on the scenario, which includes actions like guarding escape zones, rushing, and sniping.

Changes:

  1. cs_bot_manager.cpp:

    • Implemented logic to detect and handle func_escapezone entities, setting the game scenario to ESCAPE when found.
  2. cs_bot_manager.h:

    • Added a new value, SCENARIO_ESCAPE, to the GameScenarioType enum to represent the escape scenario.
  3. cs_bot_idle.cpp:

    • Terrorists: Bots select a random or closest escape zone depending on the round time and move to a random position within that zone.
    • Counter-Terrorists: Bots may guard escape zones or snipe from key positions, with behavior influenced by their morale and team actions.
    • Bots’ actions are influenced by their morale, with changes in behavior such as defending, sniping, or rushing based on the game situation.

Motivation

This update enhances bot AI behavior, making them more adaptable to varied game scenarios, improving both the strategic complexity and realism of gameplay. It adds more depth to bot decision-making, especially in escape-oriented scenarios.

Testing

  • Bots were tested in various map scenarios with escape zones to ensure they properly respond to the new scenario.
  • Verified bot actions like movement to escape zones, sniping, and defending based on morale and round conditions.

Additional Notes

  • This feature builds on existing bot behavior and extends it with new decision-making capabilities related to escape scenarios.

@s1lentq s1lentq merged commit 9b7b169 into rehlds:master Sep 17, 2024
4 checks passed
@Vaqtincha Vaqtincha deleted the botescape branch September 17, 2024 11:33
@SergeyShorokhov SergeyShorokhov changed the title Botescape Add Escape Scenario for Bot AI with Dynamic Behavior Dec 12, 2024
@SergeyShorokhov SergeyShorokhov added Type: 🚀 enhancement Improvement or addition of a new feature. Priority: 🕒 low Low priority tasks that can be postponed for the future. Difficulty: 🟡 medium Task of medium difficulty requiring moderate effort. Status: ✅ done The issue done and closed. Status: 🎮 testing Issue in testing stage. labels Dec 12, 2024
@Vaqtincha
Copy link
Contributor Author

I haven't played this mode myself. but they tell me that it would be nice if the bots first looked for weapons on the map.

@SergeyShorokhov
Copy link
Member

@Vaqtincha In any case, we appreciate the addition of this mode for bots. After these changes we can at least try the mode (test) and add new functionality as we test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: 🟡 medium Task of medium difficulty requiring moderate effort. Priority: 🕒 low Low priority tasks that can be postponed for the future. Status: ✅ done The issue done and closed. Status: 🎮 testing Issue in testing stage. Type: 🚀 enhancement Improvement or addition of a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants