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

OpenPredict 0.05a

prediction library

Best Answer jouzuna , 25 January 2016 - 08:15

Updated to 0.05a!

- Added Fog-of-war prediction (for brief time).

- Added member predictInfo.timeToHit.

- Added global _G.OpenPredict_Version.

- GetHealthPrediction now return predicted health and aggro count.

- Fixed Health Prediction (a lot of bugs with previous version due to lack of testing).

- Fixed hit chance for conic spells (dynamic width based on distance & angle).

- Removed auto updater (will send to Feretorix each time I push an update from now).

- Removed _G.OpenPredict_Loaded (replaced with _G.OpenPredict_Version).

 

Example of checking OpenPredict version:

if _G.OpenPredict_Version and _G.OpenPredict_Version == "0.05" then
    -- Do stuff
end

Example of getting aggro count from GetHealthPrediction:

local pHealth, nAggro = GetHealthPrediction(target, 1)
Go to the full post »


  • This topic is locked This topic is locked
76 replies to this topic

#1
jouzuna

jouzuna

    Advanced Member

  • Contributor
  • 73 posts

OpenPredict.png

 

 

OpenPredict is an open-source prediction & collision library for developers to integrate into their scripts.

 

 

Source Code

API Documentation

Changelog

 

Scripts using OpenPredict:

Icy Ryze by Icesythe7

Piercing Arrow - Varus by Zwei

Siphoning Strike - Nasus by Zwei

SxcSAIO by SxcS

Lee Sin The Blind Monk by Cloud

Have a script which isn't listed? Feel free to PM me

 

Frequently Asked Questions:

Q: What causes attempt to index local "vec3"?

A: This is typically caused by passing an invalid unit to any of the prediction functions.

 

Q: For spells such as Twisted Fate's Q, what should I use?

A: The GetConicAOEPrediction is intended to be use for conic spells which don't have projectiles such as Cho'Gath's W. It will also work for spells using projectiles such as Ashe's W as there are a lot of projectiles and more-or-less the whole cone area is covered. With Twisted Fate's Q (or other conic spells where the projectile are spread widely apart) I would recommend using GetLinearAOEPrediction.

 

If you are struggling with the API, have a suggestion or posting a bug - feel free to post below


  • 19

#2
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

PAM Velk with Open Pred Soonâ„¢


  • 0

#3
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

PAM Velk with Open Pred Soonâ„¢

Maths? Doge


  • 0

#4
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

GP with OpenPred soon!


  • 0

#5
jouzuna

jouzuna

    Advanced Member

  • Contributor
  • 73 posts

Updated to 0.02a!
- Accelerated projectile prediction (spellData: .accel, .minSpeed, .maxSpeed).

- Reworked AOE functions, should be far less prone to errors now.

- Changed predictInfo:mCollision and predictInfo:hCollision parameter to integer.

- Improvements to minion manager.

 

Example of acceleration prediction with Ahri's Orb of Deception (Q):

local OrbofDeception = { delay = 0.25, speed = 2500, accel = -3200, minSpeed = 400, width = 100, range = 1000 }
local pI = GetLinearAOEPrediction(unit, OrbofDeception)

Example of collision with Lux's Light Binding (Q):

local LightBinding = { delay = 0.25, speed = 1200, width = 70, range = 1300 }
local pI = GetPrediction(unit, LightBinding)

if not pI:mCollision(2) then
    --
end

  • 1

#6
MaintoRudo

MaintoRudo

    Advanced Member

  • Contributor
  • 167 posts
  • LocationAnimeLandz ^.^

Nice and thank you  :wub:


  • 0

#7
Darkness

Darkness

    GoSDB's manager

  • Banned
  • PipPipPip
  • 1,137 posts

so i add it to gosdb now or...? :fappa:


  • 0

#8
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

so i add it to gosdb now or...? :fappa:

ofc lol


  • 0

#9
Deftsu

Deftsu

    donthackourgames

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

i r8 5/7 m8 Kappa


  • 0

#10
Auxide

Auxide

    Advanced Member

  • Contributor
  • 295 posts

i r8 5/7 m8 Kappa

topkek

 

I will use it for my future AIO, nice! :D


  • 0

#11
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

topkek

 

I will use it for my future AIO, nice! :D

Doge


  • 0

#12
freem4n

freem4n

    Advanced Member

  • Members
  • 152 posts

Kreygasm  Kreygasm  Kreygasm  Kreygasm


  • 0

#13
GNAAAAR

GNAAAAR

    Member

  • Members
  • 22 posts

bugsplat, why?


  • 0

#14
jouzuna

jouzuna

    Advanced Member

  • Contributor
  • 73 posts

bugsplat, why?

fix fast or conflict


  • 0

#15
Icesythe7

Icesythe7

    Forum Manager

  • Contributor
  • 181 posts

Gives him autoupdate even writes it into the script for him doesn't use it even after updating...FeelsBadMan


  • 0

#16
patrickpogi0047

patrickpogi0047

    Advanced Member

  • Members
  • 34 posts
  • LocationEarth

will test!


  • 0

#17
jouzuna

jouzuna

    Advanced Member

  • Contributor
  • 73 posts

Gives him autoupdate even writes it into the script for him doesn't use it even after updating... FeelsBadMan

next update  :ph34r: 


  • 0

#18
MaintoRudo

MaintoRudo

    Advanced Member

  • Contributor
  • 167 posts
  • LocationAnimeLandz ^.^

Prediciton working with minion?


  • 0

#19
OxideSon

OxideSon

    Advanced Member

  • Donator
  • 642 posts

we need more predictions ofc  :wub:


  • 0

#20
jouzuna

jouzuna

    Advanced Member

  • Contributor
  • 73 posts

Prediciton working with minion?

yes it will predict their position, but there is no health prediction yet :(


  • 0





Also tagged with one or more of these keywords: prediction, library

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users