Changeset 10095 in orxonox.OLD for branches/playability/src/world_entities/projectiles/mbolt.cc
- Timestamp:
- Dec 19, 2006, 11:18:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/mbolt.cc
r10081 r10095 77 77 78 78 79 this->trail = new Trail(6, 1,.4);80 this->trail->setParent( this);79 this->trail = new Trail(6,4,.1, this); 80 //this->trail->setParent( this); 81 81 this->trail->setTexture( "maps/laser.png"); 82 this->trail->setAbsCoor(this->getAbsCoor() - Vector(1,0,0)); 82 83 } 83 84 … … 126 127 this->emitter->setEmissionRate(10.0); 127 128 this->emitter->setEmissionVelocity(0); 128 this->updateNode(0);129 129 } 130 130 … … 144 144 void MBolt::collidesWith(WorldEntity* entity, const Vector& location) 145 145 { 146 PRINTF( 0)("MBolt collides pretest\n");147 if( entity == NULL || dynamic_cast<SpaceShip*>(entity) == NULL)146 PRINTF(5)("MBolt collides pretest\n"); 147 if( entity == NULL) 148 148 return; 149 149 150 150 PRINTF(0)("MBolt collides\n"); 151 151 dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 152 entity->destroy(this);153 this->deactivate();152 //entity->destroy(this); 153 //this->deactivate(); 154 154 } 155 155
Note: See TracChangeset
for help on using the changeset viewer.