You can very easily select all points and then select only the top/bottoms the manipulate the entire script using https://discuss.eroscripts.com/t/openfunscripter-another-scripting-tool-2-0-0-release/22561/269
ctrl-a
select > bottom points
shift - down arrow until all 0’d
shift - up arrow until all reach 5
After that I’m not sure with OFS. But with python you could then just divide every non-50 position in half.
I haven’t used any of these extension yet but they may be able to achieve the second part.
https://discuss.eroscripts.com/t/my-tools-extension-for-openfunscripter/61434