nav: improve player avoidance once more
nav: try to repath our ways if stuck with other bot combat: a little improvement in knife usage control: enable/disable regame's round infinite when editing graph chatlib: replace say/say_team for older hlds to fix buffer overruns in gamelib Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
d965d7677f
commit
30013702c7
10 changed files with 181 additions and 23 deletions
|
|
@ -1520,6 +1520,10 @@ void Bot::attackMovement () {
|
|||
|
||||
if (usesKnife () && isEnemyCone) {
|
||||
m_fightStyle = Fight::Strafe;
|
||||
|
||||
if (distanceSq > cr::sqrf (100.0f)) {
|
||||
m_fightStyle = Fight::None;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_fightStyle == Fight::Strafe) {
|
||||
|
|
@ -1584,7 +1588,7 @@ void Bot::attackMovement () {
|
|||
}
|
||||
|
||||
// do not move if inside "corridor"
|
||||
if (wallOnRight && wallOnLeft) {
|
||||
if (wallOnRight && wallOnLeft && !usesKnife ()) {
|
||||
m_strafeSpeed = 0.0f;
|
||||
m_moveSpeed = 0.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue