示例#1
0
 public override void setUpSpells()
 {
     Q = new Skillshot(SpellSlot.Q, 1100, SkillShotType.Linear, 250, 60, 60);
     W = new Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 100, 240, 240);
     E = new Targeted(SpellSlot.E, 625, DamageType.Magical);
     R = new Targeted(SpellSlot.R, 750, DamageType.Magical);
 }
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 23 + Fields.GetHashCode();
                hash = hash * 23 + Properties.GetHashCode();
                hash = hash * 23 + Methods.GetHashCode();
                hash = hash * 23 + Constructors.GetHashCode();
                hash = hash * 23 + Gettable.GetHashCode();
                hash = hash * 23 + Settable.GetHashCode();
                hash = hash * 23 + Indexers.GetHashCode();
                hash = hash * 23 + Events.GetHashCode();

                hash = hash * 23 + Inherited.GetHashCode();
                hash = hash * 23 + Targeted.GetHashCode();
                hash = hash * 23 + NonTargeted.GetHashCode();
                hash = hash * 23 + Public.GetHashCode();
                hash = hash * 23 + NonPublic.GetHashCode();
                hash = hash * 23 + ReadOnly.GetHashCode();
                hash = hash * 23 + WriteOnly.GetHashCode();
                hash = hash * 23 + Extensions.GetHashCode();
                hash = hash * 23 + Operators.GetHashCode();
                hash = hash * 23 + Conversions.GetHashCode();
                hash = hash * 23 + Parameters.GetHashCode();
                hash = hash * 23 + Obsolete.GetHashCode();
                hash = hash * 23 + OpenConstructedGeneric.GetHashCode();
                hash = hash * 23 + TypeInitializers.GetHashCode();

                return(hash);
            }
        }
示例#3
0
文件: debug.cs 项目: jitart/adc
        public static void Init()
        {
            //if (Player.Instance.Hero != Champion.Yasuo) return;

            EvadeMenu  = MainMenu.AddMenu("KappaEvade", "KappaEvade");
            SkillShots = EvadeMenu.AddSubMenu("SkillShots");
            Targeted   = EvadeMenu.AddSubMenu("TargetedSpells");

            EvadeMenu.AddGroupLabel("YASUO EVADE");
            Targeted.AddGroupLabel("TARGETED Spells");
            Targeted.Add("W", new CheckBox("Use W"));
            Targeted.Add("impact", new CheckBox("Block Before Impact"));
            Targeted.Add("rnd", new CheckBox("Randomize Delay"));
            Targeted.Add("combo", new CheckBox("Block In Combo Mode ONLY"));
            Targeted.Add("dl", new Slider("Min Danger Level To Block {0}", 1, 0, 5));
            var min = Targeted.Add("min", new Slider("Min Delay {0} (In MilliSeconds)", 0, 0, 500));
            var max = Targeted.Add("max", new Slider("Max Delay {0} (In MilliSeconds)", 250, 0, 1000));

            min.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
            {
                max.MinValue = args.NewValue;
                if (args.NewValue > max.CurrentValue)
                {
                    max.CurrentValue = args.NewValue + 1;
                }
            };

            SkillShots.AddGroupLabel("SKILLSHOTS");
            SkillShots.Add("W", new CheckBox("Use W"));
            SkillShots.Add("combo", new CheckBox("Block In Combo Mode ONLY"));
            SkillShots.Add("dl", new Slider("Min Danger Level To Block {0}", 1, 0, 5));
            SkillShots.Add("range", new Slider("Extra spell Range {0}", 50, 0, 150));
            SkillShots.Add("width", new Slider("Extra spell Width {0}", 15, 0, 75));

            Targeted.AddSeparator();
            SkillShots.AddSeparator();
            foreach (var enemy in EntityManager.Heroes.Enemies)
            {
                foreach (var spell in Database.TargetedSpells.TargetedSpellsList.Where(s => s.hero == enemy.Hero))
                {
                    Targeted.Add(enemy.ID() + spell.slot, new CheckBox("Enable " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot, spell.DangerLevel > 1));
                    Targeted.Add(enemy.ID() + spell.slot + "dl", new Slider(enemy.ChampionName + " (" + enemy.Name + ")" + " " + spell.slot + " Danger Level {0}", spell.DangerLevel, 0, 5));
                    Targeted.AddSeparator(1);
                }

                foreach (var spell in Database.SkillShotSpells.SkillShotsSpellsList.Where(s => s.hero == enemy.Hero))
                {
                    SkillShots.Add(enemy.ID() + spell.slot + "draw", new CheckBox("Draw " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot));
                    SkillShots.Add(enemy.ID() + spell.slot, new CheckBox("Enable " + enemy.ChampionName + " (" + enemy.Name + ")" + " - " + spell.slot, spell.DangerLevel > 1));
                    SkillShots.Add(enemy.ID() + spell.slot + "dl", new Slider(enemy.ChampionName + " (" + enemy.Name + ")" + " " + spell.slot + " Danger Level {0}", spell.DangerLevel, 0, 5));
                    SkillShots.AddSeparator(1);
                }
            }

            Game.OnTick += Game_OnTick;
            SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected;
        }
示例#4
0
 public override void setUpSpells()
 {
     // Initialize spells
     Q = new Skillshot(SpellSlot.Q, 1075, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 0, 850, 110)
     {
         AllowedCollisionCount = int.MaxValue
     };
     W = new Skillshot(SpellSlot.W, 1000, EloBuddy.SDK.Enumerations.SkillShotType.Circular, 0, int.MaxValue, 1);
     E = new Targeted(SpellSlot.E, 650);
     R = new Skillshot(SpellSlot.R, 625, EloBuddy.SDK.Enumerations.SkillShotType.Circular, 0, int.MaxValue, 400);
 }
示例#5
0
文件: debug.cs 项目: jitart/adc
        private static void SpellsDetector_OnTargetedSpellDetected(Obj_AI_Base sender, Obj_AI_Base target, GameObjectProcessSpellCastEventArgs args, Database.TargetedSpells.TSpell spell)
        {
            var W = Player.GetSpell(SpellSlot.W);

            if (sender == null || !sender.IsEnemy || !target.IsMe || !Targeted.checkbox("W") || !W.IsReady)
            {
                return;
            }

            if (Targeted.slider(sender.ID() + spell.slot + "dl") >= Targeted.slider("dl") && Targeted.checkbox(sender.ID() + spell.slot))
            {
                var impact = (args.Start.Distance(Player.Instance) / args.SData.MissileSpeed) * 1000 + (spell.CastDelay - Game.Ping);
                var delay  = Targeted.checkbox("impact") ? impact : Targeted.checkbox("rnd") ? new Random().Next(Targeted.slider("min"), Targeted.slider("max")) : Targeted.slider("max");
                Chat.Print(delay);
                EloBuddy.SDK.Core.DelayAction(() => Player.CastSpell(W.Slot, Player.Instance.ServerPosition.Extend(args.Start, 200).To3D()), (int)delay);
            }
        }
示例#6
0
文件: Kart.cs 项目: Hashrap/PARacing
    private void Update()
    {
        //TODO: Camera needs to be better!
        //Maybe: Set camera behind the forward velocity (avoid rolling/pitching)
        Vector3 camPos = transform.position;

        camPos += transform.TransformDirection(Vector3.back) * camOffset.z;
        camPos += transform.TransformDirection(Vector3.up) * camOffset.y;
        mainCam.transform.position = camPos;
        mainCam.transform.LookAt(transform.position);

        if (boost >= 0.0f)
        {
            boost -= Time.deltaTime;
        }
        else
        {
            speedMultiplier = 1.0f;
        }

        if (Input.GetKeyDown(KeyCode.F) && !item.Equals("None"))
        {
            if (item.Equals("Ramen"))
            {
                GameObject tmp = (GameObject)Instantiate(ramen, transform.position, transform.rotation);
                Targeted   t   = tmp.GetComponent <Targeted>();
                //TODO: target opponent
                t.Target = this.transform;
            }

            if (item.Equals("Boost"))
            {
                speedMultiplier = 2.0f;
                boost           = 2.0f;
                Instantiate(boostParticles, transform);
            }
            item = "None";
        }
    }
示例#7
0
 public static void targetDestroyed(Targeted target)
 {
     targets.Remove(target);
     Destroy(target.gameObject);
 }