I am so bad at pvp that it's embarrassing

How to improve aim?

Hello - new player here.

I'm pretty good at shooters but my aim in dayZ is absolutely atrocious to the point where I almost lost a lost a day's worth of progress to a fresh spawn with a pipe 💀 (I had a shotgun and a sporter 22)

He was strafing left and right and I couldn't hit him at all so I ended up luring him inside of a house where I could shoot him in a place he couldn't strafe.

Any sensitivity/tips on how to better your aim?