Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Caitlyn KS by HeX ]]--
- local qp = TargetPrediction(1300, 2.2, 641)
- function OnLoad()
- PrintChat("<font color='#CCCCCC'> >> Caitlyn KS loaded! <<</font>")
- CKConfig = scriptConfig("CaitKS Config", "CaitKSConfig")
- CKConfig:addParam("FireQ", "Fire Q", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- CKConfig:addParam("autoUlt", "Ult when killable", SCRIPT_PARAM_ONKEYTOGGLE, true, 90)
- CKConfig:permaShow("FireQ")
- CKConfig:permaShow("autoUlt")
- ts = TargetSelector(TARGET_LOW_HP, 1400, DAMAGE_PHYSICAL)
- ts.name = "Caitlyn"
- CKConfig:addTS(ts)
- end
- function OnTick()
- ts:update()
- if CKConfig.FireQ and ts.target ~= nil then
- predic = qp:GetPrediction(ts.target)
- if predic ~= nil and myHero:CanUseSpell(_Q) == READY and GetDistance(predic) <= 1300 then
- CastSpell(_Q, predic.x, predic.z)
- end
- end
- if CKConfig.autoUlt then
- local rDmg = 0
- if myHero:CanUseSpell(_R) == READY then
- for i = 1, heroManager.iCount, 1 do
- local target = heroManager:getHero(i)
- if ValidTarget(target) then
- rDmg = getDmg("R", target, myHero)
- if target ~= nil and target.team ~= myHero.team and not target.dead and target.visible and GetDistance(target) <= 3000 and target.health < rDmg then
- CastSpell(_R, target)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment