Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2006, 10:58:41 AM (17 years ago)
Author:
marcscha
Message:

Update in swarm launcher, swarm missile, mbolt

File:
1 edited

Legend:

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

    r10073 r10078  
    4545{
    4646  this->registerObject(this, MBolt::_objectList);
    47   this->loadModel("models/projectiles/mbolt.obj",0.25);
     47  this->loadModel("models/projectiles/mbolt.obj");
     48 
    4849  //this->loadModel("models/projectiles/laser.obj");
    4950
     
    5556
    5657  //this->emitter = new DotEmitter(1000, 0, 0);
    57   this->emitter = new BoxEmitter(Vector(8,1,1)*dynamic_cast<StaticModel*>(this->getModel())->getScaleFactor(), 1000, 0, 0);
     58  this->emitter = new DotEmitter(200, 0, 0);
    5859  this->emitter->setParent(this);
    5960  this->emitter->setSpread(M_PI,M_PI);
     
    7677/**
    7778 *  standard deconstructor
    78 
    79 /**
    80 */
     79 *
     80 */
    8181MBolt::~MBolt ()
    8282{
     
    104104  if (unlikely(MBolt::trailParticles == NULL))
    105105  {
    106     MBolt::trailParticles = new SpriteParticles(3000);
     106    MBolt::trailParticles = new SpriteParticles(1000);
    107107    MBolt::trailParticles->setName("BoomerangProjectileTrailParticles");
    108108    MBolt::trailParticles->setMaterialTexture("maps/radial-trans-noise.png");
     
    134134
    135135  this->emitter->setSpread(0);
    136   this->emitter->setEmissionRate(80.0);
     136  this->emitter->setEmissionRate(10.0);
    137137  this->emitter->setEmissionVelocity(0);
    138138  this->updateNode(0);
     
    198198
    199199  glPushMatrix();
    200 
    201200  float matrix[4][4];
    202201  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     
    205204  glMultMatrixf((float*)matrix);
    206205
    207   glScalef(3.0, 0.7, 0.7);  // no double rescale
     206  glScalef(0.75, 0.7/4, 0.7/4);  // no double rescale
    208207
    209208  this->mat->select();
Note: See TracChangeset for help on using the changeset viewer.