Changeset 10170 in orxonox.OLD for branches/playability/src/world_entities/weapons/light_blaster.cc
- Timestamp:
- Jan 3, 2007, 4:44:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/light_blaster.cc
r10159 r10170 34 34 LightBlaster::~LightBlaster() 35 35 { 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(); 36 49 // model will be deleted from WorldEntity-destructor 37 50 } … … 64 77 //this->setProjectileTypeC("RailProjectile"); // FIXME temp project type until the blaste class exist 65 78 this->setProjectileTypeC("LBolt"); // Working; FIXME: add textures 79 // this->setProjectileTypeC("Spike"); // Working; FIXME: add textures 66 80 this->prepareProjectiles(100); 67 81 … … 103 117 104 118 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); 107 121 } 108 122
Note: See TracChangeset
for help on using the changeset viewer.