Changeset 5471 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Nov 3, 2005, 11:19:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/rocket.cc
r5465 r5471 85 85 if (unlikely(Rocket::trailParticles == NULL)) 86 86 { 87 Rocket::trailParticles = new ParticleSystem( 1000, PARTICLE_SPRITE);87 Rocket::trailParticles = new ParticleSystem(2000, PARTICLE_SPRITE); 88 88 Rocket::trailParticles->setName("RocketTrailParticles"); 89 Rocket::trailParticles->setLifeSpan(.5, .3); 89 Rocket::trailParticles->setMaterialTexture("maps/radial-trans-noise.png"); 90 Rocket::trailParticles->setLifeSpan(1.0, .3); 90 91 Rocket::trailParticles->setRadius(0.0, .5); 91 92 Rocket::trailParticles->setRadius(0.5, 2.0); 92 Rocket::trailParticles->setRadius(1.0, 5.0); 93 Rocket::trailParticles->setRadius(.83, .8); 94 Rocket::trailParticles->setRadius(1.0, .8); 93 95 Rocket::trailParticles->setColor(0.0, 1,0,0,.7); 94 96 Rocket::trailParticles->setColor(0.5, .8,.8,0,.5); 95 Rocket::trailParticles->setColor(1.0, .7,.7,.7,.0); 97 Rocket::trailParticles->setColor(0.8, .8,.8,.8,.8); 98 Rocket::trailParticles->setColor(1.0, .8,.8,.8,.0); 96 99 } 97 100 if (unlikely(Rocket::explosionParticles == NULL)) … … 99 102 Rocket::explosionParticles = new ParticleSystem(200, PARTICLE_SPRITE); 100 103 Rocket::explosionParticles->setName("RocketExplosionParticles"); 104 Rocket::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png"); 101 105 Rocket::explosionParticles->setLifeSpan(.6, .3); 102 106 Rocket::explosionParticles->setRadius(0.0, 10); … … 111 115 ParticleEngine::getInstance()->addConnection(this->emitter, Rocket::trailParticles); 112 116 113 this->emitter->setEmissionRate( 20.0);114 this->emitter->setEmissionVelocity( 3.0);117 this->emitter->setEmissionRate(40.0); 118 this->emitter->setEmissionVelocity(0.0); 115 119 } 116 120
Note: See TracChangeset
for help on using the changeset viewer.