Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10603 in orxonox.OLD


Ignore:
Timestamp:
Mar 27, 2007, 7:09:52 PM (17 years ago)
Author:
nicolasc
Message:

minor improments

Location:
branches/cleanup/src/world_entities
Files:
5 edited

Legend:

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

    r10545 r10603  
    8282  //this->trail->setParent( this);
    8383  this->trail->setTexture( "textures/laser.png");
    84   this->trail->setAbsCoor(this->getAbsCoor() - Vector(.7,0,0));
     84//   this->trail->setAbsCoor(this->getAbsCoor() - Vector(.7,0,0));
     85  this->trail->setAbsCoor(this->getAbsCoor() - this->getVelocity().getNormalized() * .7);
    8586
    8687}
  • branches/cleanup/src/world_entities/projectiles/projectile_weapon.h

    r10368 r10603  
    11/*!
    22 * @file projectile_weapon.h
    3  * a projectile_weapon, that is been shooted by a weapon
     3 * a projectile_weapon is a projetile fireing projectile.
    44 *
    5  * You can use this class to make some ProjectileWeapons/Bullets/Lasers/Rockets/etc.
     5 * You can use this class to make some Multi-Stage Projectiles.
     6 * See Spike_Ball for an implemeted example.
    67 *
    78 */
  • branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc

    r10601 r10603  
    5757  this->elecDamage = 0;
    5858
    59   this->trail = new Trail(2.5,4,.2, this);
    60   //this->trail->setParent( this);
     59  this->trail = new Trail(2.5, 4, .2, this);
    6160  this->trail->setTexture( "textures/laser.png");
    62  
    63   this->maxVelocity = 300;
    64 
    65   this->rotationSpeed = 360;
     61
     62//   this->maxVelocity = 300;
     63
     64  this->smoke = new Trail(20, 10, .3, this);
     65  this->smoke->setTexture ("textures/engine.png");
     66
    6667  this->angle = 0;
     68
    6769
    6870
     
    8688  // delete this->emitter;
    8789  delete this->trail;
     90  delete this->smoke;
    8891}
    8992
     
    116119  this->setHealth(10.0* (float)rand()/(float)RAND_MAX);
    117120
    118   this->maxVelocity = 300;
    119 
    120   this->rotationSpeed = 360;
     121//   this->maxVelocity = 300;
     122
     123//   this->rotationSpeed = 360;
    121124  this->angle = 0;
    122125
     
    219222
    220223  this->trail->tick(time);
     224  this->smoke->tick(time);
    221225
    222226  this->angle += this->rotationSpeed * time;
     
    278282  glTranslatef(-.9,0,0);
    279283  this->trail->draw();
     284  glTranslatef( -1.1, 0, 0);
     285  this->smoke->draw();
    280286  glPopMatrix();
    281287}
  • branches/cleanup/src/world_entities/projectiles/swarm_projectile.h

    r10368 r10603  
    11/*!
    22 * @file swarm_projectile.h
    3  * @brief a SwarmProjectile Projectile
     3 * @brief a Swarm_Missile Projectile
    44*/
    55
     
    4040
    4141    Trail*                            trail;
     42    Trail*                            smoke;
    4243
    4344    ParticleEmitter*                  emitter;
    4445    float                             agility;
    45     float                             maxVelocity;
     46    const static float                maxVelocity = 100;
    4647    float                             speed;
    4748    Vector                            diffVector ;
     
    5758
    5859    // spinning missle
    59     float                             rotationSpeed;
     60    const static float                rotationSpeed = 360;
    6061    float                             angle;
    6162};
  • branches/cleanup/src/world_entities/weapons/swarm_launcher.cc

    r10579 r10603  
    9898  this->setProjectileTypeC("SwarmProjectile");
    9999
    100   this->loadModel("models/guns/turret1.obj", 1.0);
     100//   this->loadModel("models/guns/turret1.obj", 1.0);
    101101
    102102  this->setEmissionPoint(1.684, 0.472, 0);
    103   this->getProjectileFactory()->prepare(50);
     103  this->getProjectileFactory()->prepare(10);
    104104
    105105  this->setActionSound(WA_SHOOT, "sounds/explosions/explosion_1.wav");
    106   this->setActionSound(WA_ACTIVATE, "sounds/voices/rockets.wav");
     106//   this->setActionSound(WA_ACTIVATE, "sounds/voices/rockets.wav");
    107107//   this->setActionSound(WA_RELOAD, "sounds/voices/reload.wav");
    108108
Note: See TracChangeset for help on using the changeset viewer.