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

Simple Waypoint/Path Lib thingy dunno


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

#1
Maxxxel

Maxxxel

    The One

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

Download: Click Me
 
API:

Init the Script: 
        require 'Pathing'
	Path:__init(range)
	range[number]: Range in which all units waypoints are tracked (25000 if unset)
Get Path of a Unit
	Path:GetData(unit)
	unit[object]: The object u want to get the Data from
	==> returns table holding: index, position, dashgravity, dashspeed ({} if no Data)
	==> #Path:GetData(unit): returns number of Waypoints saved for that unit
	table structure: GetData(unit) = {
		[waypoint.index] = {position, dashgravity, dashspeed}
	}
Get Position of unit after time x
	Path:GetPositionAfter(unit, time)
	unit[object]: The object u want to get the Data from
	time[number]: In Seconds
	==> returns unit position after given time as 3D coordinate (unit.pos if no waypoint)
	==> DrawCircle will show it very nicely

Example:

require 'Pathing'

Path:__init(1000)

OnDraw(function(myHero)
	DrawCircle(Path:GetPositionAfter(myHero, .75), 40, 0, 1, GoS.Red)
end)

As i overwrote my Source ( xD ) i will rewrite it if neccessary, but for now i like it as it is


  • -1

#2
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

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

Hi, gj

 

Dont think that should be encrypted tbh.


  • 0

#3
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

When CalcPath Keepo


  • 0

#4
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon

Hi, gj

 

Dont think that should be encrypted tbh.

you dont think anything should be encrypted :fappa:


  • 0

#5
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

gos://lolhttps://raw.githubusercontent.com/Maxxxel/GOS/master/Common/Utility/Pathing.lua

 

Should be

 

gos://lolraw.githubusercontent.com/Maxxxel/GOS/master/Common/Utility/Pathing.lua

  • 0

#6
Maxxxel

Maxxxel

    The One

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

When CalcPath Keepo


Tell me what it does
 
 

gos://lolhttps://raw.githubusercontent.com/Maxxxel/GOS/master/Common/Utility/Pathing.lua
 
Should be
 
 
gos://lolraw.githubusercontent.com/Maxxxel/GOS/master/Common/Utility/Pathing.lua


Why?
  • 0

#7
Maxxxel

Maxxxel

    The One

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

Hi, gj
 
Dont think that should be encrypted tbh.


It is the right of every Dev to enc his Stuff, if u dont like it dont use it :P
if u have questions ask em and i answer em :)
  • 0

#8
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

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

It is the right of every Dev to enc his Stuff, if u dont like it dont use it :P
if u have questions ask em and i answer em :)

i did that path time ago anyway xD


  • 0

#9
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

Tell me what it does
 
 

Why?

 

bcs for some ppl this install link doesn't work. Don't know the reason shrug

 

CalcPath calculates the Path of a unit to a point without ordering the move.


  • 0

#10
Maxxxel

Maxxxel

    The One

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

bcs for some ppl this install link doesn't work. Don't know the reason shrug

CalcPath calculates the Path of a unit to a point without ordering the move.


Ahhhh, i guess its do-able like, with my mappos and the things i did in Flash utility. Do you want me to do it?
  • 0

#11
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

Ahhhh, i guess its do-able like, with my mappos and the things i did in Flash utility. Do you want me to do it?

 

It would be a pathfinding around creeps and terrain. I don't think you can do that without ****ing the fps up xD


  • 0

#12
Maxxxel

Maxxxel

    The One

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

It would be a pathfinding around creeps and terrain. I don't think you can do that without ****ing the fps up xD


-minions are just small factor if u look at waypoints trough them
-terrain is easy

so

Path:GetPath(unit, posA, posB)
==> returns possibleWaypoints {[WayPoint.index] = position}

?
  • 0

#13
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

-minions are just small factor if u look at waypoints trough them
-terrain is easy

so

Path:GetPath(unit, posA, posB)
==> returns possibleWaypoints {[WayPoint.index] = position}

?

 

:nod:

 

A* Method?


  • 0

#14
Maxxxel

Maxxxel

    The One

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

:nod:

A* Method?


Hm?
  • 0

#15
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon

hmmmmmm, steve tells me he already did a get path, and here you are releasing one, coinsidence? i think not, thus i conclude that steve and maxxxel are 1 in the same

also iv never seen you both online at the same time


  • 0

#16
Maxxxel

Maxxxel

    The One

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

hmmmmmm, steve tells me he already did a get path, and here you are releasing one, coinsidence? i think not, thus i conclude that steve and maxxxel are 1 in the same
also iv never seen you both online at the same time


Deftsu got killsteal in his scripts, wait what?! Me 2!!

Damn i need to be Deftsucuk
  • 0

#17
Deftsu

Deftsu

    donthackourgames

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

hmmmmmm, steve tells me he already did a get path, and here you are releasing one, coinsidence? i think not, thus i conclude that steve and maxxxel are 1 in the same
also iv never seen you both online at the same time


Doge
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users