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

Location:
code/branches/presentation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/data/particle/Shield.particle

    r8580 r8635  
    99        renderer        billboard
    1010        sorted  false
    11         local_space     false
     11        local_space     true
    1212        iteration_interval      0
    1313        nonvisible_update_timeout       0
  • 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.