-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to find out whether a player is sneaking or not #126
Comments
Sneaking is a pretty MC specific thingy. |
Games which don't support sneaking can just have it set to false all the time... |
oh yeah that's true, in that case it doesn't need to be a plugin at all. |
and a way to see if the game support it, we could have an enum for sneaking, not sneaking and not supported... this could be a generic enum too... or just |
+1 to |
|
Ok, we are decided |
Just do something like: inputManager.isKeyDown(SHIFT) |
But then i essentially implement this for all voxel engines... |
Noooooo.... Don't rely on specific keybindings seriously! There is NO On Wed, 17 Jun 2015 4:01 pm Halvor Lyche Strandvoll <
|
@calclavia that's a horrible idea... |
inputManager.isKeyDown(keybindManager/or something/.sneakKey) - is a bit better, but still horrible =/ |
Why test for if the sneak key is pressed as opposed to actually seeing if On Wed, 17 Jun 2015 9:14 pm anti344 [email protected] wrote:
|
Say, what would this be used for? I only see sneaking being used as a key bind for giving additional interaction methods, but never with "sneaking" in mind. |
Because it's a more general implementation. Not all games have sneak, but all keyboards have shift. |
you can change the keybinds... |
@RX14 And what? I would make it a key binding as well, why would there be an extra "sneaking" flag? |
The user could have remapped the SHIFT key to something else, statically setting it to SHIFT is not a solution in that matter. |
Because sometimes you actually want to know if a player is sneaking instead of holding shift. Not ALL the time it is used for an extra modifier... |
Yeah. There is reasons why you'd want to know if the player's sneaking. On Wed, 17 Jun 2015 9:21 pm Chris Hobbs [email protected] wrote:
|
Indeed, if he maps the shift key to something else your key binding would also change. That's the thing about key bindings. @gjgfuj What reasons? |
MC Plugin maybe? |
As an example... OpenBlocks elevators. Sneak to go down, jump to go up. On Wed, 17 Jun 2015 9:30 pm Vic Nightfall [email protected] wrote:
|
@gjgfuj Then again, other games might not have it so that you can't rely on it anyways. |
Optional? On Wed, 17 Jun 2015 9:34 pm Vic Nightfall [email protected] wrote:
|
Put this in MC plugin. See NOVA-Team/NOVA-Minecraft#5 |
Add a way to find out whether a player is sneaking or not, this should probatly be a plugin?
Any suggestions?
The text was updated successfully, but these errors were encountered: