Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 12:34:45 AM (17 years ago)
Author:
rennerc
Message:

weapon position

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r10709 r10711  
    136136#if 1
    137137  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)));
    140140  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)));
    142142  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));*/
    144144
    145145  this->getWeaponManager().setParentNode(this->cameraNode);
     
    152152  if( true /*State::isOnline()*/ )
    153153  {
    154     FPSSniperRifle* wpRight = new FPSSniperRifle(0);
    155     wpRight->setName("testGun Right");
    156     this->addWeapon(wpRight,1, 0);
    157     wpRight->toList( this->getOMListNumber() );
    158     wpRight->setParent( this->cameraNode );
    159     wpRight->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 );
    160160    //wpRight->requestAction( WA_ACTIVATE );
    161161    //wpRight->addChild(this->aimingSystem);
     
    173173  this->weaponMan.setSlotCount(2);
    174174  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);
    176176  this->weaponMan.addWeapon(wpRight, 0, 0);
    177177  this->weaponMan.changeWeaponConfig(0);
     
    307307     //this->getWeaponManager().setSlotPosition(0, Vector(-8.0, box->halfLength[1] * v, 1.1));
    308308     //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 ) ) );
    310310  }
    311311 
Note: See TracChangeset for help on using the changeset viewer.