Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10168 in orxonox.OLD


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/WorldEntities.am

    r10073 r10168  
    5454                world_entities/projectiles/boomerang_projectile.cc \
    5555                world_entities/projectiles/hyperblast.cc \
     56                world_entities/projectiles/acid_splash.cc \
    5657                \
    5758                world_entities/power_ups/turret_power_up.cc \
     
    167168                projectiles/boomerang_projectile.h \
    168169                projectiles/hyperblast.h \
     170                projectiles/acid_splash.h \
    169171                \
    170172                power_ups/turret_power_up.h \
  • branches/playability/src/world_entities/effects/wobblegrid.cc

    r10157 r10168  
    8080  this->setName("Wobblegrid");
    8181
    82   this->toList(OM_COMMON);
    83 
    8482  this->material = new Material();
    8583  this->setAbsCoor(0, 0, 0);
     
    117115void Wobblegrid::setTexture(const std::string& textureFile)
    118116{
     117  this->material->setBlendFunc(GL_SRC_ALPHA,GL_ONE);
    119118  this->material->setDiffuseMap(textureFile);
    120119}
  • 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.