Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Checking terrain height on a set waypoint

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Punz1A4
Cheater
Reputation: 0

Joined: 10 Jun 2016
Posts: 25

PostPosted: Wed Jun 22, 2016 9:25 pm    Post subject: Checking terrain height on a set waypoint Reply with quote

I was recently playing around with teleport scripts and got stuck on a script that is supposed to teleport me to a waypoint set on a map. The script works, however the waypoint has only two coordinates which don't include terrain height. This leads to teleporting to correct location, just way too high, which in turn leads to death from falling.

Is there a way to check what is the 3rd waypoint coordinate manually? I already tried dissecting data/structures and found nothing useful.

I guess I could make a script that prevents death from falling but it's a workaround I would prefer to use when everything else fails.

In case it changes anything I'm playing around with Assassin's Creed.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Wed Jun 22, 2016 10:22 pm    Post subject: Reply with quote

The waypoint may not have a 3rd coordinate associated with it. If the game tells you your distance away from the waypoint, this is easy to check. Get reasonably close to the waypoint and change your own height without moving in the x/y direction. If the distance away from the waypoint changes, it's storing the height somewhere. If it doesn't change, then you'll have to figure something out yourself.

You can try setting the waypoint at different areas of the map and scanning for changed/unchanged values. If you can't find anything that resembles height, remember that there simply may not be a 3rd coordinate.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 22, 2016 10:40 pm    Post subject: Reply with quote

Two ways that I've used:

1. Disable fall damage/death.
2. Teleport under the map and have your character automatically rise really fast, while incorporating a check for surface contact. Once surface contact is true, stop rising.

The first one is a lot easier, obviously.

Alternatively, if you don't want to do any of those, the absolute easiest way would be to just figure out the coordinate values for all of the key areas and just set a hotkey for each. You don't even need a script in this case.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites