Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2009, 5:19:28 PM (15 years ago)
Author:
cdaniel
Message:

Fixed Rocket.cc (starts now in correct direction when played with windows) and added/changed some particle effects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particles2/src/modules/weapons/projectiles/Rocket.cc

    r6087 r6098  
    5151    {
    5252        RegisterObject(Rocket);// - register the Rocket class to the core
     53
     54                this->localAngularVelocity_ = 0;
    5355       
    5456        if (GameMode::isMaster())
     
    6062       
    6163            this->model_ = new Model(this);
    62             this->model_->setMeshSource("rocket_test.mesh");
    63             this->attach(this->model_);
     64            this->model_->setMeshSource("rocket.mesh");
     65                        this->attach(this->model_);
     66                        ParticleSpawner* fire = new ParticleSpawner(this);
     67                        this->attach(fire);
     68                        fire->setOrientation(this->getOrientation());
     69            fire->setSource("Orxonox/rocketfire");
    6470       
    6571            this->enableCollisionCallback();
     
    7379
    7480            this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&Rocket::destroyObject, this)));
     81               
     82                       
    7583        }
    7684       
     
    156164                    effect->setOrientation(this->getOrientation());
    157165                    effect->setDestroyAfterLife(true);
    158                     effect->setSource("Orxonox/explosion3");
     166                    effect->setSource("Orxonox/explosion4");
    159167                    effect->setLifetime(2.0f);
    160168                }
     169
    161170                {
    162171                    ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator());
     
    196205                effect->setOrientation(this->getOrientation());
    197206                effect->setDestroyAfterLife(true);
    198                 effect->setSource("Orxonox/explosion3");
     207                effect->setSource("Orxonox/explosion4");
    199208                effect->setLifetime(2.0f);
    200209            }
     210
    201211            {
    202212                ParticleSpawner* effect = new ParticleSpawner(this->owner_->getCreator());
Note: See TracChangeset for help on using the changeset viewer.