Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9142 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 4, 2006, 3:20:20 PM (18 years ago)
Author:
patrick
Message:

md2 walk functions

Location:
branches/presentation/src
Files:
3 edited

Legend:

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

    r9003 r9142  
    4040
    4141//! list of all different animations a std md2model supports
    42 sAnim MD2Model::animationList[21] =
     42sAnim MD2Model::animationList[22] =
    4343  {
    4444 // begin, end, fps, interruptable
     
    6464    { 190, 197,  10, 0 },   //!< DEATH_FALLBACKSLOW
    6565    { 198, 198,  5, 1 },   //!< BOOM
     66    {  199, 204, 10, 1 },  //!< WALK (only for spectial models)
    6667  };
    6768
  • branches/presentation/src/lib/graphics/importer/md2/md2Model.h

    r9003 r9142  
    9292    DEATH_FALLBACKSLOW,
    9393    BOOM,
     94    WALK,
    9495
    9596    MAX_ANIMATIONS
     
    180181  static sVec3D       anorms[NUM_VERTEX_NORMALS];       //!< the anormals
    181182  static float        anormsDots[SHADEDOT_QUANT][256];  //!< the anormals dot products
    182   static sAnim        animationList[21];                //!< the anomation list
     183  static sAnim        animationList[22];                //!< the anomation list
    183184   //! again one of these strange id software parts
    184185  float*              shadeDots;
  • branches/presentation/src/world_entities/npcs/generic_npc.cc

    r9110 r9142  
    217217      case Walk:
    218218      {
    219         if( this->getAnimation() != RUN)
    220           this->setAnimation(RUN, MD2_ANIM_LOOP);
     219        if( this->getAnimation() != WALK)
     220          this->setAnimation(WALK, MD2_ANIM_LOOP);
    221221
    222222        Vector dir = (currentAnimation.v - this->getAbsCoor());
     
    289289      case Walk:
    290290      {
    291         if( this->getAnimation() != RUN)
    292           this->setAnimation(RUN, MD2_ANIM_LOOP);
     291        if( this->getAnimation() != WALK)
     292          this->setAnimation(WALK, MD2_ANIM_LOOP);
    293293
    294294
Note: See TracChangeset for help on using the changeset viewer.