fix: report that a bot has heard an enemy

This commit is contained in:
Владислав Сухов 2024-04-30 16:19:10 +00:00
commit b0e98d0e3f
3 changed files with 2 additions and 4 deletions

View file

@ -41,7 +41,6 @@ Event Chatter_GotBlinded = ive_been_blinded, my_eyes, i_cant_see, im_blind
Event Chatter_GoingToPlantBomb = im_gonna_go_plant, im_gonna_go_plant_the_bomb
Event Chatter_RescuingHostages = the_hostages_are_with_me, taking_the_hostages_to_safety, ive_got_the_hostages, i_have_the_hostages
Event Chatter_GoingToCamp = im_going_to_camp
Event Chatter_HearSomething = hang_on_i_heard_something, i_hear_something, i_hear_them, i_heard_them, i_heard_something_over_there
Event Chatter_TeamKill = what_happened, noo, oh_my_god, oh_man, oh_no_sad, what_have_you_done
Event Chatter_ReportingIn = reporting_in
Event Chatter_GuardingPlantedC4 = bombsite_secure, bombsite_under_control

View file

@ -179,7 +179,6 @@ CR_DECLARE_SCOPED_ENUM (Chatter,
GoingToPlantBomb,
RescuingHostages,
GoingToCamp,
HeardNoise,
TeamAttack,
TeamKill,
ReportingIn,

View file

@ -2643,8 +2643,8 @@ void Bot::checkRadioQueue () {
else if ((path.flags & NodeFlag::Camp) && rg.chance (75)) {
pushChatterMessage (Chatter::GoingToCamp);
}
else {
pushChatterMessage (Chatter::HeardNoise);
else if (m_states & Sense::HearingEnemy) {
pushChatterMessage (Chatter::HeardTheEnemy);
}
}
else if (rg.chance (30)) {