mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-17 14:28:02 +02:00
adjusted climb
This commit is contained in:
parent
8f97786e46
commit
9bbb7bc9b4
@ -46,9 +46,9 @@ function delorean.control_flight(self, player)
|
||||
if self._is_flying == 1 then
|
||||
local ctrl = player:get_player_control()
|
||||
if ctrl.jump then
|
||||
self._car_gravity = 5
|
||||
self._car_gravity = 3
|
||||
elseif ctrl.sneak then
|
||||
self._car_gravity = -5
|
||||
self._car_gravity = -3
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -72,7 +72,7 @@ end
|
||||
function delorean.turn_flight_mode(self)
|
||||
if self._is_flying == 1 then
|
||||
--initial lift
|
||||
self._car_gravity = 5
|
||||
self._car_gravity = 2
|
||||
local curr_pos = self.object:get_pos()
|
||||
curr_pos.y = curr_pos.y + 1.5
|
||||
self.object:move_to(curr_pos)
|
||||
|
Loading…
Reference in New Issue
Block a user