mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Make bot path more random when idle
This commit is contained in:
parent
6eb49f567a
commit
1e73333fbe
1 changed files with 4 additions and 1 deletions
|
@ -1029,7 +1029,10 @@ void PlayerBot::State_Idle(void)
|
|||
m_vLastDeathPos = vec_zero;
|
||||
}
|
||||
} else {
|
||||
AvoidPath(origin - Vector(orientation[0]) * 128.0f, 1024);
|
||||
Vector randomDir(G_CRandom(1), G_CRandom(1), G_CRandom(1));
|
||||
float radius = 512 + G_Random() * 4096;
|
||||
|
||||
AvoidPath(origin - Vector(orientation[0]) * 2.f, radius, randomDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue