Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2011, 4:15:12 PM (13 years ago)
Author:
landauf
Message:

the shield effect is now attached to the ship

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/modules/weapons/projectiles/BasicProjectile.cc

    r8580 r8635  
    118118                {
    119119                    ParticleSpawner* effect = new ParticleSpawner(owner->getCreator());
    120                     effect->setPosition(entity->getPosition());
    121                     effect->setOrientation(entity->getOrientation());
    122120                    effect->setDestroyAfterLife(true);
    123121                    effect->setSource("Orxonox/Shield");
    124122                    effect->setLifetime(0.5f);
     123                    victim->attach(effect);
    125124                }
    126125            }
Note: See TracChangeset for help on using the changeset viewer.