Use the `hardness` value from the grease pencil tool setting to set the (now called) `softness` attribute of the new stroke.