Changeset 10132 in orxonox.OLD for branches/playability/src/world_entities/projectiles/mbolt.cc
- Timestamp:
- Dec 20, 2006, 5:36:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/mbolt.cc
r10117 r10132 78 78 this->buildObbTree(4); 79 79 80 this->trail = new Trail(6, 4,.1, this);80 this->trail = new Trail(6, 4, .1, this); 81 81 //this->trail->setParent( this); 82 82 this->trail->setTexture( "maps/laser.png"); … … 124 124 this->setHealth(0); 125 125 126 127 126 this->emitter->setSpread(0); 128 127 this->emitter->setEmissionRate(10.0); … … 150 149 this->hitEntity = entity; 151 150 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 152 this->destroy(this); 151 //this->destroy(this); 152 this->deactivate(); 153 153 154 154 return; 155 155 156 if( entity == NULL || dynamic_cast<SpaceShip*>(entity) == NULL) 157 return; 158 159 dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 156 //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 160 157 //entity->destroy(this); 161 158 //this->deactivate();
Note: See TracChangeset
for help on using the changeset viewer.