Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2011, 10:27:15 PM (13 years ago)
Author:
jo
Message:

Backup before taking the next step.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/controllers/AIController.cc

    r8758 r8766  
    226226                            this->aimAtTarget();
    227227                            random = rnd(maxrand);
    228                             if(this->botlevel_*100 > random)
     228                            if(this->botlevel_*100 > random && !this->isCloseAtTarget(20))
    229229                                this->follow();  //If a bot is shooting a player, it shouldn't let him go away easily.
    230230                        }
     
    262262                        this->aimAtTarget();
    263263                        random = rnd(maxrand);
    264                         if(this->botlevel_*100 > random)
     264
     265                        if(this->botlevel_*100 > random && !this->isCloseAtTarget(20))
    265266                            this->follow();//If a bot is shooting a player, it shouldn't let him go away easily.
    266267                     }
Note: See TracChangeset for help on using the changeset viewer.