Changeset 10289 in orxonox.OLD for branches/playability/src/world_entities/weapons
- Timestamp:
- Jan 17, 2007, 10:39:50 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/medium_blaster.cc
r10286 r10289 40 40 { 41 41 delete [] this->shootAnim[i]; 42 // delete [] this->objComp[i];43 42 } 44 43 delete [] this->shootAnim; 45 // delete [] this->objComp;46 44 } 47 45 … … 53 51 void MediumBlaster::init() 54 52 { 55 //this->registerObject(this, MediumBlaster::_objectList);56 57 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);58 59 53 this->loadModel("models/guns/blaster.obj", .33); 60 61 54 62 55 this->setStateDuration(WS_SHOOTING, 0.2); // 5 Schuss pro Sekunde … … 84 77 85 78 this->objComp = new PNode**[this->getBarrels()]; 86 // this->emissionPoint = new PNode*[this->getBarrels()];87 79 this->shootAnim = new Animation3D**[this->getBarrels()]; 88 80 for (int i = 0; i < this->getBarrels(); i++) 89 81 { 90 82 this->objComp[i] = new PNode* [this->getSegs()]; 91 // this->emissionPoint[i] = new PNode;92 // this->emissionPoint[i]->setParent(this); //< One EmissionPoint, that is a PNode connected to the weapon. You can set this to the exitting point of the Projectiles93 // this->emissionPoint[i]->setName("EmissionPoint");94 // this->emissionPoint[i]->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT);95 83 this->shootAnim[i] = new Animation3D* [this->getSegs()]; 96 84 for(int j = 0; j < this->getSegs(); j++) … … 168 156 glMatrixMode(GL_MODELVIEW); 169 157 glPushMatrix(); 170 glTranslatef (this->getAbsCoor ().x, 171 this->getAbsCoor ().y, 172 this->getAbsCoor ().z); 158 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 173 159 174 160 static_cast<StaticModel*>(this->getModel())->draw(2); … … 180 166 181 167 glPushMatrix(); 182 glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z); 183 static_cast<StaticModel*>(this->getModel())->draw(0); 184 glPopMatrix(); 185 168 glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z); 169 static_cast<StaticModel*>(this->getModel())->draw(0); 186 170 glPopMatrix(); 187 171 -
branches/playability/src/world_entities/weapons/spike_thrower.cc
r10271 r10289 161 161 pj->setAbsDir(this->getAbsDir()); 162 162 pj->activate(); 163 164 // this->increaseEnergy( - this->getProjectile()->getMinEnergy()); 165 163 166 }
Note: See TracChangeset
for help on using the changeset viewer.