Implemented flashligr and nightvision goggles usage.

Credits for this mostly goes to Immortal_BLG and KWo.
This commit is contained in:
Dmitry 2019-05-10 21:12:12 +03:00 committed by jeefo
commit 61b2566373
7 changed files with 149 additions and 29 deletions

View file

@ -1191,6 +1191,8 @@ void Bot::newRound (void) {
m_currentWeapon = 0;
}
m_flashLevel = 100.0f;
m_checkDarkTime = engine.timebase ();
m_knifeAttackTime = engine.timebase () + rng.getFloat (1.3f, 2.6f);
m_nextBuyTime = engine.timebase () + rng.getFloat (0.6f, 2.0f);