Changeset 5576 in orxonox.OLD for branches/world_entities/src/world_entities/weapons/aim.cc
- Timestamp:
- Nov 15, 2005, 11:21:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/weapons/aim.cc
r5574 r5576 101 101 } 102 102 103 void Aim::searchTarget( PNode* source)103 void Aim::searchTarget(float range) 104 104 { 105 105 tIterator<WorldEntity>* iterator = State::getWorldEntityList()->getIterator(); … … 107 107 while (likely(entity != NULL)) 108 108 { 109 if (entity->isA(CL_NPC) && source->getAbsCoor().x < entity->getAbsCoor().x && (source->getAbsCoor() - entity->getAbsCoor()).len() < 100)109 if (entity->isA(CL_NPC) && this->source->getAbsCoor().x < entity->getAbsCoor().x && (this->source->getAbsCoor() - entity->getAbsCoor()).len() < range) 110 110 { 111 111 if (this->getParent() != entity) … … 156 156 this->text->setText(outputText); 157 157 158 159 if (this->source->getAbsCoor().x > this->getAbsCoor().x ) 160 this->searchTarget(1000); 158 161 // float z = 0.0f; 159 162 // glReadPixels ((int)this->getAbsCoor2D().x,
Note: See TracChangeset
for help on using the changeset viewer.