Beispiel #1
0
        public static void Update(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Utils.GameTimeTickCount - LastQ >= 3650 - Game.Ping &&
                MenuConfig.KeepQ &&
                !Player.InFountain() &&
                !Player.HasBuff("Recall") &&
                Player.HasBuff("RivenTriCleave"))
            {
                Spells.Q.Cast(Game.CursorPos);
            }

            QMove();

            BackgroundData.ForceSkill();

            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combos.Combo();
                break;

            case Orbwalking.OrbwalkingMode.Burst:
                Combos.Burst();
                break;

            case Orbwalking.OrbwalkingMode.Flee:
                FleeMode.Flee();
                break;

            case Orbwalking.OrbwalkingMode.QuickHarass:
                FastHarassMode.FastHarass();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Mixed.Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                JungleClearMode.Jungleclear();
                LaneclearMode.Laneclear();
                break;
            }
        }
Beispiel #2
0
        public static void Update(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Environment.TickCount - LastQ >= 3650 - Game.Ping && MenuConfig.KeepQ

                //&& !Player.InFountain()//TODO: Figure if this exist in Elobuddy
                && !Player.HasBuff("Recall") &&
                Player.HasBuff("RivenTriCleave"))
            {
                Player.Spellbook.CastSpell(SpellSlot.Q, Game.CursorPos);
            }

            QMove();

            BackgroundData.ForceSkill();
            switch (EloBuddy.SDK.Orbwalker.ActiveModesFlags)
            {
            case EloBuddy.SDK.Orbwalker.ActiveModes.Combo:
                if (MenuConfig.BurstEnabled)
                {
                    BurstMode.Burst();
                }
                else
                {
                    ComboMode.Combo();
                }
                break;

            case EloBuddy.SDK.Orbwalker.ActiveModes.Flee:
                FleeMode.Flee();
                break;

            case EloBuddy.SDK.Orbwalker.ActiveModes.JungleClear:
            case EloBuddy.SDK.Orbwalker.ActiveModes.LaneClear:
                JungleClearMode.Jungleclear();
                LaneclearMode.Laneclear();
                break;
            }
        }
Beispiel #3
0
        protected override void DrawStateInspectorEditor(SerializedObject m_Object, AIBehaviors stateMachine)
        {
            SerializedObject   m_State = new SerializedObject(this);
            SerializedProperty m_property;
            GUIContent         distanceToTargetThresholdContent = new GUIContent("Distance to target threshold", "This distance should be greater than the stopping distance of the Nav Mesh Agent. Default=1");

            m_State.Update();

            GUILayout.Label("Flee Properties:", EditorStyles.boldLabel);
            GUILayout.BeginVertical(GUI.skin.box);

            m_property = m_State.FindProperty("fleeMode");
            EditorGUILayout.PropertyField(m_property);

            FleeMode fleeMode = (FleeMode)m_property.enumValueIndex;

            switch (fleeMode)
            {
            case FleeMode.NearestTaggedObject:
                GUILayout.BeginHorizontal();
                {
                    GUILayout.Label("Use nearest object with tag:");
                    m_property             = m_State.FindProperty("fleeTargetTag");
                    m_property.stringValue = EditorGUILayout.TagField(m_property.stringValue);
                }
                GUILayout.EndHorizontal();
                m_property = m_State.FindProperty("distanceToTargetThreshold");
                EditorGUILayout.PropertyField(m_property, distanceToTargetThresholdContent);

                break;

            case FleeMode.FixedTarget:
                m_property = m_State.FindProperty("fleeToTarget");
                EditorGUILayout.PropertyField(m_property);
                m_property = m_State.FindProperty("distanceToTargetThreshold");
                EditorGUILayout.PropertyField(m_property, distanceToTargetThresholdContent);

                break;

            case FleeMode.Direction:
                m_property = m_State.FindProperty("fleeDirection");
                EditorGUILayout.PropertyField(m_property);
                m_property = m_State.FindProperty("stopFleeDistance");
                EditorGUILayout.PropertyField(m_property);

                break;

            case FleeMode.AwayFromNearestTaggedObject:
                m_property = m_State.FindProperty("stopFleeDistance");
                EditorGUILayout.PropertyField(m_property);

                break;
            }

            EditorGUILayout.Separator();
            GUILayout.BeginHorizontal();
            {
                GUILayout.Label("Flight Ended Transition:");
                m_property = m_State.FindProperty("flightEndedState");
                m_property.objectReferenceValue = AIBehaviorsStatePopups.DrawEnabledStatePopup(stateMachine, m_property.objectReferenceValue as BaseState);
            }
            GUILayout.EndHorizontal();

            // "distanceToTargetThreshold" and "stopFleeDistance" can't be less than 0
            m_property = m_State.FindProperty("distanceToTargetThreshold");
            if (m_property.floatValue < 0.0f)
            {
                m_property.floatValue = 0.0f;
            }
            m_property = m_State.FindProperty("stopFleeDistance");
            if (m_property.floatValue < 0.0f)
            {
                m_property.floatValue = 0.0f;
            }

            GUILayout.EndVertical();

            m_State.ApplyModifiedProperties();
        }