Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6966 in orxonox.OLD for trunk/src/world_entities/playable.cc


Ignore:
Timestamp:
Feb 1, 2006, 6:43:11 PM (20 years ago)
Author:
patrick
Message:

trunk: deactivated the lenseflare temp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.cc

    r6959 r6966  
    126126{
    127127  if (entity->isA(CL_PROJECTILE) && !State::isOnline() )
     128  {
    128129    this->decreaseHealth(entity->getHealth());
    129 
    130   // EXTREME HACK
    131   if (this->getHealth() == 0.0f)
    132   {
     130    // EXTREME HACK
     131    if (this->getHealth() == 0.0f)
     132    {
     133      this->die();
     134    }
     135  }
     136}
     137
     138
     139void Playable::die()
     140{
    133141    //this->deactivateNode();
    134     this->emitter->setSystem(explosionParticles);
    135     this->setAbsCoor(0, 0, 0);
     142  this->toList(OM_DEAD);
     143  this->emitter->setSystem(explosionParticles);
     144  this->setAbsCoor(0, 0, 0);
    136145    //this->setAbsDir(Vector(1,0,0), 0);
    137     this->emitter->setSystem(NULL);
    138   }
    139 }
     146  this->emitter->setSystem(NULL);
     147
     148
     149  if( this->getOwner()%2 == 0)
     150    this->toList(OM_GROUP_00);
     151  else
     152    this->toList(OM_GROUP_01);
     153}
     154
    140155
    141156/**
Note: See TracChangeset for help on using the changeset viewer.