Changeset 10648 in orxonox.OLD for branches/vs-enhencements/src/world_entities/projectiles
- Timestamp:
- May 4, 2007, 9:53:07 AM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/projectiles/plasma_pulse.cc
r10646 r10648 25 25 #include "debug.h" 26 26 27 // #include "effects/wobblegrid.h"28 29 30 27 31 28 ObjectListDefinition(PlasmaPulse); … … 39 36 this->registerObject(this, PlasmaPulse::_objectList); 40 37 41 // srand(time(0)); //initialize Random Nomber Generator42 43 //this->loadModel("models/projectiles/laser.obj");44 38 45 39 this->setMinEnergy(1); 46 40 this->setHealthMax(0); 47 41 this->lifeSpan = 3.0; 48 // this->angle = 0;49 42 50 43 this->grid = new Billboard(); … … 87 80 this->lifeCycle = 0.0; 88 81 89 // this->hide();90 82 this->grid->setVisibility(false); 91 83 this->lifeCycle = 0.0; 92 84 this->toList(OM_NULL); 93 //this->toList(OM_DEAD);94 85 this->removeNode(); 95 86 … … 136 127 void PlasmaPulse::draw () const 137 128 { 138 this->grid->draw(); 129 glPushMatrix(); 130 glEnable( GL_ALPHA_TEST); 131 glAlphaFunc( GL_GEQUAL, .5); 132 this->grid->draw(); 133 glPopMatrix(); 134 139 135 } -
branches/vs-enhencements/src/world_entities/projectiles/plasma_pulse.h
r10646 r10648 33 33 static FastFactory* fastFactory; 34 34 Billboard* grid; 35 36 // WorldEntity* hitEntity; // FIXME TEMPORARY37 35 }; 38 36
Note: See TracChangeset
for help on using the changeset viewer.