Changeset 10046 in orxonox.OLD for branches/playability
- Timestamp:
- Dec 12, 2006, 10:53:34 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/lbolt.cc
r10044 r10046 57 57 this->angle = 0; 58 58 this->rotationSpeed = 130; 59 /* 59 60 60 this->mat = new Material("lBolt"); 61 61 //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); … … 65 65 this->mat->setDiffuseMap("lbolt.png",1); 66 66 dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat); 67 dynamic_cast<StaticModel*>(this->getModel())->finalize(); */67 dynamic_cast<StaticModel*>(this->getModel())->finalize(); 68 68 } 69 69 … … 160 160 { 161 161 glPushAttrib(GL_ENABLE_BIT); 162 glDisable(GL_LIGHTING);162 //glDisable(GL_LIGHTING); 163 163 164 164 glMatrixMode(GL_MODELVIEW); … … 170 170 this->getAbsDir().matrix (matrix); 171 171 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(); 173 180 glPopMatrix(); 174 181 -
branches/playability/src/world_entities/weapons/heavy_blaster.cc
r10044 r10046 96 96 97 97 // 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)); 98 99 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1)); 99 100 -
branches/playability/src/world_entities/weapons/light_blaster.cc
r10044 r10046 94 94 95 95 // 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); 97 97 98 98 pj->setAbsCoor(this->getEmissionPoint()); -
branches/playability/src/world_entities/weapons/swarm_launcher.cc
r10037 r10046 140 140 return; 141 141 142 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*1 00.0 /*+ VECTOR_RAND(13) */142 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 /*+ VECTOR_RAND(13) */ 143 143 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 144 144
Note: See TracChangeset
for help on using the changeset viewer.