A man will face court on allegations he murdered a friend after being taken to hospital with injuries from a rooftop stand-off with police.