I think you're still missing the point. People act morally all the time when they don't have to and they act immorally frequently when it's risky. Risk plays a part, but it doesn't explain heroic acts where people put themselves at great personal risk to help someone, does it?
Here, watch this: