Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 2:26:25 PM (13 years ago)
Author:
simonmie
Message:

SimpleRocket and Rocket are now BasicProjectiles - damage is working now correctly with these two. More spam messages removed.

File:
1 edited

Legend:

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

    r7163 r8533  
    4848    CreateFactory(SimpleRocket);
    4949
    50     SimpleRocket::SimpleRocket(BaseObject* creator) : ControllableEntity(creator)
     50    SimpleRocket::SimpleRocket(BaseObject* creator) : ControllableEntity(creator), BasicProjectile()
    5151    {
    5252        RegisterObject(SimpleRocket);// - register the SimpleRocket class to the core
    5353
    5454        this->localAngularVelocity_ = 0;
    55         this->bDestroy_ = false;
     55//        this->bDestroy_ = false;
    5656        this->lifetime_ = 120;
    5757
     
    115115                this->disableFire();
    116116
    117             if( this->bDestroy_ )
     117            if( this->getBDestroy() )
    118118                this->destroy();
    119119        }
     
    167167    bool SimpleRocket::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    168168    {
    169         if (!this->bDestroy_ && GameMode::isMaster())
     169        return BasicProjectile::basicCollidesAgainst(otherObject,contactPoint,this->owner_,this);
     170/*        if (!this->bDestroy_ && GameMode::isMaster())
    170171        {
    171172            if (otherObject == this->owner_)
     
    204205        }
    205206        return false;
     207*/
    206208    }
    207209
Note: See TracChangeset for help on using the changeset viewer.