Changeset 10387 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jan 26, 2007, 6:22:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc.cc
r10376 r10387 64 64 65 65 this->getWeaponManager().changeWeaponConfig(1); 66 Weapon* wpRight = new TestGun(0);67 wpRight->setName("testGun Right");68 Weapon* wpLeft = new TestGun(1);69 wpLeft->setName("testGun Left");70 71 wpRight->toList( this->getOMListNumber());72 wpLeft->toList( this->getOMListNumber());73 74 75 this->addWeapon(wpLeft, 1, 0);76 this->addWeapon(wpRight,1 ,1);77 78 wpLeft->increaseEnergy( 100);79 wpRight->increaseEnergy( 100);66 // Weapon* wpRight = new TestGun(0); 67 // wpRight->setName("testGun Right"); 68 // Weapon* wpLeft = new TestGun(1); 69 // wpLeft->setName("testGun Left"); 70 // 71 // wpRight->toList( this->getOMListNumber()); 72 // wpLeft->toList( this->getOMListNumber()); 73 // 74 // 75 // this->addWeapon(wpLeft, 1, 0); 76 // this->addWeapon(wpRight,1 ,1); 77 // 78 // wpLeft->increaseEnergy( 100); 79 // wpRight->increaseEnergy( 100); 80 80 81 81 this->setHealthMax(100); 82 82 this->setHealth(80); 83 83 84 this->getWeaponManager().setSlotCount(7);85 86 this->getWeaponManager().setSlotPosition(0, Vector(-2.6, .1, -3.0));87 this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);88 89 this->getWeaponManager().setSlotPosition(1, Vector(-2.6, .1, 3.0));90 this->getWeaponManager().setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);91 92 this->getWeaponManager().setSlotPosition(2, Vector(-1.5, .5, -.5));93 this->getWeaponManager().setSlotDirection(2, Quaternion(-M_PI_4*.5, Vector(1,0,0)));94 95 this->getWeaponManager().setSlotPosition(3, Vector(-1.5, .5, .5));96 this->getWeaponManager().setSlotDirection(3, Quaternion(M_PI_4*.5, Vector(1,0,0)));97 98 this->getWeaponManager().setSlotPosition(4, Vector(-1.5, -.5, .5));99 this->getWeaponManager().setSlotDirection(4, Quaternion(-M_PI_4*.5+M_PI, Vector(1,0,0)));100 101 this->getWeaponManager().setSlotPosition(5, Vector(-1.5, -.5, -.5));102 this->getWeaponManager().setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));103 104 this->getWeaponManager().setSlotPosition(6, Vector(-1, 0.0, 0));105 this->getWeaponManager().setSlotCapability(6, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);106 107 this->getWeaponManager().getFixedTarget()->setParent(this);108 this->getWeaponManager().getFixedTarget()->setRelCoor(100000,0,0);84 // this->getWeaponManager().setSlotCount(7); 85 // 86 // this->getWeaponManager().setSlotPosition(0, Vector(-2.6, .1, -3.0)); 87 // this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 88 // 89 // this->getWeaponManager().setSlotPosition(1, Vector(-2.6, .1, 3.0)); 90 // this->getWeaponManager().setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 91 // 92 // this->getWeaponManager().setSlotPosition(2, Vector(-1.5, .5, -.5)); 93 // this->getWeaponManager().setSlotDirection(2, Quaternion(-M_PI_4*.5, Vector(1,0,0))); 94 // 95 // this->getWeaponManager().setSlotPosition(3, Vector(-1.5, .5, .5)); 96 // this->getWeaponManager().setSlotDirection(3, Quaternion(M_PI_4*.5, Vector(1,0,0))); 97 // 98 // this->getWeaponManager().setSlotPosition(4, Vector(-1.5, -.5, .5)); 99 // this->getWeaponManager().setSlotDirection(4, Quaternion(-M_PI_4*.5+M_PI, Vector(1,0,0))); 100 // 101 // this->getWeaponManager().setSlotPosition(5, Vector(-1.5, -.5, -.5)); 102 // this->getWeaponManager().setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 103 // 104 // this->getWeaponManager().setSlotPosition(6, Vector(-1, 0.0, 0)); 105 // this->getWeaponManager().setSlotCapability(6, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 106 // 107 // this->getWeaponManager().getFixedTarget()->setParent(this); 108 // this->getWeaponManager().getFixedTarget()->setRelCoor(100000,0,0); 109 109 110 110 }
Note: See TracChangeset
for help on using the changeset viewer.