Changeset 10269 in orxonox.OLD for branches/ai/src/world_entities/npcs
- Timestamp:
- Jan 17, 2007, 5:18:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/world_entities/npcs/npc_test.cc
r10268 r10269 50 50 this->loadParams(root); 51 51 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); 52 58 Weapon* wpRight = new TestGun(0); 53 59 wpRight->setName("testGun Right"); 54 60 Weapon* wpLeft = new TestGun(1); 55 61 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 manager66 62 67 63 this->setHealthMax(100); … … 87 83 this->getWeaponManager().setSlotPosition(5, Vector(-1.5, -.5, -.5)); 88 84 this->getWeaponManager().setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 89 // 85 90 86 this->getWeaponManager().setSlotPosition(6, Vector(-1, 0.0, 0)); 91 87 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)));:98 88 99 89 this->getWeaponManager().getFixedTarget()->setParent(this);
Note: See TracChangeset
for help on using the changeset viewer.