Okay, this is something I've been trying to do for a long time and still don't even know where to begin. I've been trying to fix Arkshine's Prone Position plugin, where the player's vision can go outside the walls if you crawl up to one and potentially do wallhacks. I think it has something to do with using "usehull" though I'm not sure.
The idea I have is simple: While on prone, the plugin will detect if any walls are nearby within a radius, record which direction the wall/s are from and push the player back away from it. Right, I don't know where to even begin.
I was studying TraceHull but it doesn't seem to have a radius that you could set. The prone plugin seems to make player clipping much smaller so it has to detect the wall a bit of distance away from the player.
Another idea I had is to just detect if the player was outside the map and would just fade his screen black until said player comes back inside, as posted here
(https://forums.alliedmods.net/showthread.php?t=185682). But again, it doesn't work. Probably because burying your head in walls while in prone doesn't count as
being outside since the clipping becomes small...
__________________