Loobinex / keeperfx-unofficial

KeeperFX - Unofficial release
60 stars 7 forks source link

Instances take too long to reset #134

Closed Loobinex closed 4 years ago

Loobinex commented 4 years ago

A bug has been introduced in https://github.com/Loobinex/keeperfx-unofficial/commit/fa386f2bd924e93dfc6f285fc358fe12ab690c90 (new) and/or https://github.com/Loobinex/keeperfx-unofficial/commit/d43abd619626582842ffb6d2739931e2d2933fd1 (old) which causes attacks to go significantly slower than before.

To easily test change the values of [instance1] SWING_WEAPON_SWORD in the creature.cfg to: FPTime = 200 (10 seconds) FPActionTime = 100 (5 seconds) FPResetTime = 200 (10 seconds)

Start a new game with these values and possess an imp. Use the attack, this is what should happen: at 5 seconds - Attack sound+damage at 10 seconds - Attack animation finished. Attack Bar starts to fill. at 20 seconds - Attack bar full, possible to attack again.

What really happens: at 5 seconds - Attack sound+damage at 10 seconds - Attack animation finished. Attack Bar starts to fill. at 20 seconds - Attack Bar starts to fill. at 25 seconds - Attack bar full, possible to attack again.

This means a delay as long as the action time in attacks.