A dad upset at being made homeless swore at police when a swift intake of alcohol at an outdoors beauty spot went to his head, a court heard.