Changeset 1901 for code/branches/network/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Oct 12, 2008, 12:15:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/SpaceShip.cc
r1834 r1901 181 181 this->setRadarObjectColour(this->getProjectileColour()); 182 182 } 183 assert(Model::create());183 Model::create(); 184 184 this->init(); 185 185 return true; … … 255 255 256 256 // START CREATING ADDITIONAL EFFECTS 257 /*this->backlight_ = new Backlight(this->maxSpeed_, 0.8); 258 this->attachObject(this->backlight_); 259 this->backlight_->setPosition(-2.35, 0, 0.2); 260 this->backlight_->setColour(this->getProjectileColour()); 261 262 this->smoke_ = new ParticleSpawner(); 263 this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3); 264 this->attachObject(this->smoke_); 265 266 this->fire_ = new ParticleSpawner(); 267 this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1); 268 this->attachObject(this->fire_); 269 */ 257 if(!network::Host::running()){ 258 this->backlight_ = new Backlight(this->maxSpeed_, 0.8); 259 this->backlight_->create(); 260 this->attachObject(this->backlight_); 261 this->backlight_->setPosition(-2.35, 0, 0.2); 262 this->backlight_->setColour(this->getProjectileColour()); 263 264 this->smoke_ = new ParticleSpawner(); 265 this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3); 266 this->attachObject(this->smoke_); 267 268 this->fire_ = new ParticleSpawner(); 269 this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1); 270 this->attachObject(this->fire_); 271 } 272 270 273 // END CREATING ADDITIONAL EFFECTS 271 274
Note: See TracChangeset
for help on using the changeset viewer.