Hi,
So, first of all, your five variables windUpTimer_cur, castPowerNormalized, castDirEulerY, castTimer, in_act_loop_prevVal don't need to be synced between players, or rather, other players don't need to know them. Keep them client side.
Then, functions hooked to HOOK_BEFORE_MARIO_UPDATE and...