Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2007, 4:39:18 PM (17 years ago)
Author:
marcscha
Message:

Acid Launcher and Acid Splash (projectile) finished.
Temporally dist check instead of collision on swarm projectile (collision manager problem which needs to be tracked down first)

Location:
branches/playability/src/world_entities/projectiles
Files:
2 edited

Legend:

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

    r10140 r10168  
    9191MBolt::~MBolt ()
    9292{
    93   // delete this->emitter;
    9493
    9594  if (MBolt::explosionParticles != NULL && MBolt::objectList().size() <= 1)
     
    10099    PRINTF(1)("Deleting MBolt Explosion Particles\n");
    101100  }
    102  
     101
     102  delete this->emitter;
     103  delete this->trail;
    103104}
    104105
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10153 r10168  
    8888void SwarmProjectile::activate()
    8989{
     90  this->toList(OM_ENVIRON);
    9091  if (unlikely(SwarmProjectile::explosionParticles == NULL))
    9192  {
     
    103104  }
    104105
    105 
    106   this->updateNode(0);
    107106  this->emitter->setEmissionRate(50.0);
    108107  this->emitter->setEmissionVelocity(0.0);
     
    272271  this->lastDir = this->curDir;
    273272  this->curDir = this->velocity;
    274 /*
    275273  if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 3)   // FIXME  Temp fake workaround for collision :)
    276274  {
    277275    dynamic_cast<WorldEntity*>(target)->destroy( this);
    278276    this->destroy( this);
    279   }*/
     277  }
    280278}
    281279
Note: See TracChangeset for help on using the changeset viewer.