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 () {