Changeset 10650 in orxonox.OLD for branches/vs-enhencements/src/world_entities/weapons/disruptor.cc
- Timestamp:
- May 10, 2007, 3:31:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/weapons/disruptor.cc
r10649 r10650 143 143 144 144 145 this->shootAnim[0][0]->addKeyFrame(Vector(0.0, 0.0, 0.0) * this->getScaling(), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 146 this->shootAnim[0][0]->addKeyFrame(Vector(-0.5, 0.0, 0.0) * this->getScaling(), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL); 147 // this->shootAnim[0][0]->addKeyFrame(Vector(0.0, 0.0, 0.0) * this->getScaling(), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 148 145 149 Animation3D* animation2 = this->getAnimation(WS_ACTIVATING, this); 146 150 Animation3D* animation3 = this->getAnimation(WS_DEACTIVATING, this); … … 173 177 pj->activate(); 174 178 175 // initiate animation 176 // for (int i = 0; i < this->getSegs(); i++) 177 // this->shootAnim[this->activeBarrel][i]->replay(); 178 179 // switch barrel 180 // this->activeBarrel = (this->activeBarrel + 1) % this->getBarrels(); 179 180 this->shootAnim[0][0]->replay(); 181 182 181 183 } 182 184 … … 206 208 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 207 209 208 static_cast<StaticModel*>(this->getModel())->draw(); 210 //Base 211 static_cast<StaticModel*>(this->getModel())->draw(1); 212 213 // Barrel glPushMatrix(); 214 glTranslatef 215 (this->objComp[0][0]->getAbsCoor().x, this->objComp[0][0]->getAbsCoor().y, this->objComp[0][0]->getAbsCoor().z); 216 static_cast<StaticModel*>(this->getModel())->draw(0); 217 glPopMatrix(); 209 218 210 219 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.