Changeset 10064 in orxonox.OLD for branches/playability/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Dec 13, 2006, 3:19:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10039 r10064 23 23 #include "particles/dot_emitter.h" 24 24 #include "particles/sprite_particles.h" 25 #include "space_ships/space_ship.h" 25 26 26 27 #include "debug.h" … … 44 45 this->setMinEnergy(1); 45 46 this->setHealthMax(10); 46 this->lifeSpan = 2.0;47 this->lifeSpan = 4.0; 47 48 this->agility = 3.5; 48 49 this->maxVelocity = 100; … … 64 65 SwarmProjectile::~SwarmProjectile () 65 66 { 66 // delete this->emitter; 67 67 68 68 69 /* this is normaly done by World.cc by deleting the ParticleEngine */ … … 79 80 SwarmProjectile::explosionParticles = NULL; 80 81 } 81 82 delete this->emitter; 82 83 } 83 84 … … 96 97 SwarmProjectile::trailParticles->setLifeSpan(1.0, .3); 97 98 SwarmProjectile::trailParticles->setRadius(0.0, .5); 98 SwarmProjectile::trailParticles->setRadius(0.2, 4.0);99 SwarmProjectile::trailParticles->setRadius(.5, 1. 5);100 SwarmProjectile::trailParticles->setRadius(1.0, 1.5);99 SwarmProjectile::trailParticles->setRadius(0.2, 2.0); 100 SwarmProjectile::trailParticles->setRadius(.5, 1.0); 101 SwarmProjectile::trailParticles->setRadius(1.0, 0.6); 101 102 SwarmProjectile::trailParticles->setColor(0.0, 1,0,0,.7); 102 103 SwarmProjectile::trailParticles->setColor(0.2, .8,.8,0,.5); … … 145 146 this->destroy( entity ); 146 147 this->hitEntity = entity; 148 dynamic_cast<SpaceShip*>(entity)->damage(this->getDamage(),0); 147 149 } 148 150
Note: See TracChangeset
for help on using the changeset viewer.