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

GetPredictionForPlayer


  • Please log in to reply
6 replies to this topic

#1
Lelouch

Lelouch

    ?

  • Members
  • 464 posts

Hi everyone,
I wanted to use this function to make a collision calc for 2 lines. (Vel Koz Q)
The probelm is that if I calc it from the junction point, I have to use myself as target pointer.
It seems like it will only calc the creep collision with my OWN creeps if I do that.
Is this correct or is there a workaround, like creating a fake pointer at the junction pos?

 

Regards Logge


  • 1

#2
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$
U tried entering the Pos instead of GetOrigin(myHero) ?

Pos, target, etc. ..
  • 0

#3
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$
Or you do some hard math.

Or try as a vector too

Or write a simple prediction for the q itself
  • 0

#4
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
make sure its GetOrigin(Object)
  • 0

#5
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$

make sure its GetOrigin(Object)


Normally should work as the prediction just wants a position
  • 0

#6
Lelouch

Lelouch

    ?

  • Members
  • 464 posts
It wants a Pointer for the target and a position. Basically I want to calculate from my Hero to a position.
  • 0

#7
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$

just check for line predition, if out of range/blocked change angle by factor and raise the range by range + factor, if hit chance then check for all positions on the new line for prediction on player, weird dunno xD


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users