protected override bool OnCast(Entity source) { var proj = DaggerProjectile.Fire(source.GameObject); Effects.SpellCastEffect.Display(proj.Position, proj.Rotation, true); return(true); }
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); }