- Timestamp:
- May 23, 2011, 3:54:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gameimmersion/src/modules/weapons/projectiles/SimpleRocket.cc
r8538 r8542 23 23 * Oliver Scheuss 24 24 * Co-authors: 25 * ...25 * simonmie 26 26 * 27 27 */ … … 53 53 54 54 this->localAngularVelocity_ = 0; 55 // this->bDestroy_ = false;56 55 this->lifetime_ = 120; 57 56 58 57 this->setMass(15); 59 COUT(4) << "simplerocket constructed\n";58 // COUT(4) << "simplerocket constructed\n"; 60 59 61 60 if (GameMode::isMaster()) … … 163 162 164 163 165 166 164 /* Calls the collidesAgainst function of BasicProjectile 165 */ 167 166 bool SimpleRocket::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 168 167 { 169 168 return BasicProjectile::basicCollidesAgainst(otherObject,contactPoint,this->getOwner(),this); 170 /* if (!this->bDestroy_ && GameMode::isMaster())171 {172 if (otherObject == this->owner_)173 return false;174 175 this->bDestroy_ = true;176 177 if (this->owner_)178 {179 {180 ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator());181 effect->setPosition(this->getPosition());182 effect->setOrientation(this->getOrientation());183 effect->setDestroyAfterLife(true);184 effect->setSource("Orxonox/explosion4");185 effect->setLifetime(2.0f);186 }187 188 {189 ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator());190 effect->setPosition(this->getPosition());191 effect->setOrientation(this->getOrientation());192 effect->setDestroyAfterLife(true);193 effect->setSource("Orxonox/smoke4");194 effect->setLifetime(3.0f);195 }196 }197 198 float dmg = this->damage_;199 // if (this->owner_)200 // dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);201 202 Pawn* victim = orxonox_cast<Pawn*>(otherObject);203 if (victim)204 victim->hit(this->owner_, contactPoint, dmg);205 }206 return false;207 */208 169 } 209 170
Note: See TracChangeset
for help on using the changeset viewer.