Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10650 in orxonox.OLD


Ignore:
Timestamp:
May 10, 2007, 3:31:14 PM (17 years ago)
Author:
nicolasc
Message:

updated disruptor

Location:
branches/vs-enhencements/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/projectiles/hbolt.cc

    r10649 r10650  
    5959  this->halo = new Billboard();
    6060  this->halo->setSize(.65, .65);
    61   this->halo->setTexture("hbolt_halo2.jpg");
     61  this->halo->setTexture("hbolt_halo2.png");
    6262  this->halo->setVisibility(false);
    6363
  • branches/vs-enhencements/src/world_entities/weapons/disruptor.cc

    r10649 r10650  
    143143
    144144
     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
    145149  Animation3D* animation2 = this->getAnimation(WS_ACTIVATING, this);
    146150  Animation3D* animation3 = this->getAnimation(WS_DEACTIVATING, this);
     
    173177  pj->activate();
    174178
    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
    181183}
    182184
     
    206208    glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    207209
    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();
    209218
    210219  glPopMatrix();
  • branches/vs-enhencements/src/world_entities/weapons/heavy_blaster.cc

    r10648 r10650  
    157157
    158158  for (int i = 0; i < this->getBarrels(); i++){
    159     this->shootAnim[i][0]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.05, ANIM_LINEAR, ANIM_NULL);
     159    this->shootAnim[i][0]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.01, ANIM_LINEAR, ANIM_NULL);
    160160    this->shootAnim[i][0]->addKeyFrame(Vector(-0.3, 0.0, 0.0), Quaternion(), 0.9, ANIM_LINEAR, ANIM_NULL);
    161     this->shootAnim[i][0]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.55, ANIM_LINEAR, ANIM_NULL);
    162 
    163     this->shootAnim[i][1]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.05, ANIM_LINEAR, ANIM_NULL);
     161    this->shootAnim[i][0]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.5, ANIM_LINEAR, ANIM_NULL);
     162
     163    this->shootAnim[i][1]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL);
    164164    this->shootAnim[i][1]->addKeyFrame(Vector(-0.4, 0.0, 0.0), Quaternion(), 1.2, ANIM_LINEAR, ANIM_NULL);
    165     this->shootAnim[i][1]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.25, ANIM_LINEAR, ANIM_NULL);
     165    this->shootAnim[i][1]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);
    166166  }
    167167
Note: See TracChangeset for help on using the changeset viewer.