An ability to lock mouse view

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

Moderator: GZDoom Developers

User avatar
PillowBlaster
Posts: 919
Joined: Sun Jan 24, 2010 2:55 pm
Contact:

An ability to lock mouse view

Post by PillowBlaster »

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
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: An ability to lock mouse view

Post by Caligari87 »

Have you looked at PROP_TOTALLYFROZEN? Sounds like that's what you want. [wiki]SetPlayerProperty[/wiki]
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?
8-)
Post Reply

Return to “Feature Suggestions [GZDoom]”