Changeset 4953 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Jul 25, 2005, 12:22:24 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r4952 r4953 46 46 47 47 //weapons: 48 Weapon* wpRight = new TestGun( this, Vector(-2.6, 0.1, 3.0), Quaternion(),0);49 Weapon* wpLeft = new TestGun( this, Vector(-2.6, 0.1, -3.0), Quaternion(),1);48 Weapon* wpRight = new TestGun(0); 49 Weapon* wpLeft = new TestGun(1); 50 50 51 51 this->weaponMan->addWeapon(wpRight); … … 80 80 81 81 //weapons: 82 Weapon* wpRight = new TestGun(this, Vector(-2.6, 0.1, 3.0), Quaternion(), 0); 83 Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1); 84 85 this->weaponMan->addWeapon(wpRight, 0,0); 86 this->weaponMan->addWeapon(wpLeft, 0, 1); 87 this->weaponMan->addWeapon(wpLeft, 1, 1); 88 this->weaponMan->addWeapon(wpRight, 2, 0); 89 /* this->weaponMan->addWeapon(wpRight, WM_CONFIG2); 90 this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);*/ 82 Weapon* wpRight = new TestGun(0); 83 wpRight->setName("testGun Right"); 84 Weapon* wpLeft = new TestGun(1); 85 wpLeft->setName("testGun Left"); 86 87 this->weaponMan->addWeapon(wpLeft, 1, 0); 88 this->weaponMan->addWeapon(wpRight,1 ,1); 89 this->weaponMan->addWeapon(wpLeft, 3, 1); 90 91 this->weaponMan->changeWeaponConfig(0); 91 92 } 92 93 … … 107 108 108 109 109 this->weaponMan = new WeaponManager(2); 110 this->weaponMan = new WeaponManager(this); 111 this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0)); 112 this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0)); 113 110 114 } 111 115
Note: See TracChangeset
for help on using the changeset viewer.