Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1931 in orxonox.OLD for orxonox/trunk/core/player.cc


Ignore:
Timestamp:
Jun 9, 2004, 10:49:04 AM (21 years ago)
Author:
patrick
Message:

orxonox/trunk/core: speed of ground, shoot enemies

File:
1 edited

Legend:

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

    r1930 r1931  
    7575void Player::shoot(int n)
    7676{
    77   if (shootLaser->inhibitor++ <= 100)
    78     shootLaser->addShoot(xCor, yCor, zCor);
    79   else if (shootLaser->inhibitor++ <= 200)
    80     shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
    81   else if (shootLaser->inhibitor++ <= 300)
    82     shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
    83   else
    84     shootLaser->inhibitor =0;
    85  
    86   if (shootRocket->inhibitor++ >=80)
    87     {
    88       shootRocket->addBackParable(xCor, yCor, zCor);
    89       shootRocket->addSideAcc(xCor, yCor, zCor, RIGHT);
    90       shootRocket->addSideAcc(xCor, yCor, zCor, LEFT);
    91       shootRocket->addRotater(xCor, yCor, zCor);
    92       if (shootRocket->inhibitor >=90)
    93         shootRocket->inhibitor =0;
    94     }
     77  shootLaser->addShoot(xCor, yCor, zCor);
     78  shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
     79  shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
     80  shootRocket->addShoot(xCor, yCor, zCor);
    9581  //cout << "Player::shoot" << endl;
    9682}
Note: See TracChangeset for help on using the changeset viewer.