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
|
|
@ -427,8 +427,8 @@ namespace TaskPri {
|
|||
constexpr auto kInfiniteDistance = 9999999.0f;
|
||||
constexpr auto kInvalidLightLevel = kInfiniteDistance;
|
||||
constexpr auto kGrenadeCheckTime = 0.6f;
|
||||
constexpr auto kSprayDistance = 260.0f;
|
||||
constexpr auto kDoubleSprayDistance = kSprayDistance * 2;
|
||||
constexpr auto kSprayDistance = 360.0f;
|
||||
constexpr auto kSprayDistanceX2 = kSprayDistance * 2;
|
||||
constexpr auto kMaxChatterRepeatInterval = 99.0f;
|
||||
constexpr auto kViewFrameUpdate = 1.0f / 30.0f;
|
||||
constexpr auto kGrenadeDamageRadius = 385.0f;
|
||||
|
|
|
|||
|
|
@ -63,6 +63,13 @@ public:
|
|||
{ }
|
||||
};
|
||||
|
||||
// save old values of changed cvars to revert them back when editing turned off
|
||||
struct GraphSaveVarValue {
|
||||
float timelimit {};
|
||||
float freezetime {};
|
||||
float roundtime {};
|
||||
} m_graphSaveVarValues;
|
||||
|
||||
private:
|
||||
StringArray m_args {};
|
||||
Array <BotCmd> m_cmds {};
|
||||
|
|
|
|||
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