forked from MTSR/techage_modpack
Add 'player_physics_locked' check
This commit is contained in:
parent
7d11fb9481
commit
98d9e1b7cf
@ -262,6 +262,10 @@ function stamina.set_sprinting(player, sprinting)
|
||||
end
|
||||
end
|
||||
|
||||
if player and player:get_meta() and player:get_meta():get_int("player_physics_locked") ~= 0 then
|
||||
return
|
||||
end
|
||||
|
||||
if player_monoids_mod then
|
||||
if sprinting then
|
||||
player_monoids.speed:add_change(player, 1 + settings.sprint_speed, "stamina:physics")
|
||||
|
Loading…
Reference in New Issue
Block a user