Changeset 8953 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 30, 2006, 2:09:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r8952 r8953 170 170 {} 171 171 172 172 173 void GenericNPC::nextStep() 173 174 { … … 217 218 anim.v = coordinate; 218 219 anim.type = Walk; 219 anim.speed = 10.0f;220 anim.speed = 20.0f; 220 221 221 222 this->behaviourList.push_back(anim); … … 329 330 case Walk: 330 331 { 331 if( this->getAnimation() != RUN)332 this->setAnimation(RUN, MD2_ANIM_LOOP);333 334 Vector d ir = this->getAbsCoor() - currentAnimation.v;335 if (d ir.len() < .5)332 // if( this->getAnimation() != RUN) 333 // this->setAnimation(RUN, MD2_ANIM_LOOP); 334 335 Vector dest = currentAnimation.v - this->getAbsCoor(); 336 if (dest.len() < .5) 336 337 this->nextStep(); 337 338 else
Note: See TracChangeset
for help on using the changeset viewer.