Skip to content

Add Escape Scenario for Bot AI with Dynamic Behavior#1012

Merged
s1lentq merged 3 commits intorehlds:masterfrom
Vaqtincha:botescape
Sep 17, 2024
Merged

Add Escape Scenario for Bot AI with Dynamic Behavior#1012
s1lentq merged 3 commits intorehlds:masterfrom
Vaqtincha:botescape

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
@Vaqtincha Vaqtincha deleted the botescape branch September 17, 2024 11:33
@wopox1337 wopox1337 changed the title Botescape Add Escape Scenario for Bot AI with Dynamic Behavior Dec 12, 2024
@wopox1337 wopox1337 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
@wopox1337 wopox1337 requested a review from s1lentq December 12, 2024 11:45
@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.

@wopox1337
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.

yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
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