Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 8:27:13 PM (18 years ago)
Author:
patrick
Message:

aiming sys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9166 r9168  
    145145  this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0);
    146146
    147   this->aimingSystem = new AimingSystem();
     147  this->aimingSystem = new AimingSystem(this);
    148148  this->addChild(this->aimingSystem);
    149   this->aimingSystem->toList(OM_LIST(this->getOMListNumber() + 1));
     149
    150150
    151151
     
    242242      this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1));
    243243      this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0));
     244
     245      this->aimingSystem->toList(/*OM_LIST(this->getOMListNumber() + 1)*/ OM_GROUP_00);
    244246    }
    245247  }
     
    266268    }
    267269  }
     270
     271  WorldEntity* target = this->aimingSystem->getNearestTarget();
     272  if( target != NULL)
     273  {
     274    PRINTF(0)("hit hit hit, got: %s\n", target->getClassName());
     275  }
     276
    268277
    269278
Note: See TracChangeset for help on using the changeset viewer.