A lot of these shootings have a jealousy or desire to see someone else hurt element. When these people say they “just wanted to end it all” or some such what they mean is “I wanted to hurt others and make them suffer while not facing the consequences”.