Changing the physics of shooting

Hello. I am writing here with a well-known problem - this is a murder behind the wall. The fact is that when 2 players are shooting and one of them goes behind cover, sometimes it turns out that at the moment when he goes behind a wall, doors or other shelters, he dies from the bullet of the player with whom the shootout. All this lasts for seconds or milliseconds. This problem makes the game very uncomfortable for both me and the rest of the players, as most players leave crossfire for this reason. I hope that this problem will be solved soon.