Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GameMode:OnAbilityUsed(keys)
- print('[BAREBONES] AbilityUsed')
- DeepPrintTable(keys)
- local player = EntIndexToHScript(keys.PlayerID)
- local abilityname = keys.abilityname
- local caster = EntIndexToHScript(keys.caster_entindex)
- if GetMapName() == "roshdef_turbo" then
- if abilityname == "item_ultra_boots" or abilityname == "item_travel_boots_2" or abilityname == "item_travel_boots" then
- for i=0,8 do
- local item = caster:GetItemInSlot( i )
- local item_name = ""
- if item then item_name = item:GetAbilityName() end
- -- print ("item = "..item_name)
- if item and item_name == abilityname then
- Timers:CreateTimer(0.1,function()
- item:EndCooldown()
- item:StartCooldown(item:GetCooldown(0)/2)
- end)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement