It works the other way, the shooter position is fixed as well as your position. Your are allowed to place a finite amount of blockers to make your position safe. The video comment say that it is always possible to make your place safe with at most 16 blockers.
There is a link to the actual code used.
You could try projecting rays from start through the obstacles to see where they intersect after a limited number of reflections. This should narrow it to a few candidate spots
The posted solution seems to work even when the objects have zero area, and are just points in space. If you just surrounded the target with 16 points, there would either be gaps or the points would be infinitesimally close to the target and would occupy the same space.
So that means that any possible laser coming out of the shooter's position eventually passes through one of these 16 specific infinitesimally small points _before_ ever hitting the target? And that is always possible for any position of shooter and target? That's bonkers, wow.
Both person and obstacles are meant to be infinitesimally small, i.e. points with mass zero, which makes one really appreciate the beauty of the solution.
This way allow you to hide. A tight group of obstacles will give away your position and it will be demolished with a bazooka. Though an attacker might calculate the possible location of your body and use a grenade. But it might be unsafe for himself.