reznok / GMCAbilitySystem

An Unreal Engine plugin that adds an ability system to the General Movement Component plugin
MIT License
27 stars 12 forks source link

Periodic effects don't tick correctly when first applied or after paused #80

Open monodop opened 1 month ago

monodop commented 1 month ago

I had a couple observations while looking at effect periods:

First delayed PeriodTick is incorrect

The first PeriodTick (not including the one called from PeriodTickAtStart) will happen at an arbitrary point between 0 seconds and the defined period depending on what the initial mod value for ActionTimer is. For example: with a period of 10 seconds, the first PeriodTick could occur immediately, at 10 seconds, or anywhere between.

PausePeriodicEffect unexpected behavior

Pausing the period with the PausePeriodicEffect tag does not actually pause the period, it only disables PeriodTicks. Intuitively, it seems like pausing the effect should also pause the timer. For example: