Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9206 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 5, 2006, 10:47:48 AM (18 years ago)
Author:
bensch
Message:

guns

Location:
branches/presentation/src/world_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/space_turret.cc

    r9181 r9206  
    6565  this->right = NULL;
    6666
    67   this->setHealthMax(300);
    68   this->setHealth(300);
     67  this->setHealthMax(100);
     68  this->setHealth(30);
    6969
    7070  this->weaponHolder[0].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT);
  • branches/presentation/src/world_entities/projectiles/guided_missile.cc

    r9181 r9206  
    182182void GuidedMissile::destroy (WorldEntity* killer)
    183183{
     184
     185  printf("THIS SHOULD WORLk\n");
     186
    184187  Projectile::destroy( killer );
    185188  PRINTF(5)("DESTROY GuidedMissile\n");
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc

    r9198 r9206  
    8686  //weapons:
    8787  Weapon* wpRight = dynamic_cast<Weapon*>(Factory::fabricate(CL_LASER_CANNON));
    88   wpRight->setName("testGun Right");
     88  wpRight->setName("Cannon_Right");
    8989  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");
    9296
    9397  //  cannon->setName("BFG");
     
    9599  this->addWeapon(wpLeft, 1, 0);
    96100  this->addWeapon(wpRight,1 ,1);
     101  this->addWeapon(turretLeft, 1, 2);
     102  this->addWeapon(turretRight, 1, 3);
     103
    97104  //this->addWeapon(cannon, 0, 2);
    98105
     
    197204
    198205  /// 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)));
    204211
    205212  this->cameraNode.setRelCoor(1,5,0);
  • branches/presentation/src/world_entities/weapons/aiming_system.cc

    r9194 r9206  
    115115  if( this->owner != killer)
    116116  {
    117     PRINTF(0)("real hit: %s\n", killer->getClassName());
     117    PRINTF(5)("real hit: %s\n", killer->getClassName());
    118118    this->selectionList.push_back(killer);
    119119  }
  • branches/presentation/src/world_entities/world_entity.cc

    r9196 r9206  
    743743  this->decreaseHealth(damage);
    744744
    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());
    746746
    747747  if( this->getHealth() > 0)
Note: See TracChangeset for help on using the changeset viewer.