- Timestamp:
- Dec 13, 2008, 2:55:13 PM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2414 r2422 30 30 #include "Pawn.h" 31 31 32 #include "core/Core.h" 32 33 #include "core/CoreIncludes.h" 33 34 #include "core/XMLPort.h" … … 145 146 if (this->spawnparticlesource_ != "") 146 147 { 147 ParticleSpawner* effect = new ParticleSpawner(this );148 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 148 149 effect->setPosition(this->getPosition()); 149 150 effect->setOrientation(this->getOrientation()); … … 167 168 this->getPlayer()->stopControl(this); 168 169 169 this->deatheffect(); 170 if (Core::isMaster()) 171 this->deatheffect(); 170 172 } 171 173 … … 174 176 // play death effect 175 177 { 176 ParticleSpawner* effect = new ParticleSpawner(this );178 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 177 179 effect->setPosition(this->getPosition()); 178 180 effect->setOrientation(this->getOrientation()); … … 182 184 } 183 185 { 184 ParticleSpawner* effect = new ParticleSpawner(this );186 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 185 187 effect->setPosition(this->getPosition()); 186 188 effect->setOrientation(this->getOrientation()); … … 190 192 } 191 193 { 192 ParticleSpawner* effect = new ParticleSpawner(this );194 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 193 195 effect->setPosition(this->getPosition()); 194 196 effect->setOrientation(this->getOrientation()); … … 199 201 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 200 202 { 201 ExplosionChunk* chunk = new ExplosionChunk(this );203 ExplosionChunk* chunk = new ExplosionChunk(this->getCreator()); 202 204 chunk->setPosition(this->getPosition()); 203 205 … … 214 216 { 215 217 this->setHealth(this->initialHealth_); 216 this->spawneffect(); 218 if (Core::isMaster()) 219 this->spawneffect(); 217 220 } 218 221 -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2362 r2422 62 62 63 63 this->greetingFlare_ = new BillboardSet(); 64 this->greetingFlare_->setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 1.0, 0.8), Vector3(0, 20, 0), 1);64 this->greetingFlare_->setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 1.0, 0.8), Vector3(0, 0, 0), 1); 65 65 if (this->greetingFlare_->getBillboardSet()) 66 66 this->getNode()->attachObject(this->greetingFlare_->getBillboardSet());
Note: See TracChangeset
for help on using the changeset viewer.