Fixed radio commands that should be issued only when chatter enabled.
Implemented useless waypoint cleaner (yb wp clean <nr/all>).
This commit is contained in:
parent
c8f2c95ce6
commit
d4e1fdb4fb
5 changed files with 410 additions and 7 deletions
|
|
@ -905,7 +905,9 @@ void Bot::fireWeapons (void) {
|
|||
m_reloadState = RELOAD_PRIMARY;
|
||||
m_reloadCheckTime = engine.timebase ();
|
||||
|
||||
pushRadioMessage (RADIO_NEED_BACKUP);
|
||||
if (rng.getInt (0, 100) < cr::abs (m_difficulty * 25 - 100)) {
|
||||
pushRadioMessage (RADIO_NEED_BACKUP);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue