Changeset 10763 in orxonox.OLD for branches/presentation/src/world_entities/projectiles
- Timestamp:
- Jun 21, 2007, 3:35:24 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/mbolt.cc
r10747 r10763 52 52 this->loadModel("models/projectiles/mbolt.obj",4); 53 53 54 55 //this->loadModel("models/projectiles/laser.obj");56 57 54 this->setMinEnergy(4); 58 55 this->setHealthMax(0); … … 60 57 this->angle = 0; 61 58 62 //this->emitter = new DotEmitter(1000, 0, 0);63 59 this->emitter = new DotEmitter(50, 0, 0); 64 60 this->emitter->setParent(this); … … 69 65 70 66 this->mat = new Material("mBolt"); 71 //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);72 67 this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE); 73 68 this->mat->setDiffuse(1,1,1); … … 82 77 83 78 this->trail = new Trail(6, 4, .1, this); 84 //this->trail->setParent( this);85 79 this->trail->setTexture( "textures/laser.png"); 86 // this->trail->setAbsCoor(this->getAbsCoor() - Vector(.7,0,0));87 80 this->trail->setAbsCoor(this->getAbsCoor() - this->getVelocity().getNormalized() * .7); 88 81 89 82 this->obbTree = new OBBTree(); 90 83 this->obbTree->createBox(Vector(0.0f, 0.0f, 0.0f), Vector(1.0f, 1.0f, 1.0f)); … … 117 110 void MBolt::activate() 118 111 { 119 // this->origList = this->getOMListNumber();120 // this->toList(OM_ENVIRON);121 112 if (unlikely(MBolt::explosionParticles == NULL)) 122 113 { … … 154 145 MBolt::fastFactory->kill(this); 155 146 } 147 // HACK direction AbsDir calulation 156 148 157 149 void MBolt::hit (float damage, WorldEntity* entity ) … … 161 153 this->destroy( entity ); 162 154 this->hitEntity = entity; 163 // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 164 //this->destroy(this); 155 165 156 this->deactivate(); 166 157 … … 175 166 void MBolt::tick (float dt) 176 167 { 177 //Vector v = *this->flightDirection * ( this->speed * time * 1000 + 0.1);178 168 Vector v = this->velocity * dt; 179 169 this->shiftCoor(v); … … 191 181 void MBolt::destroy (WorldEntity* killer) 192 182 { 193 //this->deactivate();194 183 Projectile::destroy( killer ); 195 184 PRINTF(5)("DESTROY MBolt\n"); -
branches/presentation/src/world_entities/projectiles/plasma_pulse.cc
r10758 r10763 134 134 glPushMatrix(); 135 135 glPushAttrib(GL_ENABLE_BIT); 136 glEnable( GL_ALPHA_TEST);137 glAlphaFunc( GL_GEQUAL, .5);136 // glEnable( GL_ALPHA_TEST); 137 // glAlphaFunc( GL_GEQUAL, .5); 138 138 this->grid->draw(); 139 139 // this->blink->draw();
Note: See TracChangeset
for help on using the changeset viewer.