Quantity competition, endogenous motives and behavioral heterogeneity