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

how can I flip the gravity of the player? #624

Open
THEDERP655129 opened this issue Mar 13, 2024 · 5 comments
Open

how can I flip the gravity of the player? #624

THEDERP655129 opened this issue Mar 13, 2024 · 5 comments
Labels
question Further information is requested

Comments

@THEDERP655129
Copy link

THEDERP655129 commented Mar 13, 2024

Your Question

Im just trying to learn some things but I cant seem to do anything when it comes to interacting with the player.

Ive already tried TodoReturn flipGravity(bool p0, bool p1); but I dont know how it really works. im just asking for a little guidance

@THEDERP655129 THEDERP655129 added the question Further information is requested label Mar 13, 2024
@Weebifying
Copy link
Contributor

Weebifying commented Mar 13, 2024

try hooking flipGravity and log p0 and p1 to see what they are

@THEDERP655129
Copy link
Author

try hooking flipGravity and log p0 and p1 to see what they are

I apologize just because I'm new to this but how do I use log for p0 and p1?

@THEDERP655129
Copy link
Author

try hooking flipGravity and log p0 and p1 to see what they are

I apologize just because I'm new to this but how do I use log with geode?

@Weebifying
Copy link
Contributor

void flipGravity(bool p0, bool p1) {
    PlayerObject::flipGravity(p0, p1);
    log::info("flipGravity({}, {})", p0, p1);
}

@THEDERP655129
Copy link
Author

void flipGravity(bool p0, bool p1) {
    PlayerObject::flipGravity(p0, p1);
    log::info("flipGravity({}, {})", p0, p1);
}

Sorry for being inactive for a few days but all I could find in the log was this,

Enabled PlayerObject::flipGravity hook at 0xd036e0 for capeling.gamemode_picker

Enabled PlayerObject::flipGravity hook at 0xd036e0 for author.mod_name

16:48:03 INFO [Main] [gravity flipper]: flipGravity(true, true)
16:48:04 INFO [Main] [gravity flipper]: flipGravity(false, true)
16:48:05 INFO [Main] [gravity flipper]: flipGravity(true, true)
16:48:05 INFO [Main] [gravity flipper]: flipGravity(false, true)
16:48:05 INFO [Main] [gravity flipper]: flipGravity(false, false)
16:48:08 INFO [Main] [gravity flipper]: flipGravity(false, false)
16:48:11 INFO [Main] [gravity flipper]: flipGravity(false, false)

I haven't been able to figure out how I could use this

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

No branches or pull requests

2 participants