ommmmmmm / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 1 forks source link

Super fast moonwalking vampire #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by Loobinex on 1 Mar 2014 at 10:36

Attachments:

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

The acceleration should be zeroes in process_thing_spell_effects().

Original comment by mefistotelis on 3 Mar 2014 at 11:22

GoogleCodeExporter 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.

Original comment by mefistotelis on 4 Mar 2014 at 8:39

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

Original comment by mefistotelis on 4 Mar 2014 at 10:15