Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10711 in orxonox.OLD for branches/presentation/src


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

weapon position

Location:
branches/presentation/src/world_entities
Files:
3 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 
  • branches/presentation/src/world_entities/weapons/bsp_weapon.cc

    r10710 r10711  
    200200    (*it)->draw();
    201201  }
    202 #if 1
     202#if 0
    203203  glMatrixMode(GL_MODELVIEW);
    204204  glPushMatrix();
     
    214214  Vector mp = this->getAbsCoor();
    215215  Vector op = this->getAbsDir().apply( Vector(1, 0, 0) );
    216   op *= 100;
     216  op *= 1000;
    217217  op += mp;
    218218
  • branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc

    r10710 r10711  
    170170  glPushMatrix();
    171171
    172   Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 1, 0, 0 ) );
     172  Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector(3, -1.6622, -0.967) );
    173173  glTranslatef (pos.x,
    174174                pos.y,
Note: See TracChangeset for help on using the changeset viewer.