Changeset 10333 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Jan 24, 2007, 3:29:46 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/projectiles
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/acid_splash.cc
r10328 r10333 55 55 this->grid->setParent( this); 56 56 57 // if (rand()/2 == 0) //!<Randomized Textrures 58 this->grid->setTexture( "maps/acid3.png"); 57 58 int rnd = rand()/3; 59 60 switch (rnd){ 61 case 0: 62 this->grid->setTexture( "maps/acid2.png"); 63 break; 64 case 1: 65 this->grid->setTexture( "maps/acid3.png"); 66 break; 67 case 2: 68 this->grid->setTexture( "maps/blub.png"); 69 break; 70 default: 71 this->grid->setTexture( "maps/acid2.png"); 72 } 73 // if (rand()/2 == 0) //!<Randomized Textrures 74 // this->grid->setTexture( "maps/acid3.png"); 59 75 // else 60 76 // this->grid->setTexture( "maps/blub.png"); 61 77 62 78 this->grid->toList(OM_ENVIRON); //this->getOMListNumber()); 63 //this->toList(OM_ENVIRON);79 this->toList(OM_ENVIRON); 64 80 } 65 81 … … 113 129 this->deactivate(); 114 130 115 return;131 // return; 116 132 117 133 //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); -
branches/playability/src/world_entities/projectiles/projectile_weapon.h
r10256 r10333 116 116 117 117 // FastFactory ff; 118 static FastFactory* fastFactory;118 // static FastFactory* fastFactory; 119 119 120 120 OrxSound::SoundSource soundSource; -
branches/playability/src/world_entities/projectiles/spike.cc
r10289 r10333 43 43 this->registerObject(this, Spike::_objectList); 44 44 45 this->loadModel("models/projectiles/spike.obj" );45 this->loadModel("models/projectiles/spike.obj", 2); 46 46 47 47 this->setMinEnergy(1); -
branches/playability/src/world_entities/projectiles/spike_ball.cc
r10286 r10333 130 130 this->launcher[tmp + i] = this->launcher[i] * (-1); 131 131 } 132 133 this->freeMode = false; 132 134 } 133 135 … … 157 159 void SpikeBall::blow() 158 160 { 159 updateFireDir(); 161 if ( this->freeMode ) 162 updateFireDir(); 160 163 161 164 Spike* pj = NULL; … … 258 261 float matrix[4][4]; 259 262 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 263 this->halo->draw(); 260 264 261 265 glRotatef(angle, this->getRotationAxis().x, this->getRotationAxis().y, this->getRotationAxis().z); … … 264 268 this->getModel()->draw(); 265 269 266 this->halo->draw();267 270 268 271 glPopMatrix(); -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10289 r10333 61 61 float size; 62 62 63 bool freeMode; 64 63 65 }; 64 66
Note: See TracChangeset
for help on using the changeset viewer.