An ability to lock mouse view

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

An ability to lock mouse view

Postby PillowBlaster » Sun Jan 13, 2019 1:04 pm

More often than not I find myself in a situation where we need something akin to PROP_FROZEN, except for mouse. I have quick access context menus where we want to make the player still able to move around but lock the screen. Constantly setting pitch/angle is kinda dirty, and it also leads to occasional jitters, especially visible in multiplayer. Can we have some more elegant way to do that, or at least point us at a sensible way to do so, if there's already functionality for that matter?
User avatar
Grump incarnate
Joined: 24 Jan 2010

Re: An ability to lock mouse view

Postby Caligari87 » Sun Jan 13, 2019 1:33 pm

Have you looked at PROP_TOTALLYFROZEN? Sounds like that's what you want. SetPlayerProperty
EDIT: Didn't see the "while still allowing movement part, nevermind.

My thought is that this may become unnecessary once the current scriptifiation and class extensibility project is complete. Theoretical "universal" example that nullifies just pitch/yaw at the source and wouldn't require a custom playerclass:

Spoiler: "This should work in the near future, right?"

User avatar
I'm just here for the community
User Accounts Assistant
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests