dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
760 stars 78 forks source link

Super fast moonwalking vampire #274

Closed mefistotelis closed 9 years ago

mefistotelis commented 9 years ago

Originally reported on Google Code with ID 274

Unrelated to #197.
Played on r1074, on this map: http://keeper.lubiki.pl/html/dk1_maps_lone.php?start=00321

Load the attached savegame and see a vampire moonwalk super fast into the hatchery,
teleport out and repeat.

Reported by Loobinex on 2014-03-01 22:36:28


mefistotelis commented 9 years ago
Teleported creature has acceleration preserved, which may lead to problems.

The acceleration should be zeroes in process_thing_spell_effects().

Reported by mefistotelis on 2014-03-03 23:22:07

mefistotelis commented 9 years ago
This is more complex than I initially though.

The problem is really in pathfinding system, which either isn't reset after teleportation
or just gives invalid path.

For now, I made a workaround which fixed travelling to far destinations by checking
distance and limiting speed. But this is just a workaround - the Ariadne module should
not return paths which require such speeds.

Reported by mefistotelis on 2014-03-04 20:39:35

mefistotelis commented 9 years ago
I was able to fix it correctly. Should work fine in r1089.

Reported by mefistotelis on 2014-03-04 22:15:55