Source2ZE / CS2Fixes

A Metamod plugin with fixes and features aimed but not limited to zombie escape
GNU General Public License v3.0
252 stars 122 forks source link

[NEED] Thirdperson Toggle Function #324

Open DearCrazyLeaf opened 2 weeks ago

DearCrazyLeaf commented 2 weeks ago

Will third-person switching be added in the future?

DearCrazyLeaf commented 2 weeks ago

@Kxnrl

Vauff commented 2 weeks ago

So, the problem with third-person in CS2 is that the inbuilt command (thirdperson) is missing the server_can_execute flag, this means that servers can't control it on clients, and clients also cannot control it themselves because it also has cheat flag. This means that the only feasible way for third-person to work on a public server in CS2 is a server-side implementation, and unfortunately since it would be only server-side, that also means players mouse movements wouldn't be predicted. This feels bad to play with, and will only get worse the higher ping a player has, because your camera movements being delayed by your ping to the server is very jarring.

With that said, I'm still not entirely against adding it, there can still be a case made for previewing your playermodel or very specific boss attacks, where it helps more than missing prediction hurts. Personally, I see it as lower priority due to this problem though.

Kxnrl commented 2 weeks ago

if we want to introduce this feature, also need to address compatibility with point_viewcontrol. client predication is not a real problem, it works on fys.

Vauff commented 2 weeks ago

client predication is not a real problem, it works on fys.

Interesting, so there's a better method than what https://github.com/UgurhanK/ThirdPerson-WIP does? As far as I know that plugin lacks prediction.

Kxnrl commented 2 weeks ago

client predication is not a real problem, it works on fys.

Interesting, so there's a better method than what https://github.com/UgurhanK/ThirdPerson-WIP does? As far as I know that plugin lacks prediction.

yeah, because it uses Teleport