Create gravity for a PAWN + jump

Hello,
We need to have a pawn as player in order to get very specific collisions on the player istead of the capsule inside the character component that can’t be modified.
So we had to recreate all movement ouserlves but right now the only thing that is not working correctly is gravity. The pawn need to be on the ground and also need to jump.
So far it’s been 1 year and we haven’t found any good solution. For now we use an ulgy way to apply a gravity to it that we found in some 5 years old post… it’s ugly, doesn’t work well, when it move on the ground it stop on every tile of the ground…
I managed to make it jump properly by simulating a IsFalling function like this

IsFalling
so basically it can jump if linetrace find something 1cm under the pawn, otherwise it mean is falling.
But now we need proper gravity. How can i give good and clean gravity to a pawn that haven’t any at the beggining ? I don’t want to show you our actual gravity system as it is ulgy and messy.
Thanks much for the savior who will give us the solution !