Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6205 in orxonox.OLD


Ignore:
Timestamp:
Dec 21, 2005, 1:25:00 AM (18 years ago)
Author:
patrick
Message:

christmas: added shooting animation and weapon

Location:
branches/christmas_branche/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/lib/graphics/importer/md2Model.cc

    r6203 r6205  
    5151    {   0,  39,  9, 1 },   //!< STAND
    5252    {  40,  45, 10, 1 },   //!< RUN
    53     {  46,  53, 10, 1 },   //!< ATTACK
     53    {  46,  53, 10, 0 },   //!< ATTACK
    5454    {  54,  57,  7, 1 },   //!< PAIN_A
    5555    {  58,  61,  7, 1 },   //!< PAIN_B
     
    355355
    356356//   this->scaleFactor = 1.0f;
    357   this->scaleFactor = 0.2f;
     357  this->scaleFactor = 0.1f;
    358358
    359359  this->fileName = NULL;
  • branches/christmas_branche/src/world_entities/creatures/md2_creature.cc

    r6204 r6205  
    9393  cannon->setName("BFG");
    9494
    95 //   this->getWeaponManager()->addWeapon(wpLeft, 1, 0);
    96 //   this->getWeaponManager()->addWeapon(wpRight,1 ,1);
     95   this->getWeaponManager()->addWeapon(wpLeft, 1, 0);
     96   this->getWeaponManager()->addWeapon(wpRight,1 ,1);
    9797//   this->getWeaponManager()->addWeapon(cannon, 0, 6);
    9898
     
    149149  this->getWeaponManager()->setSlotCount(7);
    150150
    151   this->getWeaponManager()->setSlotPosition(0, Vector(-2.6, .1, -3.0));
     151  this->getWeaponManager()->setSlotPosition(0, Vector(-0.5, .2, -1.9));
    152152  this->getWeaponManager()->setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    153153
    154   this->getWeaponManager()->setSlotPosition(1, Vector(-2.6, .1, 3.0));
     154  this->getWeaponManager()->setSlotPosition(1, Vector(-0.5, .2, 1.9));
    155155  this->getWeaponManager()->setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    156156
     
    261261  {
    262262    ((MD2Model*)this->getModel(0))->setAnim(JUMP);
     263  }
     264  else if( this->bFire)
     265  {
     266    if( ((MD2Model*)this->getModel(0))->getAnim() != ATTACK) ((MD2Model*)this->getModel(0))->setAnim(ATTACK);
    263267  }
    264268  else if( fabs(move.len()) > 0.0f)
Note: See TracChangeset for help on using the changeset viewer.