Supporting this old 2x4 hip roof rafter to the beam
The ideal is a 3-4' scab with the appropriate hip/valley plumb cut and a 45 miter sistered onto the hip rafter and fastened to the beam.
The reality is that almost anything will do--hips usually don't carry much weight and are almost self-supporting, just as a ridge board often is.