Changeset 3087 for code/trunk/src/orxonox/objects/worldentities/pawns
- Timestamp:
- May 27, 2009, 2:45:54 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/particles (added) merged: 2830,3054,3065
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r3084 r3087 39 39 #include "objects/worldentities/ParticleSpawner.h" 40 40 #include "objects/worldentities/ExplosionChunk.h" 41 #include "objects/worldentities/BigExplosion.h" 41 42 42 43 #include "objects/weaponsystem/WeaponSystem.h" … … 143 144 144 145 if (GameMode::isMaster()) 145 if (this->health_ <= 0)146 this->death();146 if (this->health_ <= 0 && bAlive_) 147 this->death(); 147 148 } 148 149 … … 229 230 230 231 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 } 235 247 void Pawn::deatheffect() 236 248 { -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.h
r3086 r3087 118 118 119 119 virtual void death(); 120 virtual void goWithStyle(); 120 121 virtual void deatheffect(); 121 122 virtual void spawneffect();
Note: See TracChangeset
for help on using the changeset viewer.