Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 4, 2005, 3:34:36 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/spaceshipControll back to the trunk:
merged with command:
svn merge -r5835:HEAD branches/spaceshipcontroll trunk
conflicts resolved with dynamic indentation methodology algorithms

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

Legend:

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

    r5819 r5915  
    9393
    9494  this->setCapability(WTYPE_ALLDIRS | WTYPE_TURRET);
    95   this->setProjectileType(CL_ROCKET);
     95  this->setProjectileType(CL_GUIDED_MISSILE);
    9696
    9797
     
    142142    return;
    143143
    144     pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13)
     144  pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13)
    145145            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
    146146
     147  pj->setTarget(this->target->getParent());
    147148  pj->setParent(NullParent::getInstance());
    148149  pj->setAbsCoor(this->getEmissionPoint());
  • trunk/src/world_entities/weapons/ground_turret.cc

    r5819 r5915  
    145145void GroundTurret::collidesWith (WorldEntity* entity, const Vector& location)
    146146{
    147 
     147  if (entity->isA(CL_PROJECTILE))
     148    this->setAbsDirSoft(Quaternion(-90, Vector(0,0,1)), 90);
    148149}
    149150
  • trunk/src/world_entities/weapons/guided_missile.cc

    r5779 r5915  
    4848  this->energyMin = 1;
    4949  this->energyMax = 10;
    50   this->lifeSpan = 5;
    51   this->agility = 5;
     50  this->lifeSpan = 5.0;
     51  this->agility = 5.0;
    5252  this->maxVelocity = 100;
    5353
Note: See TracChangeset for help on using the changeset viewer.