Does anyone know how to keep wall based collision behaviour with
cam_collision 1 in thirdperson but have it not trigger on non-solid players (either with
mp_solid_teammates 0 or with a plugin that changes collision groups of all players)?
Game is for CSGO.
Basically the problem is i'm using a plugin to have non-solid players so they can walk through each other. I also allow thirdperson to be used. With
cam_collision 1 when you back up to a wall with thirdperson it moves the camera distance (camera offset) closer to you so you don't see behind walls. However, it sets the camera offset dist to 0 when you stack with another player.
I basically would like to make it ignore players for this.
Some SDK code:
https://github.com/ValveSoftware/sou...camera.cpp#L34
https://github.com/ValveSoftware/sou...amera.cpp#L545
Any ideas?
Idea 1: Turn off cam_collision and reimplement the behaviour in a plugin. Possibly using tracerays to see if you are hitting a wall (but ignoring players?).
__________________