Changeset 10079 in orxonox.OLD for branches/playability/src/world_entities/projectiles/hbolt.cc
- Timestamp:
- Dec 15, 2006, 8:34:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/hbolt.cc
r10074 r10079 28 28 29 29 // #include "effects/billboard.h" 30 #include "space_ships/space_ship.h" 30 31 31 32 … … 98 99 } 99 100 100 this->set Damage(100);101 this->setPhysDamage(100); 101 102 this->setHealth(0); 102 103 } … … 117 118 void HBolt::collidesWith(WorldEntity* entity, const Vector& location) 118 119 { 120 PRINTF(0)("Collision with HBolt\n"); 119 121 if (this->hitEntity != entity && entity->isA(CL_NPC)) 120 122 this->destroy( entity ); 121 123 this->hitEntity = entity; 124 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),0); 125 // this->deactivate(); 122 126 } 123 127 … … 142 146 this->deactivate(); 143 147 144 //float w = this->rotationSpeed * M_PI; 145 //Quaternion rotation(this->rotationSpeed * dt, this->axis); 146 //Quaternion u = this->getRelDir(); 147 //this->setRelDir(u * rotation); 148 this->updateAngle(dt); 148 149 149 this->updateAngle(dt);150 150 151 151 }
Note: See TracChangeset
for help on using the changeset viewer.