Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10269 in orxonox.OLD


Ignore:
Timestamp:
Jan 17, 2007, 5:18:34 PM (18 years ago)
Author:
patrick
Message:

some small refinements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/world_entities/npcs/npc_test.cc

    r10268 r10269  
    5050    this->loadParams(root);
    5151
     52
     53  // create the weapons and their manager
     54  this->addWeapon(wpLeft, 1, 0);
     55  this->addWeapon(wpRight,1 ,1);
     56\
     57  this->getWeaponManager().changeWeaponConfig(1);
    5258  Weapon* wpRight = new TestGun(0);
    5359  wpRight->setName("testGun Right");
    5460  Weapon* wpLeft = new TestGun(1);
    5561  wpLeft->setName("testGun Left");
    56   //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON));
    57 
    58   //cannon->setName("BFG");
    59 
    60   this->addWeapon(wpLeft, 1, 0);
    61   this->addWeapon(wpRight,1 ,1);
    62   //this->addWeapon(cannon, 0, 6);
    63 
    64   this->getWeaponManager().changeWeaponConfig(1);
    65   // create the weapons and their manager
    6662
    6763  this->setHealthMax(100);
     
    8783  this->getWeaponManager().setSlotPosition(5, Vector(-1.5, -.5, -.5));
    8884  this->getWeaponManager().setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
    89   //
     85
    9086  this->getWeaponManager().setSlotPosition(6, Vector(-1, 0.0, 0));
    9187  this->getWeaponManager().setSlotCapability(6, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    92   //
    93   //   this->getWeaponManager().setSlotPosition(8, Vector(-2.5, -0.3, -2.0));
    94   //   this->getWeaponManager().setSlotDirection(8, Quaternion(-M_PI, Vector(1,0,0)));
    95   //
    96   //   this->getWeaponManager().setSlotPosition(9, Vector(-2.5, -0.3, 2.0));
    97   //   this->getWeaponManager().setSlotDirection(9, Quaternion(+M_PI, Vector(1,0,0)));:
    9888
    9989  this->getWeaponManager().getFixedTarget()->setParent(this);
Note: See TracChangeset for help on using the changeset viewer.