hearing: randomize listen position for heard sounds
graph: restore cvar variables values to initial values when disabling graph editor cfg: update primary config with actual cvars vision: remove unnecessary angles clamp combat: allow to disable engine potential visibility checks combat: do not aim to head on long distances with AWP, shotguns or with high recoil bot: set the minimum think fps to 30.0
This commit is contained in:
parent
867abdb288
commit
cc01693de9
11 changed files with 110 additions and 46 deletions
10
inc/yapb.h
10
inc/yapb.h
|
|
@ -790,6 +790,11 @@ private:
|
|||
return m_weaponType == WeaponType::Sniper;
|
||||
}
|
||||
|
||||
// returns true if bot is using a sniper rifle (awp)
|
||||
bool usesSniperAWP () const {
|
||||
return m_currentWeapon == Weapon::AWP;
|
||||
}
|
||||
|
||||
// returns true if bot is using a rifle
|
||||
bool usesRifle () const {
|
||||
return usesZoomableRifle () || m_weaponType == WeaponType::Rifle;
|
||||
|
|
@ -834,6 +839,11 @@ private:
|
|||
bool usesKnife () const {
|
||||
return m_weaponType == WeaponType::Melee;
|
||||
}
|
||||
|
||||
// checks if weapon recoil is high
|
||||
bool isRecoilHigh () const {
|
||||
return pev->punchangle.x < -1.45f;
|
||||
}
|
||||
};
|
||||
|
||||
#include "config.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue