Skip to content

Commit

Permalink
Change how player speed increase is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 9, 2024
1 parent f6abdd7 commit 7275365
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods/apis/physics/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ physics = {}

local players = {}
local default_overrides = {
speed = 1.1,
speed = 1.0,
speed_crouch = 1.0,
jump = 1.0,
gravity = 1.0,
Expand Down Expand Up @@ -30,6 +30,10 @@ local function update(name)
override.jump = 1.1
end

if (override.speed or 0) <= 1.1 then
override.speed = 1.1
end

player:set_physics_override(override)
end

Expand Down

0 comments on commit 7275365

Please sign in to comment.