Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

API Suggestion: Animation status

OnAnimation API

  • Please log in to reply
5 replies to this topic

#1
DefinitelyScripting

DefinitelyScripting

    Member

  • Members
  • 21 posts
  • LocationFighting the angel of death.

Hi everyone!

I was wondering if it's possible to add a function to track the animations of certain units.
 
I mentioned this yesturday when making a suggestion on how to make Deftsu's katarina script handle the ultimate better.

 

 

if you have some suggestion please tell me :D, since with buffs, the kata R sound end before ult is finished, which causes a 1.0s~1.5s ult cancel, and using a fixed value fix the problem but if you will get silenced or something you will stand still until 2.5s are done..

 

 

My suggestion would be, instead of tracking katarina's ult using buffs or a fixed timer -- I would find something more reliable to track R.

 

In this case, it would probably be tracking the animation, since the animation stops when katarina gets cced but also stops after the full duration of the ultimate.

 

If I knew the API and lua - I would probably be of more help.

But I'll give you some code to show you the concept.


function OnAnimation(unit, animationName)
    if unit == myHero then
        if animationName == "Spell4" then 
             CastingR = true 
             IOW.movementEnabled = false
             IOW.attacksEnabled = false
        else
             CastingR = false 
             IOW.movementEnabled = true
             IOW.attacksEnabled = true
        end
    end
end

 


  • 0

#2
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

Fere is planning to add it np


  • 0

#3
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

Cast Kata ult, check your status the next 2.5s. If it changes from suppressed, turn on orbwalk again. BUT GIVE ME API!!!!!!  SwiftRage  SwiftRage  SwiftRage  SwiftRage  SwiftRage


  • 0

#4
DefinitelyScripting

DefinitelyScripting

    Member

  • Members
  • 21 posts
  • LocationFighting the angel of death.

Cast Kata ult, check your status the next 2.5s. If it changes from suppressed, turn on orbwalk again. BUT GIVE ME API!!!!!!  SwiftRage  SwiftRage  SwiftRage  SwiftRage  SwiftRage

YASSS GIVE ME API!!!!!!! API is the solution to all of our problems! (But really, Google is the solution).
 

 

On a more serious note, for the katarina ult - correct me if I misinterpreted - but are you suggesting that while she's casting her ultimate, we would check for status effects such as supression, knockup, knockback, charm, fear, polymorph, taunt, silence and stun - then turn on orbwalk when it's detected? (Unless suppressed is a default status meaning there's no cc).

 

If that's the solution, It works - but It might be slower compared to simply checking for the animation status. I think the solution involves too much processing power in comparison.

 

 

Even if that's not the case, I still want the animation tracking :D, just because. #GIVEMEAPI


  • 0

#5
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,134 posts

Thank you for the request, now the dream came true (the same day you requested it).


  • 1

#6
DefinitelyScripting

DefinitelyScripting

    Member

  • Members
  • 21 posts
  • LocationFighting the angel of death.

Thank you for the request, now the dream came true (the same day you requested it).

 

That's amazing :D! Now Deftsu can finally get rid of that casting R with a fixed delay method (without a bruteforce check).

 

Thanks Feretorix!
 


  • 0





Also tagged with one or more of these keywords: OnAnimation, API

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users