Skip to content
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

input magnitude for analog sticks/mobile controls #38

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

popomcnuggets
Copy link

for users with a controller analog stick or mobile thumbstick, allow analog movement instead of always moving at max speed in the given input direction

added command.magnitude
multiply maxspeed by command magnitude
multiply flying maxspeed by command magnitude
@popomcnuggets popomcnuggets changed the title Input magnitude for analog sticks/mobile controls input magnitude for analog sticks/mobile controls Mar 25, 2024
forgot to add a math.min to ensure analog magnitude doesn't exceed 1. muh bad
removed an unnecessary variable
@jLn0n
Copy link

jLn0n commented Jul 16, 2024

what happens when some malicious user modified the cmd.magnitude on :FireServer?

it seems like there is no clamping for cmd.magnitude on the simulation side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants