R1 determines the current limit.thank you. How did you calculate the resistors' values?
It's ap;prox. 0.7V/I where I is the desired current limit.
R2 supplies the base current to Q2.
I just selected a value that seemed to work well in the simulation.