Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2007, 9:53:07 AM (18 years ago)
Author:
nicolasc
Message:

some additional weapons, started weapons cleanup

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  
    2525#include "debug.h"
    2626
    27 // #include "effects/wobblegrid.h"
    28 
    29 
    3027
    3128ObjectListDefinition(PlasmaPulse);
     
    3936  this->registerObject(this, PlasmaPulse::_objectList);
    4037
    41 //   srand(time(0));   //initialize Random Nomber Generator
    42 
    43   //this->loadModel("models/projectiles/laser.obj");
    4438
    4539  this->setMinEnergy(1);
    4640  this->setHealthMax(0);
    4741  this->lifeSpan = 3.0;
    48 //   this->angle     = 0;
    4942
    5043  this->grid = new Billboard();
     
    8780  this->lifeCycle = 0.0;
    8881
    89  // this->hide();
    9082  this->grid->setVisibility(false);
    9183  this->lifeCycle = 0.0;
    9284  this->toList(OM_NULL);
    93   //this->toList(OM_DEAD);
    9485  this->removeNode();
    9586
     
    136127void PlasmaPulse::draw () const
    137128{
    138   this->grid->draw();
     129  glPushMatrix();
     130    glEnable( GL_ALPHA_TEST);
     131    glAlphaFunc( GL_GEQUAL, .5);
     132    this->grid->draw();
     133  glPopMatrix();
     134
    139135}
  • branches/vs-enhencements/src/world_entities/projectiles/plasma_pulse.h

    r10646 r10648  
    3333    static FastFactory*               fastFactory;
    3434    Billboard*                        grid;
    35 
    36 //     WorldEntity* hitEntity; // FIXME TEMPORARY
    3735};
    3836
Note: See TracChangeset for help on using the changeset viewer.