TL;DR:
Lags, packet loss, and problems registering hits in CS2 are most often associated with an unstable internet connection, incorrect game settings, or server selection. To quickly improve the situation, restart the router and computer, connect via cable, close the background programs, configure rate, cl_updaterate, cl_cmdrate, and