Advertisement
Musti145

Untitled

Sep 20th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. ThreshMenu = Menu("Thresh", "Thresh:")
  2. ThreshMenu:SubMenu("Combo", "Combo")
  3. ThreshMenu.Combo:Boolean("Q", "Use Q", true)
  4. ThreshMenu.Combo:Boolean("W", "Use W at 75% HP of ally", true)
  5. ThreshMenu.Combo:Boolean("E", "Use E", true)
  6. ThreshMenu.Combo:Boolean("R", "Use R", true)
  7.  
  8.  
  9.  
  10. OnLoop(function(myHero)
  11. if IOW:Mode() == "Combo" then
  12.  
  13. local target = GetCurrentTarget()
  14. if GoS:ValidTarget(target, 1100) then
  15.  
  16. local QPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1900,500,1100,70,true,true) -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  17.  
  18. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and ThreshMenu.Combo.Q then
  19. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  20. end
  21.  
  22. if ThreshMenu.Combo.W:Value() then
  23. for _, ally in pairs(GoS:GetAllyHeroes()) do
  24. local WPred = GetPredictionForPlayer(GoS:myHeroPos(),ally,GetMoveSpeed(ally),3300,250,950,90,false,true)
  25. local AllyPos = GetOrigin(ally)
  26. local mousePos = GetMousePos()
  27. if (GoS:GetDistance(ally, target) > 600) then
  28. if (GetCurrentHP(ally)/GetMaxHP(ally))<0.75 and
  29. CanUseSpell(myHero,_W) and IsObjectAlive(ally) then
  30. CastSkillShot(_W,WPred.PredPos.x, WPred.PredPos.y, WPred.PredPos.z)
  31. else
  32. MoveToXYZ(mousePos.x, mousePos.y, mousePos.z)
  33. end
  34. end
  35. end
  36.  
  37.  
  38. local EPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1875,250,400,55,false,true)
  39. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 and ThreshMenu.Combo.E then
  40. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  41. end
  42.  
  43.  
  44. local RPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),0,250,450,55,false,true)
  45. if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 and ThreshMenu.Combo.R then
  46. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  47. end
  48. end
  49. end
  50. end
  51. end)
  52.  
  53. PrintChat("Deep Terror Thresh by Musti")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement