Changeset 10271 in orxonox.OLD for branches/playability/src/world_entities/weapons/spike_thrower.cc
- Timestamp:
- Jan 17, 2007, 6:15:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/spike_thrower.cc
r10260 r10271 82 82 animation1->addKeyFrame(Vector(0, 0, 0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 83 83 animation2->addKeyFrame(Vector(0, 0, 0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 84 animation2->addKeyFrame(Vector(0, -.5, 0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); */85 /* 84 animation2->addKeyFrame(Vector(0, -.5, 0), Quaternion(), 0.3, ANIM_LINEAR, ANIM_CONSTANT); 85 86 86 animation1->setInfinity(ANIM_INF_CONSTANT); 87 87 animation2->setInfinity(ANIM_INF_CONSTANT);*/ … … 104 104 this->getProjectileFactory()->prepare(50); 105 105 106 //this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav");107 //this->setActionSound(WA_ACTIVATE, "sound/vocals/missiles.wav");108 //this->setActionSound(WA_RELOAD, "sound/vocals/reload.wav");106 this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav"); 107 this->setActionSound(WA_ACTIVATE, "sound/vocals/missiles.wav"); 108 this->setActionSound(WA_RELOAD, "sound/vocals/reload.wav"); 109 109 110 110 } … … 156 156 pj->setParent(PNode::getNullParent()); 157 157 158 // pj->setVelocity(this->getParent()->getAbsDir().apply(Vector(1,0,0))*200 + this->getParent()->getParent()->getVelocity()); 159 pj->setVelocity(this->getParent()->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*160); 158 dynamic_cast<SpikeBall*>(pj)->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*110); 160 159 161 160 pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset
for help on using the changeset viewer.