fix: low-skilled bots aiming overflows on ladders (ref #543)

nav: ignore first collision if we are in ladder node (by @commandcobra7).
bot: backported csbot function to check is enemy behind smoke.
bot: added ``yb_smoke_grenade_checks`` to control which method to use (2-csbot, 1-podbot, 0-disabled).
This commit is contained in:
jeefo 2024-03-31 23:23:01 +03:00
commit f9bae83466
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 180 additions and 11 deletions

View file

@ -126,6 +126,7 @@ public:
bool isTeamStacked (int team);
bool kickRandom (bool decQuota = true, Team fromTeam = Team::Unassigned);
bool hasCustomCSDMSpawnEntities ();
bool isLineBlockedBySmoke (const Vector &from, const Vector &to, float grenadeBloat = 1.0f);
public:
const Array <edict_t *> &getActiveGrenades () {

View file

@ -427,6 +427,7 @@ private:
bool isEnemyInSight (Vector &endPos);
bool isEnemyNoticeable (float range);
bool isCreature ();
bool isOnLadderPath ();
void doPlayerAvoidance (const Vector &normal);
void selectCampButtons (int index);
@ -877,6 +878,7 @@ extern ConVar cv_grenadier_mode;
extern ConVar cv_ignore_enemies_after_spawn_time;
extern ConVar cv_camping_time_min;
extern ConVar cv_camping_time_max;
extern ConVar cv_smoke_grenade_checks;
extern ConVar mp_freezetime;
extern ConVar mp_roundtime;