public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Annie.Q.IsReady() && target.IsValidTarget(Annie.Q.Range)) { Annie.Q.Cast(target); } if (Annie.W.IsReady() && target.IsValidTarget(Annie.W.Range)) { Annie.W.Cast(target); } if (Annie.R.IsReady() && target.IsValidTarget(Annie.R.Range) && target.CountEnemiesInRange(290) >= 2 && _Player.HasBuff("Energized")) { Annie.R.Cast(target); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (DrMundo.Q.IsReady() && target.IsValidTarget(DrMundo.Q.Range)) { DrMundo.Q.Cast(target); } if (DrMundo.W.IsReady() && target.IsValidTarget(DrMundo.W.Range) && _Player.HealthPercent >= 90 && !_Player.HasBuff("BurningAgony")) { DrMundo.W.Cast(); } if (DrMundo.W.IsReady() && target.IsValidTarget(DrMundo.W.Range) && _Player.HealthPercent <= 20 && _Player.HasBuff("BurningAgony")) { DrMundo.W.Cast(); } if (DrMundo.R.IsReady() && target.IsValidTarget(DrMundo.R.Range) && _Player.CountEnemiesInRange(DrMundo.R.Range) >= 2 && _Player.HealthPercent <= 25) { DrMundo.R.Cast(); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Ezreal.Q.IsReady() && target.IsValidTarget(Ezreal.Q.Range)) { Ezreal.Q.Cast(target); } if (Ezreal.W.IsReady() && target.IsValidTarget(Ezreal.W.Range)) { Ezreal.W.Cast(); } if (Ezreal.R.IsReady()) { var targetR = TargetSelector.GetTarget(Ezreal.R.Range, DamageType.Physical); if (targetR == null) { return; } if (target.IsValidTarget(Ezreal.R.Range) && target.Health <= _Player.GetSpellDamage(target, SpellSlot.R)) { Ezreal.R.Cast(target); } } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Ahri.E.IsReady() && target.IsValidTarget(Ahri.E.Range)) { Ahri.E.Cast(target); } if (Ahri.Q.IsReady() && target.IsValidTarget(Ahri.Q.Range)) { Ahri.Q.Cast(target); } if (Ahri.W.IsReady() && target.IsValidTarget(Ahri.W.Range)) { Ahri.W.Cast(target); } if (Ahri.R.IsReady() && target.IsValidTarget(Ahri.R.Range) && Helper.Player.CountEnemiesInRange(Ahri.Q.Range) <= 2 && target.HealthPercent <= 30 && ComboWinPrediction.Calculate() <= 70) { Ahri.R.Cast(target); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Caitlyn.Q.IsReady() && target.IsValidTarget(Caitlyn.Q.Range)) { Caitlyn.Q.Cast(target); } if (Caitlyn.W.IsReady() && target.IsValidTarget(Caitlyn.W.Range) && target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare)) { Caitlyn.W.Cast(target); } if (Caitlyn.R.IsReady()) { var targetR = TargetSelector.GetTarget(Caitlyn.R.Range, DamageType.Physical); if (targetR == null) { return; } if (target.IsValidTarget(Caitlyn.R.Range) && target.Health <= _Player.GetSpellDamage(target, SpellSlot.R)) { Caitlyn.R.Cast(target); } } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Corki.Q.IsReady() && target.IsValidTarget(Corki.Q.Range)) { Corki.Q.Cast(target); } if (Corki.E.IsReady() && target.IsValidTarget(Corki.E.Range) && _Player.IsFacing(target)) { Corki.E.Cast(); } if (Corki.R.IsReady()) { var targetR = TargetSelector.GetTarget(Corki.R.Range, DamageType.Physical); if (targetR == null) { return; } if (target.IsValidTarget(Corki.R.Range) && _Player.ManaPercent >= 50) { Corki.R.Cast(target); } } }
protected override void OnGuide() { base.OnGuide(); if (_highlighting && GetTarget) { Collider collider = GetTarget.GetComponent <Collider>(); if (collider && collider.enabled) { switch (Main.m_TaskMaster.GuideHighlighting) { case MouseRay.HighlightingType.Normal: GetTarget.OpenHighLight(Main.m_TaskMaster.NormalColor); break; case MouseRay.HighlightingType.Flash: GetTarget.OpenFlashHighLight(Main.m_TaskMaster.FlashColor1, Main.m_TaskMaster.FlashColor2); break; case MouseRay.HighlightingType.Outline: GetTarget.OpenMeshOutline(Main.m_TaskMaster.NormalColor, Main.m_TaskMaster.OutlineIntensity); break; } } } }
public virtual bool Fire(GetTarget targetFunc) { if (!reloading) { if (!OnCooldown) { if (Magazine > 0) { for (int i = 0; i < ProjectilesPerShot; ++i) { Vector3 bulletEndPos = targetFunc(); bulletEndPos += ((isAimed) ? AimedSpread : Spread) * Random.insideUnitSphere; BaseProjectile nProjectile = Instantiate <BaseProjectile>(Resources.Load <BaseProjectile>("Projectiles/" + BulletType.ToString())); nProjectile.transform.position = Muzzle.position; nProjectile.transform.LookAt(bulletEndPos); nProjectile.SetUpProjectile(MuzzleVelocity, Damage); } FiredGun(); return(true); } else { Reload(); } } } return(false); }
protected override void InitSerialized() { base.InitSerialized(); showDisplayTimer = false; TextTarget = GetTarget.FindProperty("clickablePages"); ExitConditionTarget = GetTarget.FindProperty("exitCondition"); ExitButtonTarget = GetTarget.FindProperty("exitObject"); }
public void GetDouble(GetTarget pname, double[] param) { if (param == null || param.Length > HeapData.GetDoubleMaxSize) { throw new ArgumentException("Array has to many elements."); } Marshal.Copy(param, 0, HeapData.ptrGetDouble, param.Length); GetDoublev(pname, HeapData.ptrGetDouble); Marshal.Copy(HeapData.ptrGetDouble, param, 0, param.Length); }
public void GetInteger(GetTarget pname, int[] param) { if (param == null || param.Length > HeapData.GetIntegerMaxSize) { throw new ArgumentException("Array has to many elements."); } Marshal.Copy(param, 0, HeapData.ptrGetInteger, param.Length); GetIntegerv(pname, HeapData.ptrGetInteger); Marshal.Copy(HeapData.ptrGetInteger, param, 0, param.Length); }
public void TexImage2D( GetTarget target, int level, PixelDataFormat internalformat, int width, int height, int border, PixelDataFormat format, byte[] pixels) { if (pixels == null || pixels.Length > HeapData.TexImage2DbvMaxSize) { throw new ArgumentException("Array has to many elements."); } //IntPtr ptr = Marshal.AllocHGlobal(sizeof(byte) * 2048); Marshal.Copy(pixels, 0, HeapData.ptrTexImage2Dbv, pixels.Length); texImage2D(target, level, internalformat, width, height, border, format, IndexesDataType.UNSIGNED_BYTE, HeapData.ptrTexImage2Dbv); }
private void CheckInstantSpells() { float facingAngle = GetTarget.Direction.To2D().Perpendicular().AngleBetween(me.Direction.To2D().Perpendicular()); bool isRunningAway = facingAngle < 25; if (!RivenMenu.Combo["burstKey"].Cast <KeyBind>().CurrentValue&& Spells.E.IsReady() && Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo && RivenMenu.Combo["EGap"].Cast <CheckBox>().CurrentValue) { if (Prediction.Position.PredictUnitPosition(GetTarget, Spells.E.CastDelay).Distance(me) < Spells.E.Range + me.GetAutoAttackRange() && GetTarget.Distance(me) > me.GetAutoAttackRange()) { Spells.ForceE(GetTarget.Position.To2D()); } } else if (!RivenMenu.Combo["burstKey"].Cast <KeyBind>().CurrentValue&& Spells.Q.IsReady() && !Spells.E.IsReady() && Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo && RivenMenu.Combo["QGap"].Cast <CheckBox>().CurrentValue) { if (Farming.GetQCone().IsInside(Prediction.Position.PredictUnitPosition(GetTarget, Spells.Q.CastDelay)) && GetTarget.Distance(me) > me.GetAutoAttackRange() && isRunningAway) { Spells.ForceQ(GetTarget.Position.To2D()); } } else if (isRunningAway && RivenMenu.Combo["QGap"].Cast <CheckBox>().CurrentValue&& RivenMenu.Combo["EGap"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() && Spells.E.IsReady() && Prediction.Position.PredictUnitPosition(GetTarget, Spells.E.CastDelay).Distance(me) > Spells.E.Range + me.GetAutoAttackRange() && Prediction.Position.PredictUnitPosition(GetTarget, Spells.E.CastDelay + Spells.Q.CastDelay) .Distance(me) <= Spells.Q.Range + Spells.E.Range + me.GetAutoAttackRange()) { Spells.ForceE(GetTarget.Position.To2D()); Core.DelayAction(Spells.ForceQ, Spells.E.CastDelay); } bool laneClear = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, me.Position, 750).Any() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear); if (RivenMenu.Combo["InstaW"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() && !laneClear) { var pred = Prediction.Position.PredictUnitPosition(GetTarget, Spells.W.CastDelay /*+ 250*/); if (pred.Distance(Player.Instance) <= Spells.W.Range) { Spells.ForceItem(); Core.DelayAction(Spells.ForceW, 250); } } }
public void GetBoolean(GetTarget pname, bool[] param) { byte[] v = param.Select(x => x ? (byte)1 : (byte)0).ToArray(); if (param == null || param.Length > HeapData.GetBooleanMaxSize) { throw new ArgumentException("Array has to many elements."); } Marshal.Copy(v, 0, HeapData.ptrGetBoolean, v.Length); GetBooleanv(pname, HeapData.ptrGetBoolean); Marshal.Copy(HeapData.ptrGetBoolean, v, 0, v.Length); for (int i = 0; i < param.Length; i++) { param[i] = v[i] != 0; } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) return; if (Akali.Q.IsReady() && target.IsValidTarget(Akali.Q.Range)) { Akali.Q.Cast(target); } if (Akali.E.IsReady() && target.IsValidTarget(Akali.E.Range)) { Akali.E.Cast(); } if (Akali.R.IsReady() && (target.IsValidTarget(Akali.R.Range) && target.CountEnemiesInRange(700) <= 2) { Akali.R.Cast(target); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Amumu.Q.IsReady() && target.IsValidTarget(Amumu.Q.Range) && target.CountEnemiesInRange(Amumu.Q.Range) <= 2) { Amumu.Q.Cast(target); } if (Amumu.E.IsReady() && target.IsValidTarget(Amumu.E.Range)) { Amumu.E.Cast(); } if (Amumu.W.IsReady() && target.IsValidTarget(Amumu.W.Range) && _Player.ManaPercent >= 30 && !_Player.HasBuff("AuraofDespair")) { Amumu.W.Cast(); } if (Amumu.W.IsReady() && !target.IsValidTarget(Amumu.W.Range) && _Player.ManaPercent <= 30 && _Player.HasBuff("AuraofDespair")) { Amumu.W.Cast(); } if (Amumu.R.IsReady() && target.IsValidTarget(Amumu.R.Range) && target.HealthPercent <= 50 && _Player.CountEnemiesInRange(Amumu.R.Range) <= 2) { Amumu.R.Cast(); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } var canKill = Player.Instance.CalculateDamageOnUnit( target, DamageType.Magical, Player.Instance.GetSpellDamage(target, SpellSlot.Q)) + Player.Instance.CalculateDamageOnUnit( target, DamageType.Magical, Player.Instance.GetSpellDamage(target, SpellSlot.E)) > target.Health; if (Ryze.Q.IsReady() && target.IsValidTarget(Ryze.Q.Range)) { Ryze.Q.Cast(target); } if (Ryze.W.IsReady() && target.IsValidTarget(Ryze.W.Range)) { Ryze.W.Cast(target); } if (Ryze.E.IsReady() && target.IsValidTarget(Ryze.E.Range)) { Ryze.E.Cast(target); } if (Ryze.R.IsReady() && target.IsValidTarget(Ryze.W.Range) && ((Player.Instance.GetBuffCount("RyzePassiveStack") > 3 || Player.Instance.HasBuff("ryzepassivecharged")) || canKill)) { Ryze.R.Cast(); } }
public async Task <GetTarget> GetTargetForEdit(GetTargetEditInput input) { var output = new GetTarget(); var TenantId = (int)(AbpSession.TenantId); if (input.Id > 0) { var query = _TargetRepository .GetAll().Where(p => p.Id == input.Id).FirstOrDefault(); output.Targets = query.MapTo <CreateTargetInput>(); var Target = new GetAvailableTarget(); try { if (query != null) { input.DateInput = query.ValidityDate; } var details = _TenantTargetRepository.GetAll().Where(a => a.TenantId == TenantId && a.TargetDate.Month == input.DateInput.Month && a.TargetDate.Year == input.DateInput.Year).Select(p => p.Value).FirstOrDefault(); var targetTotal = _TargetRepository.GetAll().Where(a => a.TenantId == TenantId && a.ValidityDate.Month == input.DateInput.Month && a.ValidityDate.Year == input.DateInput.Year).Select(p => p.TargetAmount).Sum(); Target.Totaltarget = details; Target.AvailableTarget = targetTotal; } catch { } output.TargetDetail = Target; } return(output); }
public static void Init() { var target = GetTarget.GetComboTarget(); var turrets = EntityManager.Turrets.Enemies; foreach (var turret in turrets) { if (target != null && target.IsValid && !target.IsDead && !target.IsInAutoAttackRange(turret) && target.Level <= _PlayerClient.Level && ComboWinPrediction.Calculate() > 65) { //ComboWinPrediction still in Beta, and more logic needs to be taken in such as items, gold, position, etc. IsDoingCombo = true; StateManager.DoCombo(); } else { IsDoingCombo = false; } } Game.OnTick += Combo_ComboTickArgs; }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Alistar.W.IsReady() && target.IsValidTarget(Alistar.W.Range)) { Alistar.W.Cast(target); } if (Alistar.Q.IsReady() && Helper.Player.IsDashing()) { Alistar.Q.Cast(); } if (Alistar.E.IsReady() && Helper.Player.ManaPercent >= 30) { var ally = Helper.TeamHeroes.FirstOrDefault(a => a.IsValidTarget(Alistar.E.Range)); if (Helper.Player.HealthPercent <= 30 || ally.HealthPercent <= 30) { Alistar.E.Cast(); } } if (Alistar.R.IsReady()) { var ally = Helper.TeamHeroes.FirstOrDefault(a => a.IsValidTarget(600)); if (target.CountEnemiesInRange(Alistar.E.Range) <= 2 && ally != null) { Alistar.R.Cast(); } } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Teemo.Q.IsReady() && target.IsValidTarget(Teemo.Q.Range)) { Teemo.Q.Cast(target); } if (Teemo.W.IsReady() && target.IsValidTarget(Teemo.W.Range) && !target.IsValidTarget(Teemo.Q.Range)) { Teemo.W.Cast(); } if (Teemo.R.IsReady() && target.IsValidTarget(Teemo.R.Range)) { Teemo.R.Cast(target); } }
public static void Execute() { var target = GetTarget.Target(Blitzcrank.Q.Range, GetDamageType.Get()); if (target == null) { return; } if (Blitzcrank.Q.IsReady() && target.IsValidTarget(Blitzcrank.Q.Range)) { Blitzcrank.Q.Cast(target); } if (Blitzcrank.W.IsReady() && target.IsValidTarget()) { Blitzcrank.W.Cast(); } if (Blitzcrank.R.IsReady() && target.IsValidTarget(Blitzcrank.R.Width)) { Blitzcrank.R.Cast(target); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); var ally = EntityManager.Heroes.Allies.Where( x => !x.IsMe && x.IsValid && !x.IsZombie && x.IsInRange(Player.Instance, Soraka.W.Range) && !x.IsInShopRange()).OrderBy(x => x.HealthPercent).First(); if (Soraka.R.IsReady() && ally.HealthPercent < 20) { Soraka.R.Cast(); } if (Soraka.W.IsReady() && ally.HealthPercent < 70) { Soraka.W.Cast(ally); } if (Soraka.Q.IsReady()) { Soraka.Q.Cast(target); } }
public static void Execute() { var target = GetTarget.GetComboTarget(); if (target == null) { return; } if (Aatrox.Q.IsReady() && target.IsValidTarget(Aatrox.Q.Range) && target.CountEnemiesInRange(Aatrox.Q.Range) <= 2) { Aatrox.Q.Cast(target); } if (Aatrox.E.IsReady() && target.IsValidTarget(Aatrox.E.Range)) { Aatrox.E.Cast(target); } if (Aatrox.W.IsReady() && Helper.Player.HealthPercent <= 60 && Helper.Player.HasBuff("AatroxWPower")) { Aatrox.W.Cast(); } if (Aatrox.W.IsReady() && Helper.Player.HealthPercent >= 90 && !Helper.Player.HasBuff("AatroxWPower")) { Aatrox.W.Cast(); } if (Aatrox.R.IsReady() && target.IsValidTarget(Aatrox.R.Range) && Helper.Player.CountEnemiesInRange(Aatrox.Q.Range) <= 2) { Aatrox.R.Cast(target); } }
private static extern void GetIntegerv(GetTarget pname, IntPtr param);
private static extern void GetDoublev(GetTarget pname, IntPtr param);
private static extern void GetFloatv(GetTarget pname, IntPtr param);
private static extern void GetBooleanv(GetTarget pname, IntPtr param);
public static void GetBoolean(GetTarget pname, byte[] parameters) { GL.GetBooleanv((uint)pname, parameters); }
public static void GetFloat(GetTarget pname, float[] parameters) { GL.GetFloatv((uint)pname, parameters); }
public void GetFloat(GetTarget pname, float[] parameters) { gl.glGetFloatv((int)pname, parameters); }
public double GetDouble(GetTarget pname) { double[] parameters = new double[1]; GetDouble(pname, parameters); return parameters[0]; }
public void GetDouble(GetTarget pname, double[] parameters) { gl.glGetDoublev((int)pname, parameters); }
public bool GetBoolean(GetTarget pname) { int[] parameters = new int[1]; GetBoolean(pname, parameters); return (parameters[0]==1); }
public float GetFloat(GetTarget pname) { float[] parameters = new float[1]; GetFloat(pname, parameters); return parameters[0]; }
public void GetInteger(GetTarget pname, int[] parameters) { gl.glGetIntegerv((int)pname, parameters); }
public int GetInteger(GetTarget pname) { int[] parameters = new int[1]; GetInteger(pname, parameters); return parameters[0]; }
public static void GetDouble(GetTarget pname, double[] parameters) { GL.GetDoublev((uint)pname, parameters); }
public static void GetInteger(GetTarget pname, int[] parameters) { GL.GetIntegerv((uint)pname, parameters); }
public void GetBoolean(GetTarget pname, int[] parameters) { gl.glGetBooleanv((int)pname, parameters); }