Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2007, 4:44:17 PM (17 years ago)
Author:
nicolasc
Message:

EOD commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r10159 r10170  
    3434LightBlaster::~LightBlaster()
    3535{
     36  for (int i = 0; i < this->getBarrels(); i++)
     37  {
     38    for(int j = 0; j < this->getSegs(); j++)
     39    {
     40      delete this->shootAnim[i][j];
     41      delete this->objComp[i][j];
     42    }
     43    delete this->shootAnim[i];
     44    delete this->objComp[i];
     45    delete this->emissionPoint[i];
     46  }
     47
     48  this->deconstr();
    3649      // model will be deleted from WorldEntity-destructor
    3750}
     
    6477  //this->setProjectileTypeC("RailProjectile");   // FIXME temp project type until the blaste class exist
    6578  this->setProjectileTypeC("LBolt");   // Working; FIXME: add textures
     79//   this->setProjectileTypeC("Spike");   // Working; FIXME: add textures
    6680  this->prepareProjectiles(100);
    6781
     
    103117
    104118  for (int i = 0; i < this->getBarrels(); i++){
    105     this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(0.0, 0.0, 0.0), 0.04, ANIM_NULL, ANIM_LINEAR);
    106     this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(M_2_PI/3.0, 0.0, 0.0), 0.01, ANIM_NULL, ANIM_LINEAR);
     119    this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(i * 120, Vector(1.0, 0.0, 0.0)), 0.049, ANIM_NULL, ANIM_LINEAR);
     120    this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion((i+1)*120, Vector(1.0, 0.0, 0.0)), 0.001, ANIM_NULL, ANIM_LINEAR);
    107121  }
    108122
Note: See TracChangeset for help on using the changeset viewer.