source-sdk-2013
source-sdk-2013 copied to clipboard
Add a new spawnflag to point_viewcontrol to toggle invulnerability of the viewer
This will allow creators to decide whether or not the player is allowed to take damage while using a point_viewcontrol. However, this still creates the issue of the player's current view entity not being reset by default and needs an explicit call for Disable or resetting the view entity back to the player. If pulled in conjunction with my other pull request at #1634, this handling can be done a bit better as it removes the IsAlive check from the Disable function so it could be disabled immediately on death instead of needing to wait until the player has respawned (if they are allowed to).