Scott Alexander wrote an article [0] on the mild antipsychotic effects of nicotine as the reason why such a high proportion of people battling psychosis smoke cigarettes.
There is the dopamine hypothesis for schizophrenia and new research suggest serotonin also plays a role. Nicotine increases the dopamine in the brain so it sounds like to me smoking would be a form of self medicating.