Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 7, 2011, 3:59:54 PM (13 years ago)
Author:
jo
Message:

Adjust weapon behaviour if bot dies and is respawned with a different weaponsetting than before.

File:
1 edited

Legend:

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

    r8733 r8735  
    205205        if (!this->isActive())
    206206            return;
    207 
     207        if(this->bDeathFlag_)//If a bot died recently, make him check his weaponsystem.
     208        {
     209            this->bSetupWorked = false;
     210            this->numberOfWeapons = 0;
     211            this->resetDeathFlag();
     212        }
    208213        float random;
    209214        float maxrand = 100.0f / ACTION_INTERVAL;
Note: See TracChangeset for help on using the changeset viewer.