public override void Initialize()
        {
            base.Initialize();

            Position = Turret.Position + TargetOffset;
            
            Line.Debut = Position;
            Line.Fin = Direction * LONGUEUR_LIGNE;

            MovingEffect = Scene.Particles.Get(@"projectileLaserMultiple");
            LineEmitter emitter = (LineEmitter)MovingEffect.Model[0];
            emitter.Length = LONGUEUR_LIGNE;
            MovingEffect.VisualPriority = VisualPriority + 0.001f;

            MovingEffect2 = new VisualLine(this.Position, this.Position + this.Direction * LONGUEUR_LIGNE, new Color(255, 216, 0, 100), 4);
            MovingEffect2.VisualPriority = VisualPriority + 0.002f;

            LifePoints = Int16.MaxValue;
            LifeSpan = 800;
            Orphelin = false;
        }
Beispiel #2
0
        public override void Initialize()
        {
            base.Initialize();

            Position = Turret.Position;

            MovingEffect = Scene.Particles.Get(@"projectileLaserSimple");
            MovingEffect.VisualPriority = VisualPriority + 0.001f;

            Line.Debut = Turret.Position;
            Line.Fin = Target.Position;

            LineEmitter emitter = (LineEmitter)MovingEffect.Model[0];
            emitter.Length = Line.Longueur;
            emitter = (LineEmitter)MovingEffect.Model[1];
            emitter.Length = Line.Longueur;

            MovingEffect2 = new VisualLine(Line.Debut, Line.Fin, new Color(255, 0, 110), 4);
            MovingEffect2.VisualPriority = VisualPriority + 0.002f;

            LifePoints = Int16.MaxValue;
            LifeSpan = 800;
        }