Skip to content

Commit

Permalink
Merge pull request #20 from ezekieltem/master
Browse files Browse the repository at this point in the history
Minor Touchpad Flight Bug, Docs Changes
  • Loading branch information
TheNexusAvenger authored Nov 13, 2023
2 parents e673379 + f6a191c commit 7faa3d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Displays a full-screen message to the specified player.
#### `Messages:DisplayNotification(TopText: string, Message: string, DisplayTime: number?): ()` *Client-Only*
Displays a slide-in notification to the local player.

#### `Messages:DisplayNotification(TopText: string, Message: string, DisplayTime: number?): ()` *Server-Only*
#### `Messages:DisplayNotification(Player: Player, TopText: string, Message: string, DisplayTime: number?): ()` *Server-Only*
Displays a slide-in notification to the specified player.

### `Types`
Expand Down
16 changes: 14 additions & 2 deletions docs/included-feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ If true, the native messages GUI will be displayed when
is displayed intended for the developer to replace.

## UseNativeHintGui (default: `true`)
If true, the native hits GUI will be displayed when
If true, the native hints GUI will be displayed when
`Messages:DisplayHint()` is used. If false, no GUI
is displayed intended for the developer to replace.

## UseNativeNotificationGui (default: `true`)
If true, the native hits GUI will be displayed when
If true, the native notification GUI will be displayed when
`Messages:DisplayNotification()` is used. If false, no GUI
is displayed intended for the developer to replace.

Expand All @@ -30,3 +30,15 @@ prefixes used. If false, chat executing will be ignored.
## AllowDroppingSwords (default: `true`)
If true, players will be able to drop swords.
If false, they won't.

## PreformSoftShutdownOnClose (default: `true`)
If true, the server will automaticly preform a SoftShutdown on `game:BindToClose()`.
If false, it will not.

## UseBeamsWhenTracking (default: `true`)
If true, beams will be drawn to each player's character when running `:track`.
If false, no beams will be drawn.

## AllowFlyingThroughMap (default: `true`)
If true, players will be able to fly through the map when using `:fly`.
If false, they won't.
6 changes: 3 additions & 3 deletions src/IncludedCommands/UsefulFun/fly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ return {
Flight.KeysDown[Enum.KeyCode.D] = false
end

if Y <= -0.5 then
if Y <= -0.1 then
Flight.KeysDown[Enum.KeyCode.S] = true
Flight.KeysDown[Enum.KeyCode.W] = false
elseif Y >= 0.5 then
elseif Y >= 0.1 then
Flight.KeysDown[Enum.KeyCode.S] = false
Flight.KeysDown[Enum.KeyCode.W] = true
else
Expand All @@ -353,7 +353,7 @@ return {
table.insert(Flight.Events, Flight.Humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
-- Stop the flight movement when the Humanoid has no Movement Direction
local MoveDirection = Flight.Humanoid.MoveDirection
if MoveDirection.X < 0.5 and MoveDirection.X > -0.5 and MoveDirection.Z < 0.5 and MoveDirection.Z > -0.5 then
if MoveDirection.X < 0.5 and MoveDirection.X > -0.5 and MoveDirection.Z < 0.1 and MoveDirection.Z > -0.1 then
Flight.KeysDown[Enum.KeyCode.W] = false
Flight.KeysDown[Enum.KeyCode.S] = false
Flight.KeysDown[Enum.KeyCode.A] = false
Expand Down

0 comments on commit 7faa3d6

Please sign in to comment.