Changeset 8943 in orxonox.OLD for branches/single_player_map/src/world_entities/npcs/repair_station.cc
- Timestamp:
- Jun 30, 2006, 3:21:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/repair_station.cc
r8942 r8943 75 75 76 76 this->toList(OM_COMMON); 77 this->bLocked = false;78 77 79 78 this->loadMD2Texture("maps/doors.jpg"); 80 79 this->loadModel("models/creatures/doors.md2", this->scale); 81 80 82 this->setAnimation(REPAIR_CYCLE0 0, MD2_ANIM_ONCE);81 this->setAnimation(REPAIR_CYCLE01, MD2_ANIM_ONCE); 83 82 } 84 83 … … 116 115 } 117 116 117 118 /** 119 * @returns the current animation number 120 */ 121 int RepairStation::getAnimation() 122 { 123 if( likely(this->getModel(0) != NULL)) 124 ((InteractiveModel*)this->getModel(0))->getAnimation(); 125 } 118 126 119 127 … … 155 163 ((InteractiveModel*)this->getModel(0))->tick(time); 156 164 157 // if( ((MD2Model*)this->getModel(0))->getAnimation() != ATTACK)165 if( this->getAnimation() == ATTACK) 158 166 // ((MD2Model*)this->getModel(0))->setAnimation(ATTACK); 159 167 160 168 161 169 this->setAnimation( this->animationCurrent, MD2_ANIM_ONCE); 162 this->animationCurrent = (this->animationCurrent + this->animationStep) %RAPAIR_MAX_ANIMATION;170 this->animationCurrent = (this->animationCurrent + this->animationStep) % REPAIR_MAX_ANIMATIONS; 163 171 } 164 172
Note: See TracChangeset
for help on using the changeset viewer.