Changeset 10603 in orxonox.OLD for branches/cleanup/src/world_entities
- Timestamp:
- Mar 27, 2007, 7:09:52 PM (18 years ago)
- Location:
- branches/cleanup/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/projectiles/mbolt.cc
r10545 r10603 82 82 //this->trail->setParent( this); 83 83 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); 85 86 86 87 } -
branches/cleanup/src/world_entities/projectiles/projectile_weapon.h
r10368 r10603 1 1 /*! 2 2 * @file projectile_weapon.h 3 * a projectile_weapon , that is been shooted by a weapon3 * a projectile_weapon is a projetile fireing projectile. 4 4 * 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. 6 7 * 7 8 */ -
branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc
r10601 r10603 57 57 this->elecDamage = 0; 58 58 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); 61 60 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 66 67 this->angle = 0; 68 67 69 68 70 … … 86 88 // delete this->emitter; 87 89 delete this->trail; 90 delete this->smoke; 88 91 } 89 92 … … 116 119 this->setHealth(10.0* (float)rand()/(float)RAND_MAX); 117 120 118 this->maxVelocity = 300;119 120 this->rotationSpeed = 360;121 // this->maxVelocity = 300; 122 123 // this->rotationSpeed = 360; 121 124 this->angle = 0; 122 125 … … 219 222 220 223 this->trail->tick(time); 224 this->smoke->tick(time); 221 225 222 226 this->angle += this->rotationSpeed * time; … … 278 282 glTranslatef(-.9,0,0); 279 283 this->trail->draw(); 284 glTranslatef( -1.1, 0, 0); 285 this->smoke->draw(); 280 286 glPopMatrix(); 281 287 } -
branches/cleanup/src/world_entities/projectiles/swarm_projectile.h
r10368 r10603 1 1 /*! 2 2 * @file swarm_projectile.h 3 * @brief a Swarm Projectile Projectile3 * @brief a Swarm_Missile Projectile 4 4 */ 5 5 … … 40 40 41 41 Trail* trail; 42 Trail* smoke; 42 43 43 44 ParticleEmitter* emitter; 44 45 float agility; 45 float maxVelocity;46 const static float maxVelocity = 100; 46 47 float speed; 47 48 Vector diffVector ; … … 57 58 58 59 // spinning missle 59 float rotationSpeed;60 const static float rotationSpeed = 360; 60 61 float angle; 61 62 }; -
branches/cleanup/src/world_entities/weapons/swarm_launcher.cc
r10579 r10603 98 98 this->setProjectileTypeC("SwarmProjectile"); 99 99 100 this->loadModel("models/guns/turret1.obj", 1.0);100 // this->loadModel("models/guns/turret1.obj", 1.0); 101 101 102 102 this->setEmissionPoint(1.684, 0.472, 0); 103 this->getProjectileFactory()->prepare( 50);103 this->getProjectileFactory()->prepare(10); 104 104 105 105 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"); 107 107 // this->setActionSound(WA_RELOAD, "sounds/voices/reload.wav"); 108 108
Note: See TracChangeset
for help on using the changeset viewer.