combat: throw explosive near friends when friendly fire is off
This commit is contained in:
parent
ad5352b041
commit
c0715714d6
1 changed files with 1 additions and 1 deletions
|
|
@ -2018,7 +2018,7 @@ void Bot::checkGrenadesThrow () {
|
|||
// care about different grenades
|
||||
switch (grenadeToThrow) {
|
||||
case Weapon::Explosive:
|
||||
if (numFriendsNear (m_lastEnemy->v.origin, 256.0f) > 0) {
|
||||
if (mp_friendlyfire.bool_ () && numFriendsNear (m_lastEnemy->v.origin, 256.0f) > 0) {
|
||||
allowThrowing = false;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue