Changeset 1930 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 8, 2004, 11:10:36 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/player.cc
r1929 r1930 75 75 void Player::shoot(int n) 76 76 { 77 if (shootLaser->inhibitor++ >=100) 78 { 79 if (shootLaser->inhibitor++ <= 150) 80 shootLaser->addShoot(xCor, yCor, zCor); 81 else if (shootLaser->inhibitor++ >= 250 && shootLaser->inhibitor <= 300) 82 shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0); 83 else if (shootLaser->inhibitor++ >= 350) 84 shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0); 85 if (shootLaser->inhibitor >=400) 86 shootLaser->inhibitor =0; 87 } 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 88 86 if (shootRocket->inhibitor++ >=80) 89 87 {
Note: See TracChangeset
for help on using the changeset viewer.