Skip to content

Commit

Permalink
Players: disable leaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbleezy committed Jun 27, 2024
1 parent 4a698d9 commit db9e716
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
* Can shoot while looking at other players
* Increased mantle speed
* Increased ladder climb speed
* Disabled leaning
* Start with Semtex on maps that have Semtex
* Barriers can no longer be rebuilt while sprinting or thowing a grenade
* Upgraded weapon camo is applied in last stand
Expand Down
7 changes: 7 additions & 0 deletions scripts/zm/_zm_reimagined.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ on_player_spawned()
self set_client_dvars();
self set_perks();
self set_favorite_wall_weapons();
self disable_lean();
}
}

Expand Down Expand Up @@ -740,6 +741,12 @@ set_favorite_wall_weapons()
}
}

disable_lean()
{
self._allow_lean = 0;
self allowlean(0);
}

lui_notify_events()
{
self endon("disconnect");
Expand Down

0 comments on commit db9e716

Please sign in to comment.