Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 3:54:40 PM (13 years ago)
Author:
simonmie
Message:

comments added, unused parts removed, some spam messages removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gameimmersion/src/modules/weapons/projectiles/SimpleRocket.cc

    r8538 r8542  
    2323 *      Oliver Scheuss
    2424 *   Co-authors:
    25  *      ...
     25 *      simonmie
    2626 *
    2727 */
     
    5353
    5454        this->localAngularVelocity_ = 0;
    55 //        this->bDestroy_ = false;
    5655        this->lifetime_ = 120;
    5756
    5857        this->setMass(15);
    59         COUT(4) << "simplerocket constructed\n";
     58//        COUT(4) << "simplerocket constructed\n";
    6059
    6160        if (GameMode::isMaster())
     
    163162
    164163
    165 
    166 
     164    /* Calls the collidesAgainst function of BasicProjectile
     165     */
    167166    bool SimpleRocket::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    168167    {
    169168        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 */
    208169    }
    209170
Note: See TracChangeset for help on using the changeset viewer.