Changeset 1751 for code/trunk/src/orxonox
- Timestamp:
- Sep 9, 2008, 4:31:34 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Model.cc
r1747 r1751 45 45 CreateFactory(Model); 46 46 47 /** 48 * 49 */ 47 50 Model::Model() 48 51 { 49 52 RegisterObject(Model); 50 53 registerAllVariables(); 54 if(this->isExactlyA(Class(Model))) 55 setObjectFrequency(1); 51 56 } 52 57 -
code/trunk/src/orxonox/objects/SpaceShip.cc
r1747 r1751 78 78 return *it; 79 79 } 80 return 0;80 assert(0); 81 81 } 82 82 … … 165 165 if(network::Host::running()) 166 166 COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl; 167 if(network::Host::running() && objectID == network::Host::getShipID()) 167 if(network::Host::running() && objectID == network::Host::getShipID()){ 168 if(!network::Host::isServer()) 169 setObjectMode(0x3); 168 170 myShip_=true; 171 } 169 172 else 170 173 this->setRadarObjectColour(this->getProjectileColour()); … … 242 245 243 246 // START CREATING ADDITIONAL EFFECTS 244 this->backlight_ = new Backlight(this->maxSpeed_, 0.8); 245 this->attachObject(this->backlight_); 246 this->backlight_->setPosition(-2.35, 0, 0.2); 247 this->backlight_->setColour(this->getProjectileColour()); 248 249 this->smoke_ = new ParticleSpawner(); 250 this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3); 251 this->attachObject(this->smoke_); 252 253 this->fire_ = new ParticleSpawner(); 254 this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1); 255 this->attachObject(this->fire_); 247 /*if(!network::Host::running() || network::Host::isServer()){ 248 this->backlight_ = new Backlight(this->maxSpeed_, 0.8); 249 this->attachObject(this->backlight_); 250 this->backlight_->setPosition(-2.35, 0, 0.2); 251 this->backlight_->setColour(this->getProjectileColour()); 252 253 this->smoke_ = new ParticleSpawner(); 254 this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3); 255 this->attachObject(this->smoke_); 256 257 this->fire_ = new ParticleSpawner(); 258 this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1); 259 this->attachObject(this->fire_); 260 }*/ 256 261 // END CREATING ADDITIONAL EFFECTS 257 262 … … 357 362 if(myShip_){ 358 363 COUT(3) << "requesting focus for camera" << std::endl; 359 this->setBacksync(true);360 364 //CameraHandler::getInstance()->requestFocus(cam_); 361 365 if(this->isExactlyA(Class(SpaceShip))){ … … 463 467 } 464 468 465 projectile->set Backsync(true);469 projectile->setObjectMode(0x3); 466 470 this->timeToReload_ = this->reloadTime_; 467 471 }
Note: See TracChangeset
for help on using the changeset viewer.