mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2025-07-01 07:50:22 +02:00
Descend from cart using sneak (#31)
This commit is contained in:
@ -304,6 +304,12 @@ function cart_entity:on_step(dtime)
|
||||
acc = -0.4
|
||||
end
|
||||
end
|
||||
if ctrl and ctrl.sneak then
|
||||
-- Descend when sneak is pressed
|
||||
boost_cart:manage_attachment(player, nil)
|
||||
player = nil
|
||||
ctrl = nil
|
||||
end
|
||||
|
||||
if acc then
|
||||
-- Slow down or speed up, depending on Y direction
|
||||
|
Reference in New Issue
Block a user