geode
geode copied to clipboard
how can I flip the gravity of the player?
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
try hooking flipGravity and log p0 and p1 to see what they are
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?
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?
void flipGravity(bool p0, bool p1) {
PlayerObject::flipGravity(p0, p1);
log::info("flipGravity({}, {})", p0, p1);
}
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