Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2009, 2:45:54 PM (15 years ago)
Author:
landauf
Message:

merged particles branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r3084 r3087  
    3939#include "objects/worldentities/ParticleSpawner.h"
    4040#include "objects/worldentities/ExplosionChunk.h"
     41#include "objects/worldentities/BigExplosion.h"
    4142
    4243#include "objects/weaponsystem/WeaponSystem.h"
     
    143144
    144145        if (GameMode::isMaster())
    145           if (this->health_ <= 0)
    146             this->death();
     146            if (this->health_ <= 0 && bAlive_)
     147                this->death();
    147148    }
    148149
     
    229230
    230231            if (GameMode::isMaster())
    231                 this->deatheffect();
    232         }
    233     }
    234 
     232            {
     233//                this->deathEffect();
     234                this->goWithStyle();
     235            }
     236        }
     237    }
     238    void Pawn::goWithStyle()
     239    {
     240        this->bAlive_ = false;
     241        this->setDestroyWhenPlayerLeft(false);
     242
     243        BigExplosion* chunk = new BigExplosion(this->getCreator());
     244        chunk->setPosition(this->getPosition());
     245
     246    }
    235247    void Pawn::deatheffect()
    236248    {
Note: See TracChangeset for help on using the changeset viewer.