Changeset 10136 in orxonox.OLD for branches/playability/src/world_entities/weapons/heavy_blaster.cc
- Timestamp:
- Dec 21, 2006, 2:08:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/heavy_blaster.cc
r10133 r10136 67 67 this->setProjectileTypeC("HBolt"); // FIXME temp project type until the blaste class exist 68 68 this->prepareProjectiles(5); 69 70 this->setBarrels(3); 71 this->setSegs(2); 69 72 70 73 this->objComp1 = new PNode; … … 75 78 this->objComp6 = new PNode; 76 79 77 Animation3D* animB0Shoot = this->getAnimation(WS_SHOOTING , this->objComp1);78 Animation3D* animB1Shoot = this->getAnimation(WS_SHOOTING, this->objComp2);79 Animation3D* animB2Shoot = this->getAnimation(WS_SHOOTING, this->objComp3);80 Animation3D* animT0Shoot = this->getAnimation(WS_SHOOTING, this->objComp4);81 Animation3D* animT1Shoot = this->getAnimation(WS_SHOOTING, this->objComp5);82 Animation3D* animT2Shoot = this->getAnimation(WS_SHOOTING, this->objComp6);80 Animation3D* animB0Shoot = this->getAnimation(WS_SHOOTING0, this->objComp1); 81 // Animation3D* animB1Shoot = this->getAnimation(WS_SHOOTING1, this->objComp2); 82 // Animation3D* animB2Shoot = this->getAnimation(WS_SHOOTING2, this->objComp3); 83 // Animation3D* animT0Shoot = this->getAnimation(WS_SHOOTING3, this->objComp4); 84 // Animation3D* animT1Shoot = this->getAnimation(WS_SHOOTING4, this->objComp5); 85 // Animation3D* animT2Shoot = this->getAnimation(WS_SHOOTING5, this->objComp6); 83 86 84 87 animB0Shoot->setInfinity(ANIM_INF_CONSTANT); 85 animB1Shoot->setInfinity(ANIM_INF_CONSTANT);86 animB2Shoot->setInfinity(ANIM_INF_CONSTANT);87 animT0Shoot->setInfinity(ANIM_INF_CONSTANT);88 animT1Shoot->setInfinity(ANIM_INF_CONSTANT);89 animT2Shoot->setInfinity(ANIM_INF_CONSTANT);90 91 animB0Shoot->addKeyFrame(Vector(0. 1, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);92 animB0Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0. 2, ANIM_LINEAR, ANIM_NULL);93 animB0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0. 0, ANIM_LINEAR, ANIM_NULL);94 95 animT0Shoot->addKeyFrame(Vector(0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);96 animT0Shoot->addKeyFrame(Vector(-0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);97 animT0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0. 0, ANIM_LINEAR, ANIM_NULL);98 99 animB1Shoot->addKeyFrame(Vector(0.1, 0.0, 0.0), Quaternion(), 0. 2, ANIM_LINEAR, ANIM_NULL);100 animB1Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0. 2, ANIM_LINEAR, ANIM_NULL);88 // animB1Shoot->setInfinity(ANIM_INF_CONSTANT); 89 // animB2Shoot->setInfinity(ANIM_INF_CONSTANT); 90 // animT0Shoot->setInfinity(ANIM_INF_CONSTANT); 91 // animT1Shoot->setInfinity(ANIM_INF_CONSTANT); 92 // animT2Shoot->setInfinity(ANIM_INF_CONSTANT); 93 94 animB0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 95 animB0Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 96 animB0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 97 /* 98 animT0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 99 animT0Shoot->addKeyFrame(Vector(-0.04, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 100 animT0Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL);*/ 101 /* 102 animB1Shoot->addKeyFrame(Vector(0.1, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 103 animB1Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 101 104 animB1Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.0, ANIM_LINEAR, ANIM_NULL); 102 105 103 animT1Shoot->addKeyFrame(Vector(0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);104 animT1Shoot->addKeyFrame(Vector(-0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);106 animT1Shoot->addKeyFrame(Vector(0.04, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 107 animT1Shoot->addKeyFrame(Vector(-0.04, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 105 108 animT1Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.0, ANIM_LINEAR, ANIM_NULL); 106 109 107 animB2Shoot->addKeyFrame(Vector(0.1, 0.0, 0.0), Quaternion(), 0. 2, ANIM_LINEAR, ANIM_NULL);108 animB2Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0. 2, ANIM_LINEAR, ANIM_NULL);110 animB2Shoot->addKeyFrame(Vector(0.1, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 111 animB2Shoot->addKeyFrame(Vector(-0.1, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 109 112 animB2Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.0, ANIM_LINEAR, ANIM_NULL); 110 113 111 animT2Shoot->addKeyFrame(Vector(0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);112 animT2Shoot->addKeyFrame(Vector(-0. 14, 0.0, 0.0), Quaternion(), 0.2, ANIM_LINEAR, ANIM_NULL);113 animT2Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.0, ANIM_LINEAR, ANIM_NULL); 114 animT2Shoot->addKeyFrame(Vector(0.04, 0.0, 0.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_NULL); 115 animT2Shoot->addKeyFrame(Vector(-0.04, 0.0, 0.0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_NULL); 116 animT2Shoot->addKeyFrame(Vector(0.0, 0.0, 0.0), Quaternion(), 0.0, ANIM_LINEAR, ANIM_NULL);*/ 114 117 115 118 Animation3D* animation2 = this->getAnimation(WS_ACTIVATING, this); … … 175 178 176 179 glPushMatrix(); 177 glTranslatef (this->objComp1->getAbsCoor().x, this->objComp1->getAbsCoor().y, this->objComp1->getAbsCoor().z); 178 static_cast<StaticModel*>(this->getModel())->draw(1); 179 static_cast<StaticModel*>(this->getModel())->draw(2); 180 static_cast<StaticModel*>(this->getModel())->draw(0); 180 glTranslatef (this->objComp1->getAbsCoor().x, this->objComp1->getAbsCoor().y, this->objComp1->getAbsCoor().z); 181 static_cast<StaticModel*>(this->getModel())->draw(1); 182 static_cast<StaticModel*>(this->getModel())->draw(2); 183 static_cast<StaticModel*>(this->getModel())->draw(0); 184 185 glPushMatrix(); 186 glTranslatef (this->objComp4->getAbsCoor().x, this->objComp4->getAbsCoor().y, this->objComp4->getAbsCoor().z); 187 static_cast<StaticModel*>(this->getModel())->draw(4); 188 static_cast<StaticModel*>(this->getModel())->draw(5); 189 static_cast<StaticModel*>(this->getModel())->draw(3); 190 glPopMatrix(); 181 191 glPopMatrix(); 182 192 /* … … 190 200 static_cast<StaticModel*>(this->getModel())->draw(0); 191 201 glPopMatrix();*/ 192 /* 193 glTranslatef (this->objComp4->getAbsCoor().x, this->objComp4->getAbsCoor().y, this->objComp4->getAbsCoor().z); 194 static_cast<StaticModel*>(this->getModel())->draw(4); 195 static_cast<StaticModel*>(this->getModel())->draw(5); 196 static_cast<StaticModel*>(this->getModel())->draw(3); 197 glPopMatrix();*/ 202 203 // glPushMatrix(); 204 // glTranslatef (this->objComp4->getAbsCoor().x, this->objComp4->getAbsCoor().y, this->objComp4->getAbsCoor().z); 205 // static_cast<StaticModel*>(this->getModel())->draw(4); 206 // static_cast<StaticModel*>(this->getModel())->draw(5); 207 // static_cast<StaticModel*>(this->getModel())->draw(3); 208 // glPopMatrix(); 198 209 /* 199 210 glPushMatrix();
Note: See TracChangeset
for help on using the changeset viewer.