Changeset 10345 in orxonox.OLD for branches/playability/src/world_entities/projectiles/mbolt.cc
- Timestamp:
- Jan 24, 2007, 6:13:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/mbolt.cc
r10274 r10345 81 81 this->trail->setTexture( "maps/laser.png"); 82 82 this->trail->setAbsCoor(this->getAbsCoor() - Vector(.7,0,0)); 83 83 84 } 84 85 … … 107 108 void MBolt::activate() 108 109 { 110 this->origList = this->getOMListNumber(); 109 111 this->toList(OM_ENVIRON); 110 112 if (unlikely(MBolt::explosionParticles == NULL)) … … 137 139 this->lifeCycle = 0.0; 138 140 139 this->toList(OM_DEAD); 141 this->lifeCycle = 0.0; 142 this->toList(OM_NULL); 143 //this->toList(OM_DEAD); 140 144 this->removeNode(); 141 145 MBolt::fastFactory->kill(this); … … 174 178 for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++) 175 179 { 176 if( ((*eIterator)->getOMListNumber() == OM_GROUP_00)&& ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)180 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8) 177 181 { 178 182 (*eIterator)->hit (this->getDamage(),this);
Note: See TracChangeset
for help on using the changeset viewer.