Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8825 in orxonox.OLD


Ignore:
Timestamp:
Jun 27, 2006, 2:32:43 PM (18 years ago)
Author:
patrick
Message:

npc walking corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r8824 r8825  
    161161
    162162    this->currentAnim = new Animation3D(this);
    163     this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), 0.0f, ANIM_LINEAR, ANIM_LINEAR);
    164     this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(),time, ANIM_LINEAR, ANIM_LINEAR);
     163    this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), time, ANIM_LINEAR, ANIM_LINEAR);
    165164    this->currentAnim->addKeyFrame(this->destCoor, this->destDir, time, ANIM_LINEAR, ANIM_LINEAR);
    166 //     this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), time, ANIM_LINEAR, ANIM_LINEAR);
    167 //     this->currentAnim->addKeyFrame(this->destCoor, this->destDir, time, ANIM_LINEAR, ANIM_LINEAR);
     165
    168166
    169167    this->currentAnim->setInfinity(ANIM_INF_CONSTANT);
     
    257255
    258256    this->currentAnim = new Animation3D(this);
    259     this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), 0.1f, ANIM_LINEAR, ANIM_LINEAR);
    260     this->currentAnim->addKeyFrame(this->destCoor, this->destDir, time, ANIM_LINEAR, ANIM_LINEAR);
    261257    this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), time, ANIM_LINEAR, ANIM_LINEAR);
    262258    this->currentAnim->addKeyFrame(this->destCoor, this->destDir, time, ANIM_LINEAR, ANIM_LINEAR);
     259
    263260
    264261    this->currentAnim->setInfinity(ANIM_INF_CONSTANT);
     
    427424    this->currentAnim->play();
    428425
    429     this->setAnimation(CROUCH_STAND, MD2_ANIM_LOOP);
     426    this->setAnimation(STAND, MD2_ANIM_LOOP);
    430427  }
    431428
Note: See TracChangeset for help on using the changeset viewer.