Changeset 10749 in orxonox.OLD for branches/presentation/src/world_entities/npcs
- Timestamp:
- Jun 20, 2007, 10:29:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/actionbox_enemy.cc
r10745 r10749 191 191 Vector targetDir = State::getPlayer()->getPlayable()->getAbsCoor()-this->getAbsCoor(); 192 192 moveTowards( targetPos, targetDir, dt ); 193 if ( this->getAbsDir().apply( Vector(1, 0, 0) ).dot(targetDir) > 0.9 )193 if ( this->getAbsDir().apply( Vector(1, 0, 0) ).dot(targetDir) > 0.9 && State::getPlayer()->getPlayable()->getOMListNumber()!=OM_DEAD ) 194 194 { 195 195 this->bFire = true;
Note: See TracChangeset
for help on using the changeset viewer.