Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2006, 11:18:22 AM (19 years ago)
Author:
marcscha
Message:

velocity fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/mbolt.cc

    r10081 r10095  
    7777
    7878 
    79   this->trail = new Trail(6,1,.4);
    80   this->trail->setParent( this);
     79  this->trail = new Trail(6,4,.1, this);
     80  //this->trail->setParent( this);
    8181  this->trail->setTexture( "maps/laser.png");
     82  this->trail->setAbsCoor(this->getAbsCoor() - Vector(1,0,0));
    8283}
    8384
     
    126127  this->emitter->setEmissionRate(10.0);
    127128  this->emitter->setEmissionVelocity(0);
    128   this->updateNode(0);
    129129}
    130130
     
    144144void MBolt::collidesWith(WorldEntity* entity, const Vector& location)
    145145{
    146   PRINTF(0)("MBolt collides pretest\n");
    147   if( entity == NULL || dynamic_cast<SpaceShip*>(entity) == NULL)
     146  PRINTF(5)("MBolt collides pretest\n");
     147  if( entity == NULL)
    148148    return;
    149149
    150150  PRINTF(0)("MBolt collides\n");
    151151  dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
    152   entity->destroy(this);
    153   this->deactivate();
     152  //entity->destroy(this);
     153  //this->deactivate();
    154154}
    155155
Note: See TracChangeset for help on using the changeset viewer.