A complex effective force for heavy-ion collisions