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/worldentities/pawns/Pawn.cc

    r8706 r8735  
    304304        if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_))
    305305        {
     306            if ( this->getController()&& (!this->isHumanShip_) ) //announce death to the ai
     307            {
     308                 this->getController()->setDeathFlag();
     309            }
    306310            // Set bAlive_ to false and wait for PawnManager to do the destruction
    307311            this->bAlive_ = false;
Note: See TracChangeset for help on using the changeset viewer.