Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2010, 6:39:59 PM (14 years ago)
Author:
solex
Message:

consle commands

File:
1 edited

Legend:

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

    r6919 r6978  
    2323 *      Fabian 'x3n' Landau
    2424 *   Co-authors:
    25  *      ...
     25 *      Dominik Solenicki
    2626 *
    2727 */
     
    6161            if (this->formationFlight_)
    6262            {
    63             // return to Master after being forced free
     63                // return to Master after being forced free
    6464                if (this->freedomCount_ == 1)
    6565                {
     
    103103                this->searchRandomTargetPosition();
    104104
    105 /*
    106             random = rnd(maxrand);
    107             if (random < 75 && (this->target_ && !this->bShooting_))
     105            // shoot
     106            random = rnd(maxrand);
     107            if (!(this->passive_) && random < 75 && (this->target_ && !this->bShooting_))
    108108                this->bShooting_ = true;
    109109
     
    111111            random = rnd(maxrand);
    112112            if (random < 25 && (this->bShooting_))
    113                 this->bShooting_ = false; */
     113                this->bShooting_ = false;
    114114
    115115        }
     
    120120        }
    121121
    122         if (this->state_ == MASTER)//MASTER
     122        if (this->state_ == MASTER)
    123123        {
    124124
     
    136136                if (this->specificMasterAction_ == SPIN)
    137137                    this->spin();
     138
     139//                 if (this->specificMasterAction_ == FOLLOWHUMAN)
     140//                     this->followHuman(this->HumanToFollow_, false);
    138141            }
    139142
     
    188191                // shoot
    189192                random = rnd(maxrand);
    190                 if (random < 5 && (this->target_ && !this->bShooting_))
     193                if (!(this->passive_) && random < 15 && (this->target_ && !this->bShooting_))
    191194                {
    192195                this->bShooting_ = true;
Note: See TracChangeset for help on using the changeset viewer.