Skip to content

Commit

Permalink
more flying spaghetti monsters with counter swords :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Dec 12, 2023
1 parent a764e85 commit 286af89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion s4_league_fps_unlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ void __attribute__((thiscall)) patched_move_actor_by(struct move_actor_by_ctx *c
// 0x006353a7 -> x/z movement on ground, and walking onto jump pad.....
// 0x006173e3 -> sprining, and sprinting onto jump pad...
// 0x00626298 -> landing
// 0x00615aa1 -> landing + direction

static bool flying = false;

Expand All @@ -235,7 +236,7 @@ void __attribute__((thiscall)) patched_move_actor_by(struct move_actor_by_ctx *c
flying = false;
}

if(ret_addr == (void *)0x00626298){
if(ret_addr == (void *)0x00626298 || ret_addr == (void *)0x00615aa1){
flying = false;
}

Expand Down Expand Up @@ -271,6 +272,11 @@ void __attribute__((thiscall)) patched_move_actor_by(struct move_actor_by_ctx *c
flying = false;
}

// counter sword shielding
if(actx->actor_state == 40){
flying = false;
}

// fly
if(flying && param_2 > 0.0001){
// scaled, trying not to change the behavior too hard
Expand Down

0 comments on commit 286af89

Please sign in to comment.