Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5458 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Oct 30, 2005, 1:52:29 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: a second power-up (lasers)

Location:
trunk/src/world_entities/weapons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/laser.cc

    r5457 r5458  
    4646  this->energyMax = 10;
    4747  this->remove();
    48   this->lifeSpan = 2;
     48  this->lifeSpan = 1.0;
    4949
    5050  this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);
  • trunk/src/world_entities/weapons/test_gun.cc

    r5457 r5458  
    129129  this->setMaximumEnergy(1000, 100);
    130130  this->increaseEnergy(1000);
    131   this->setEmissionPoint(0,-100,0);
    132131  //this->minCharge = 2;
    133132
     
    186185  pj->setParent(NullParent::getInstance());
    187186
    188   pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*20);
     187  pj->setVelocity(this->getVelocity() + this->getAbsDir().apply(Vector(1,0,0))*50);
    189188
    190189  pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset for help on using the changeset viewer.