Changeset 10644 in orxonox.OLD for branches/vs-enhencements/src/world_entities/weapons
- Timestamp:
- Apr 29, 2007, 9:58:18 PM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/weapons/heavy_blaster.cc
r10618 r10644 156 156 157 157 158 // Animation3D* animB0Shoot = this->getAnimation(WS_SHOOTING0, this->objComp[0][0]);159 // Animation3D* animB1Shoot = this->getAnimation(WS_SHOOTING1, this->objComp2);160 // Animation3D* animB2Shoot = this->getAnimation(WS_SHOOTING2, this->objComp3);161 // Animation3D* animT0Shoot = this->getAnimation(WS_SHOOTING3, this->objComp[0][1]);162 // Animation3D* animT1Shoot = this->getAnimation(WS_SHOOTING4, this->objComp5);163 // Animation3D* animT2Shoot = this->getAnimation(WS_SHOOTING5, this->objComp6);164 165 166 // this->shootAnim[0][0]->setInfinity(ANIM_INF_CONSTANT);167 // animB1Shoot->setInfinity(ANIM_INF_CONSTANT);168 // animB2Shoot->setInfinity(ANIM_INF_CONSTANT);169 // animT0Shoot->setInfinity(ANIM_INF_CONSTANT);170 // animT1Shoot->setInfinity(ANIM_INF_CONSTANT);171 // animT2Shoot->setInfinity(ANIM_INF_CONSTANT);172 173 158 for (int i = 0; i < this->getBarrels(); i++){ 174 159 this->shootAnim[i][0]->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.05, ANIM_LINEAR, ANIM_NULL); … … 187 172 animation3->setInfinity(ANIM_INF_CONSTANT); 188 173 189 // this->setEmissionPoint(3.8, 1.2, 0, 0);190 191 174 animation2->addKeyFrame(Vector(0.0, -1.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 192 175 animation2->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.5, ANIM_LINEAR, ANIM_NULL); … … 207 190 pj->setParent(PNode::getNullParent()); 208 191 209 // pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5));210 // pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1));211 192 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1)); 212 193 213 194 pj->setAbsCoor(this->emissionPoint[this->activeBarrel]->getAbsCoor()); 214 // pj->setAbsCoor(this->getEmissionPoint(0));215 195 pj->setAbsDir(this->getAbsDir()); 216 // pj->toList(OM_GROUP_01_PROJ);217 196 pj->activate(); 218 197 -
branches/vs-enhencements/src/world_entities/weapons/light_blaster.cc
r10618 r10644 53 53 { 54 54 55 for (int i = 0; i < this->getBarrels(); i++)56 {57 //delete [] this->shootAnim[i];58 delete [] this->objComp[i];59 }60 delete [] this->emissionPoint;61 //delete [] this->shootAnim;62 delete [] this->objComp;55 // for (int i = 0; i < this->getBarrels(); i++) 56 // { 57 // //delete [] this->shootAnim[i]; 58 // delete [] this->objComp[i]; 59 // } 60 // delete [] this->emissionPoint; 61 // //delete [] this->shootAnim; 62 // delete [] this->objComp; 63 63 64 64 } -
branches/vs-enhencements/src/world_entities/weapons/rf_cannon.cc
r10641 r10644 52 52 RFCannon::~RFCannon() 53 53 { 54 for (int i = 0; i < this->getBarrels(); i++)55 delete [] this->objComp[i];54 // for (int i = 0; i < this->getBarrels(); i++) 55 // delete [] this->objComp[i]; 56 56 57 delete [] this->emissionPoint;58 delete [] this->objComp;57 // delete [] this->emissionPoint; 58 // delete [] this->objComp; 59 59 } 60 60 … … 132 132 pj->setParent(PNode::getNullParent()); 133 133 134 pj->setVelocity(this->getAbsDir().apply(Vector( 0,1,0))*190);134 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*190); 135 135 136 136 pj->setAbsCoor(this->emissionPoint[this->activeBarrel]->getAbsCoor());
Note: See TracChangeset
for help on using the changeset viewer.