could you just make a halfpipe level instead of trying to get it to work as part of the coc level
u could even just put it going horizontal like the quarter pipe and maybe have a speed boost or somthing cary u to the next quarter pipe above
hope this is understandable and that the code could work and please give it a try