0bot: allow bots to check breakable team (fix #693)
This commit is contained in:
parent
ae913a52db
commit
1394d08a28
3 changed files with 21 additions and 2 deletions
|
|
@ -281,6 +281,12 @@ edict_t *Bot::lookupBreakable () {
|
|||
if (game.isNullEntity (ent)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// check breakable team, needed for some plugins
|
||||
if (ent->v.team > 0 && ent->v.team != game.getGameTeam (this->ent ())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto &br : m_ignoredBreakable) {
|
||||
if (br == ent) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue