Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 3:29:46 PM (18 years ago)
Author:
nicolasc
Message:

bump: black acid splash

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  
    5555  this->grid->setParent( this);
    5656
    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");
    5975//   else
    6076//     this->grid->setTexture( "maps/blub.png");
    6177
    6278  this->grid->toList(OM_ENVIRON); //this->getOMListNumber());
    63   //this->toList(OM_ENVIRON);
     79  this->toList(OM_ENVIRON);
    6480}
    6581
     
    113129  this->deactivate();
    114130 
    115   return;
     131//   return;
    116132
    117133  //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
  • branches/playability/src/world_entities/projectiles/projectile_weapon.h

    r10256 r10333  
    116116
    117117//     FastFactory             ff;
    118     static FastFactory*               fastFactory;
     118//     static FastFactory*               fastFactory;
    119119
    120120    OrxSound::SoundSource  soundSource;
  • branches/playability/src/world_entities/projectiles/spike.cc

    r10289 r10333  
    4343  this->registerObject(this, Spike::_objectList);
    4444
    45   this->loadModel("models/projectiles/spike.obj");
     45  this->loadModel("models/projectiles/spike.obj", 2);
    4646
    4747  this->setMinEnergy(1);
  • branches/playability/src/world_entities/projectiles/spike_ball.cc

    r10286 r10333  
    130130    this->launcher[tmp + i] =  this->launcher[i] * (-1);
    131131  }
     132
     133  this->freeMode = false;
    132134}
    133135
     
    157159void SpikeBall::blow()
    158160{
    159   updateFireDir();
     161  if ( this->freeMode )
     162    updateFireDir();
    160163
    161164  Spike* pj = NULL;
     
    258261  float matrix[4][4];
    259262  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     263  this->halo->draw();
    260264
    261265  glRotatef(angle, this->getRotationAxis().x, this->getRotationAxis().y, this->getRotationAxis().z);
     
    264268  this->getModel()->draw();
    265269
    266   this->halo->draw();
    267270
    268271  glPopMatrix();
  • branches/playability/src/world_entities/projectiles/spike_ball.h

    r10289 r10333  
    6161    float         size;
    6262
     63    bool          freeMode;
     64
    6365};
    6466
Note: See TracChangeset for help on using the changeset viewer.