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

[Hack] WASD movement #138

Merged
merged 22 commits into from
Sep 6, 2022
Merged

[Hack] WASD movement #138

merged 22 commits into from
Sep 6, 2022

Conversation

afkvido
Copy link
Contributor

@afkvido afkvido commented Aug 11, 2022

This pull request brings WASD movement into Prodigy Math.

  • Only Phasing or movement can be on at the same time (or none)
  • WASD Phasing hack
    • Manually edit the player's location.
    • Make WASD movement appear smooth.
  • WASD Movement hack
    • Hijack the mouse
    • Click (at the right position), see if that does anything
    • If it did nothing, then you ran into a wall.
  • Hack is on by default
    • Decide which one
  • Support for Harmony Island and Crystal Caverns

@afkvido afkvido added Priority: Medium Somewhat important. Category: Cheat GUI Regarding the Cheat GUI, aka WCM. labels Aug 11, 2022
@afkvido afkvido linked an issue Aug 11, 2022 that may be closed by this pull request
2 tasks
@afkvido afkvido changed the title WASD movement [Hack] WASD movement Aug 12, 2022
@afkvido afkvido marked this pull request as ready for review August 12, 2022 06:00
@afkvido
Copy link
Contributor Author

afkvido commented Aug 12, 2022

Not ready quite yet, still needs to be a bit smoother.

@ghost
Copy link

ghost commented Aug 12, 2022

How to make collision, divide the movement by (speed)/10, if it touches a wall, go back by (speed)/-7.5 . Using this method has worked for me a lot, also prodigy devs do be slacking tho
Tree Shake removes damage
edit: repeat the (speed)/10 10 times

@afkvido
Copy link
Contributor Author

afkvido commented Aug 12, 2022

But why would I want to make colliosons? I do like the phasing, I've found it quite useful.

@Erisfiregamer1
Copy link
Contributor

Erisfiregamer1 commented Aug 13, 2022

For people who don't want to- well, phase through walls.
Just make it a toggle, "Disable Collisions"

Copy link
Contributor

@Erisfiregamer1 Erisfiregamer1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could release this hack now with no repercussions.
But let's finish making it smooth and add collisions first. Then I'll hit Merge.

@afkvido
Copy link
Contributor Author

afkvido commented Aug 13, 2022

Bet, let's polish this.
Anyways, any idea on how we're gonna add wall checks?

@Erisfiregamer1
Copy link
Contributor

The same Prodigy does it. Just find whatever they check to ensure players don't noclip through walls and use that,.

@ghost
Copy link

ghost commented Aug 14, 2022

Ok better description of the script I described,

Repeat 10
|change (x/y) by speed/10
|if touching wall then
||change (x/y) by speed/-7.5

The script could be done twice for both the x and y axis, or you could take the lazy route of putting them both in the same repeat (not reccomended).

@afkvido
Copy link
Contributor Author

afkvido commented Aug 15, 2022

Lmao idk if this is scratch code or something, but all I'm seeing is this:
if touching wall

Alright, so how would we check that?

@ghost
Copy link

ghost commented Aug 17, 2022

It is scratch code, but it is an idea of how to implement it

@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

So... how are we going to check if touching wall?

Signed-off-by: gemsvidø <gemsvido@gmail.com>
@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

resollves conflict by purging bundle lol

@Erisfiregamer1
Copy link
Contributor

@afkvido try checking it by clicking ahead of where they're going to go, prodigy wont walk the player into the wall.
if the event cancells then it's a wall and dont let them move

Signed-off-by: Eris <eris@erisws.com>
@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

Alright, how would you simulate a click?

@Erisfiregamer1
Copy link
Contributor

Take control of mouse for a split second and click there.

@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

So we hijack the mouse, target it to the current location then the target location, and we click, if our pos doesn't change then we hit a wall?

@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

Then we make that as a completley seperate hack, cuz current WASD works by editing player location variables directly.

@afkvido
Copy link
Contributor Author

afkvido commented Aug 17, 2022

Don't get your hopes up- I haven't actually implemented the click-to-move yet.

However, when one hack turns on, the other turns off, it's beautiful!


function ChangeY (y : number) {
for (let i = 0; i < 100; i++) {
setTimeout(() => { _.player._playerContainer.y -= y/100; }, 50);

This comment was marked as abuse.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you suggest we use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with setTimeout?

This comment was marked as abuse.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmao yes, it runs a function after a delay,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tis not the same, cuz we are doing it inside the loop, not outside

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍿

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

am i being sped

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, but how would I know?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright we can use async/await for those functions, and put await before literally everything in that function, also use some form of proper wait?

Erisfiregamer1 and others added 6 commits August 23, 2022 11:48
Signed-off-by: Eris <eris@erisws.com>
Signed-off-by: donaldli2020 <74021676+donaldli2020@users.noreply.github.com>
Signed-off-by: gemsvidø <gemsvido@gmail.com>
@afkvido
Copy link
Contributor Author

afkvido commented Aug 27, 2022

@Erisfiregamer1 @donaldli2020
Take a look at... https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent
(PoinerEvent, not MouseEvent)

@afkvido afkvido merged commit 399f99a into master Sep 6, 2022
@afkvido afkvido deleted the wasd branch September 6, 2022 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cheat GUI Regarding the Cheat GUI, aka WCM. Priority: Medium Somewhat important.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HR] WASD Controls
4 participants