Ejemplo n.º 1
0
        protected override bool OnCast(Entity source)
        {
            var proj = DaggerProjectile.Fire(source.GameObject);

            Effects.SpellCastEffect.Display(proj.Position, proj.Rotation, true);
            return(true);
        }
Ejemplo n.º 2
0
        public override void Launch(GameObject actor, int startX, int startY, sbyte velX)
        {
            var projectile = DaggerProjectile.Create(actor.room, this.projSubType, FVector.Create(startX, startY), FVector.Create(velX, 0));

            projectile.SetActorID(actor);
            projectile.SetEndLife(Systems.timer.Frame + this.duration);
        }