Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1957 in orxonox.OLD for orxonox/trunk/src/player.cc


Ignore:
Timestamp:
Jun 16, 2004, 9:43:10 AM (20 years ago)
Author:
bensch
Message:

orxonox/truk: now the rockets are frame-rate-driven

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/player.cc

    r1956 r1957  
    7575void Player::shoot(int n)
    7676{
    77   if (shootLaser->inhibitor++ <= 100)
     77  //  if (shootLaser->inhibitor++ <= 100)
    7878    shootLaser->addShoot(xCor, yCor, zCor);
    79   else if (shootLaser->inhibitor++ <= 200)
     79    // else if (shootLaser->inhibitor++ <= 200)
    8080    shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
    81   else if (shootLaser->inhibitor++ <= 300)
     81    //  else if (shootLaser->inhibitor++ <= 300)
    8282    shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
    83   else
     83    //  else
    8484    shootLaser->inhibitor =0;
    8585 
    86   if (shootRocket->inhibitor++ >=80)
     86    //  if (shootRocket->inhibitor++ >=80)
    8787    {
    8888      shootRocket->addBackParable(xCor, yCor, zCor);
     
    9090      shootRocket->addSideAcc(xCor, yCor, zCor, LEFT);
    9191      shootRocket->addRotater(xCor, yCor, zCor);
    92       if (shootRocket->inhibitor >=90)
    93         shootRocket->inhibitor =0;
     92      //  if (shootRocket->inhibitor >=90)
     93      //        shootRocket->inhibitor =0;
    9494    }
    9595  //cout << "Player::shoot" << endl;
Note: See TracChangeset for help on using the changeset viewer.