Feature Request For Ogre Move / Hunt

lumbercrack

Member
Hello,

I have a feature request that I feel would be extremely useful.

When moving (via move, or via the auto hunt which I guess uses the same move code) and suffering a knockback, the character will attempt to run in a straight line to the last point they were at when moving - even when the area the character is knocked back to has been mapped out and has navigation points available. This causes issues when being knocked over an object, or down a ledge that is not possible to simply run back up. The result is that movement ends and manual intervention is required.

I feel that the following solution would fix it?

When a character is unexpectedly moved out of the mapped area (except for harvesting, moving to melee range, etc.) then the character should look for the nearest navigation point that linked to their existing path, and make their way to that point, instead of running in a straight line back to the last point they were at.

Thanks.
 

Kannkor

Ogre
This is a good idea. You should post it on The Forge under Ogrebot (There is a link in the top left'ish of these forums to The Forge).

Unfortunately with the way the nav lib is set up, it isn't a small task. For simplicity sake, it currently works like this: When it hits a point on the map, it advances to the next point. It does this until it gets to where it's going. It's not a small change.

There are also some considerations to be made. Any time the existing behavior is going to be changed, I try to consider all existing uses/scripts/etc. For example:
Right now, it takes you directly to the current point it's trying to get too. If we change it to get a new path, are we trying to get a new path to get back to that random point? Or are we going to update the path to our actual destination?
Both of these answers have complications. Some of these can be mitigated by making all 3 of them options. However, that doesn't work for the simplistic scripts. For example: ogre move ____. Sure flags can be added -something or -somethingelse), but then you lose the ease of just remembering "move".

The good news is, I was working on a full rewrite of the entire nav lib. And I nearly got it finished then I had to put it on hold for another project (actually an xpac launched). When I get back to it, I'll see if I can incorporate something like this into it.
 
Top Bottom