JohnnyGuitarNVSE icon indicating copy to clipboard operation
JohnnyGuitarNVSE copied to clipboard

Change rounding behaviour in HandleAVChangeEvent

Open WalkerMx opened this issue 11 months ago • 2 comments

The HandleAVChangeEvent code uses rounding currently. I've noticed, this means that the actual events fire at half-steps, when the Actor Value crosses the rounding threshold.

I would propose using the floor function instead, so that the event fires on integer steps rather than half-steps.

The behaviour would change as follows:

Current Method: Previous: [13.45] - New [13.55] <--- Event Fires Here

Proposed Change: Previous: [13.95] - New [14.05] <--- Event Fires Here

WalkerMx avatar Jul 25 '23 04:07 WalkerMx