Dynamics of a classical gas including dissipative and mean-field effects