Changeset 10079 in orxonox.OLD for branches/playability/src/world_entities/weapons
- Timestamp:
- Dec 15, 2006, 8:34:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/swarm_launcher.cc
r10078 r10079 99 99 100 100 this->setEmissionPoint(1.684, 0.472, 0); 101 this->getProjectileFactory()->prepare(5 );101 this->getProjectileFactory()->prepare(50); 102 102 103 103 this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav"); … … 147 147 for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++) 148 148 { 149 if( ((*eIterator)->getOMListNumber() == OM_GROUP_00) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 100)149 if( ((*eIterator)->getOMListNumber() == OM_GROUP_00) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 200) 150 150 { 151 151 pj = this->getProjectile(); 152 152 if (pj == NULL) 153 153 return; 154 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 + VECTOR_RAND(20))); 155 156 pj->setParent( PNode::getNullParent()); 157 pj->setAbsCoor( this->getEmissionPoint()); 158 pj->setAbsDir( this->getAbsDir()); 159 pj->setTarget( *eIterator); 160 pj->activate(); 154 155 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*115.0 + VECTOR_RAND(10))); 156 157 pj->setParent(PNode::getNullParent()); 158 pj->setAbsCoor(this->getEmissionPoint()); 159 pj->setAbsDir(this->getAbsDir()); 160 pj->setTarget( dynamic_cast<WorldEntity*>(*eIterator)); 161 pj->activate(); 162 161 163 } 162 164 }
Note: See TracChangeset
for help on using the changeset viewer.