Changeset 9206 in orxonox.OLD for branches/presentation/src/world_entities
- Timestamp:
- Jul 5, 2006, 10:47:48 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/space_turret.cc
r9181 r9206 65 65 this->right = NULL; 66 66 67 this->setHealthMax( 300);68 this->setHealth(30 0);67 this->setHealthMax(100); 68 this->setHealth(30); 69 69 70 70 this->weaponHolder[0].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); -
branches/presentation/src/world_entities/projectiles/guided_missile.cc
r9181 r9206 182 182 void GuidedMissile::destroy (WorldEntity* killer) 183 183 { 184 185 printf("THIS SHOULD WORLk\n"); 186 184 187 Projectile::destroy( killer ); 185 188 PRINTF(5)("DESTROY GuidedMissile\n"); -
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9198 r9206 86 86 //weapons: 87 87 Weapon* wpRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON)); 88 wpRight->setName(" testGunRight");88 wpRight->setName("Cannon_Right"); 89 89 Weapon* wpLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON)); 90 wpLeft->setName("testGun Left"); 91 //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER)); 90 wpLeft->setName("Cannon_Left"); 91 92 Weapon* turretLeft = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 93 wpRight->setName("Turret_Left"); 94 Weapon* turretRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_TARGETING_TURRET)); 95 wpLeft->setName("Turret_Right"); 92 96 93 97 // cannon->setName("BFG"); … … 95 99 this->addWeapon(wpLeft, 1, 0); 96 100 this->addWeapon(wpRight,1 ,1); 101 this->addWeapon(turretLeft, 1, 2); 102 this->addWeapon(turretRight, 1, 3); 103 97 104 //this->addWeapon(cannon, 0, 2); 98 105 … … 197 204 198 205 /// TODO: THESE ARE TOO MUCH 199 this->getWeaponManager().setSlotPosition(3, Vector(- 1.63, .678, -.652));200 this->getWeaponManager().setSlotDirection(3, Quaternion(- 24/180 * M_PI, Vector(1,0,0)));201 202 this->getWeaponManager().setSlotPosition(4, Vector(- 1.63, .678, .652));203 this->getWeaponManager().setSlotDirection(4, Quaternion( 24/180 * M_PI, Vector(1,0,0)));206 this->getWeaponManager().setSlotPosition(3, Vector(-0.351, -.238, 1.406) * 5.0); 207 this->getWeaponManager().setSlotDirection(3, Quaternion(-122/180 * M_PI, Vector(0,1,0))); 208 209 this->getWeaponManager().setSlotPosition(4, Vector(-0.351, -.238, -1.406) * 5.0); 210 this->getWeaponManager().setSlotDirection(4, Quaternion(122/180 * M_PI, Vector(0,1,0))); 204 211 205 212 this->cameraNode.setRelCoor(1,5,0); -
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9194 r9206 115 115 if( this->owner != killer) 116 116 { 117 PRINTF( 0)("real hit: %s\n", killer->getClassName());117 PRINTF(5)("real hit: %s\n", killer->getClassName()); 118 118 this->selectionList.push_back(killer); 119 119 } -
branches/presentation/src/world_entities/world_entity.cc
r9196 r9206 743 743 this->decreaseHealth(damage); 744 744 745 PRINTF( 5)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax());745 PRINTF(0)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax()); 746 746 747 747 if( this->getHealth() > 0)
Note: See TracChangeset
for help on using the changeset viewer.