Changeset 10345 in orxonox.OLD for branches/playability/src/world_entities/weapons
- Timestamp:
- Jan 24, 2007, 6:13:17 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/acid_launcher.cc
r10333 r10345 84 84 animation2->setInfinity(ANIM_INF_CONSTANT); 85 85 */ 86 this->setStateDuration(WS_SHOOTING, .6); 86 this->setStateDuration(WS_SHOOTING, 1.0f); 87 87 88 this->setStateDuration(WS_RELOADING, 1.0f); 88 89 this->setStateDuration(WS_ACTIVATING, .4); … … 95 96 this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET | WTYPE_DIRECTIONAL | WTYPE_LIGHT); 96 97 this->setProjectileTypeC("AcidSplash"); 97 98 98 // this->loadModel("models/guns/turret1.obj", 1.0); 99 99 100 100 this->setEmissionPoint(2.0, 0, 0); 101 this->getProjectileFactory()->prepare(10 0);101 this->getProjectileFactory()->prepare(10); 102 102 103 103 this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav"); … … 148 148 149 149 Projectile* pj = NULL; 150 for( int i=0; i < 5; i++)150 for( int i=0; i < 1; i++) 151 151 { 152 152 pj = this->getProjectile(); … … 155 155 156 156 fired = true; 157 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*1 15.0 + VECTOR_RAND(10)));157 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*165.0 + VECTOR_RAND(10))); 158 158 159 159 pj->setParent(PNode::getNullParent()); -
branches/playability/src/world_entities/weapons/swarm_launcher.cc
r10179 r10345 150 150 for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++) 151 151 { 152 if( ((*eIterator)->getOMListNumber() == OM_GROUP_00) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 300)152 if( ((*eIterator)->getOMListNumber() != (this->getOMListNumber() -1)) && ((*eIterator)->getClassCName() != "Weapon") && ((*eIterator)->getClassCName() != "Projectile") && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 300) 153 153 { 154 154 pj = this->getProjectile();
Note: See TracChangeset
for help on using the changeset viewer.