Changeset 10711 in orxonox.OLD for branches/presentation/src/world_entities/creatures
- Timestamp:
- Jun 18, 2007, 12:34:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r10709 r10711 136 136 #if 1 137 137 this->getWeaponManager().changeWeaponConfig(1); 138 this->getWeaponManager().setSlotCount( 2);139 this->getWeaponManager().setSlotDirection(0, Quaternion(M_PI_4*-0.55f, Vector(0,0,1)));138 this->getWeaponManager().setSlotCount(1); 139 //this->getWeaponManager().setSlotDirection(0, Quaternion(M_PI_4*-0.55f, Vector(0,0,1))); 140 140 this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 141 this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(1,0,0)));141 /*this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(1,0,0))); 142 142 this->getWeaponManager().setSlotPosition(0, Vector(1.5, -0.7, 1.1)); 143 this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0)); 143 this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0));*/ 144 144 145 145 this->getWeaponManager().setParentNode(this->cameraNode); … … 152 152 if( true /*State::isOnline()*/ ) 153 153 { 154 FPSSniperRifle* wpRight= new FPSSniperRifle(0);155 w pRight->setName("testGun Right");156 this->addWeapon(w pRight,1, 0);157 w pRight->toList( this->getOMListNumber() );158 w pRight->setParent( this->cameraNode );159 w pRight->setForwardDamageToParent( true );154 weapon = new FPSSniperRifle(0); 155 weapon->setName("testGun Right"); 156 this->addWeapon(weapon,1, 0); 157 weapon->toList( this->getOMListNumber() ); 158 weapon->setParent( this->cameraNode ); 159 weapon->setForwardDamageToParent( true ); 160 160 //wpRight->requestAction( WA_ACTIVATE ); 161 161 //wpRight->addChild(this->aimingSystem); … … 173 173 this->weaponMan.setSlotCount(2); 174 174 this->weaponMan.createWeaponSlot(0, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 175 this->weaponMan.createWeaponSlot(1, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);175 //this->weaponMan.createWeaponSlot(1, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 176 176 this->weaponMan.addWeapon(wpRight, 0, 0); 177 177 this->weaponMan.changeWeaponConfig(0); … … 307 307 //this->getWeaponManager().setSlotPosition(0, Vector(-8.0, box->halfLength[1] * v, 1.1)); 308 308 //this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * v, 0.0)); 309 this->getWeaponManager().setSlotDirection( 0, Quaternion( 0.04, Vector( 0, 0, 1 ) ) );309 //this->getWeaponManager().setSlotDirection( 0, Quaternion( 0.04, Vector( 0, 0, 1 ) ) ); 310 310 } 311 311
Note: See TracChangeset
for help on using the changeset viewer.