Changeset 6966 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Feb 1, 2006, 6:43:11 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6959 r6966 126 126 { 127 127 if (entity->isA(CL_PROJECTILE) && !State::isOnline() ) 128 { 128 129 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 139 void Playable::die() 140 { 133 141 //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); 136 145 //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 140 155 141 156 /**
Note: See TracChangeset
for help on using the changeset viewer.