Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

christmas: added shooting animation and weapon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.