You've already checked info.EjectInAir / EjectInGround above, so you can simplify these checks to:
`if (cp.Z > 0)` and `else`.