combat: minor fixes to the grenade throwing conditions

This commit is contained in:
jeefo 2024-02-12 16:04:22 +03:00
commit ad5352b041
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 51 additions and 40 deletions

View file

@ -439,6 +439,7 @@ constexpr auto kMaxCollideMoves = 3;
constexpr auto kGameMaxPlayers = 32;
constexpr auto kGameTeamNum = 2;
constexpr auto kInvalidNodeIndex = -1;
constexpr auto kGrenadeInventoryEmpty = -1;
constexpr auto kConfigExtension = "cfg";
// weapon masks

View file

@ -414,8 +414,9 @@ private:
bool isFriendInLineOfFire (float distance);
bool isGroupOfEnemies (const Vector &location, int numEnemies = 1, float radius = 256.0f);
bool isPenetrableObstacle (const Vector &dest);
bool isPenetrableObstacle2 (const Vector &dest);
bool isPenetrableObstacle3 (const Vector &dest);
bool isPenetrableObstacle1 (const Vector &dest, int penetratePower);
bool isPenetrableObstacle2 (const Vector &dest, int penetratePower);
bool isPenetrableObstacle3 (const Vector &dest, int penetratePower);
bool isEnemyBehindShield (edict_t *enemy);
bool checkChatKeywords (String &reply);
bool isReplyingToChat ();