Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10046 in orxonox.OLD


Ignore:
Timestamp:
Dec 12, 2006, 10:53:34 PM (17 years ago)
Author:
nicolasc
Message:

bump

Location:
branches/playability/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/lbolt.cc

    r10044 r10046  
    5757  this->angle = 0;
    5858  this->rotationSpeed = 130;
    59 /*
     59
    6060  this->mat = new Material("lBolt");
    6161  //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
     
    6565  this->mat->setDiffuseMap("lbolt.png",1);
    6666  dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat);
    67   dynamic_cast<StaticModel*>(this->getModel())->finalize();*/
     67  dynamic_cast<StaticModel*>(this->getModel())->finalize();
    6868}
    6969
     
    160160{
    161161  glPushAttrib(GL_ENABLE_BIT);
    162   glDisable(GL_LIGHTING);
     162  //glDisable(GL_LIGHTING);
    163163
    164164  glMatrixMode(GL_MODELVIEW);
     
    170170  this->getAbsDir().matrix (matrix);
    171171  glMultMatrixf((float*)matrix);
    172   this->getModel()->draw();
     172  //this->getModel()->draw();
     173
     174  this->mat->select();
     175  dynamic_cast<StaticModel*>(this->getModel())->draw();
     176  this->mat->select();
     177  dynamic_cast<StaticModel*>(this->getModel())->draw();
     178  this->mat->unselect();
     179  this->mat->unselect();
    173180  glPopMatrix();
    174181
  • branches/playability/src/world_entities/weapons/heavy_blaster.cc

    r10044 r10046  
    9696
    9797//   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5));
     98//   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1));
    9899  pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1));
    99100
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r10044 r10046  
    9494
    9595//   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5));
    96   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*80);
     96  pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*180);
    9797
    9898  pj->setAbsCoor(this->getEmissionPoint());
  • branches/playability/src/world_entities/weapons/swarm_launcher.cc

    r10037 r10046  
    140140    return;
    141141
    142   pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 /*+ VECTOR_RAND(13) */
     142  pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 /*+ VECTOR_RAND(13) */
    143143            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
    144144
Note: See TracChangeset for help on using the changeset viewer.