Example #1
0
 private static void Loading_OnLoadingComplete(EventArgs args)
 {
     if (Player.Instance.ChampionName != "Fizz")
     {
         return;
     }
     {
         Chat.Print("Fizz By modziux successfully loaded");
         Fmeniu.Loadmenu();
         FSpells.FSpellsloud();
         modesmanager.ModeManager();
         Obj_AI_Base.OnBuffGain    += Obj_AI_BaseOnBuffgain;
         Obj_AI_Base.OnBuffLose    += Obj_AI_BaseOnBufflose;
         Obj_AI_Base.OnBasicAttack += OnBasicAttack;
         Drawing.OnDraw            += OnDraw;
     }
 }
Example #2
0
File: combo.cs Project: spall9/Fizz
    public static void Combo()
    {
        var target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Magical);
        var use_r  = (Spells.R.IsReady() && Settings.combo_r);
        var use_e  = (Spells.E.IsReady() && Settings.combo_e);
        var use_w  = (Spells.W.IsReady() && Settings.combo_w);
        var use_q  = (Spells.Q.IsReady() && Settings.combo_q);

        if (target == null)
        {
            return;
        }
        if (use_q && Spells.Q.IsInRange(target))
        {
            Spells.Q.Cast(target);
        }
        if (MyDic.ContainsKey(target))
        {
            MyDic[target]++;
        }
        if (MyDic.ContainsKey(target) && MyDic[target] > Game.TicksPerSecond * 2 && Settings.combo_ww)
        {
            Spells.W.Cast();
        }
        else if (use_w && Spells.W.IsInRange(target) && !Settings.combo_ww)
        {
            Spells.W.Cast();
        }
        var prediction = Prediction.Position.PredictUnitPosition(target, 1).Distance(Player.Instance.Position)
                         <= (Spells.E.Range + 200 + 330);

        if (Spells.E.Name == "FizzE" && use_e && !Spells.Q.IsReady() && prediction)
        {
            var castPos = Player.Instance.Distance(Prediction.Position.PredictUnitPosition(target, 1)) > Spells.E.Range
                              ? Player.Instance.Position.Extend(
                Prediction.Position.PredictUnitPosition(target, 1),
                Spells.E.Range).To3DWorld()
                              : target.Position;

            Spells.E.Cast(castPos);

            var pred2 = Prediction.Position.PredictUnitPosition(target, 1).Distance(Player.Instance.Position)
                        <= (200 + 330 + target.BoundingRadius);

            if (pred2)
            {
                Player.IssueOrder(
                    GameObjectOrder.MoveTo,
                    Prediction.Position.PredictUnitPosition(target, 1).To3DWorld());
            }
            else
            {
                Spells.E.Cast(Prediction.Position.PredictUnitPosition(target, 1).To3DWorld());
            }
        }
        if (use_r && !target.IsZombie)
        {
            if (!target.IsFacing(Player.Instance))
            {
                if (Player.Instance.Distance(target.Position) < (Spells.R.Range - target.MoveSpeed) - (165))
                {
                    Spells.CastR(target, Settings.RMode);
                }
            }
            else
            {
                if (Player.Instance.Distance(target.Position) <= (Spells.R.Range))
                {
                    Spells.CastR(target, Settings.RMode);
                }
            }
        }
    }